Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / how to do effect like this?

Author
Message
Taoie
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 13th Jun 2008 11:45


in the picture ..a light effect follow object..

how to do like that
geecee3
20
Years of Service
User Offline
Joined: 25th Feb 2004
Location: edinburgh.scotland.
Posted: 13th Jun 2008 16:36
that was done using a collection of textured plains with ghosting mode 2 and ZWrite disabled, the plains simply spawn sequentially at the position of the object one plain per game frame played in a fixed rate scenario. So if the object moves, the plains it leaves where it used to be 'appear' to make a trail that follows the object. None of the trail plains actually move. its a very basic effect anyone can do easily in very few lines of code.

regards, geecee3.

Ohd Chinese Ploverb say : Wise Eskimo, not eat yerrow snow.
Taoie
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 14th Jun 2008 07:47
Arr.. I'm so new about effect like this..
Can any one sample code ^v^
thx so much
tobi453
19
Years of Service
User Offline
Joined: 28th Apr 2005
Location:
Posted: 14th Jun 2008 11:39 Edited at: 14th Jun 2008 11:40
There are at least to ways of doing this, an easy way and a complex one. You can either use a collection of quadratic textured plains that are set to camera orientation (the easy way, but you need many plains to make it look like a continous line) or you can rotate and position plains in a way that they create a line without gap (you need less plains for this and it looks better). Look for example at this pic of my star wars game (attached). The cable is a line that consists of many plains. You must also rotate the plains around the z-axis depending on camera position and calculating this angle is not easy. You can avoid this problem by using cylinders but cylinders have more polys than plains.

FINAL VERSION RELEASED!!!!

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-20 13:32:18
Your offset time is: 2024-11-20 13:32:18