[solved] motion trail

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
diogoecomp
Posts: 30
Joined: Thu Jun 11, 2009 3:36 am

[solved] motion trail

Post by diogoecomp »

hello,
I would like you to give me suggestions on how to do motion trails like the ones in the picture.

thanks.

Image
Last edited by diogoecomp on Sun Nov 29, 2009 5:05 pm, edited 1 time in total.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

How about you build up a list of the last N positions and render them as a line strip using drawVertexPrimitiveList(). You should be able to create a scene node to do exactly that without to much trouble.

Travis
diogoecomp
Posts: 30
Joined: Thu Jun 11, 2009 3:36 am

Post by diogoecomp »

thanks Travis, I'll try that.
If anyone else has other suggestions feel free to put them here.
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post by Halifax »

diogoecomp wrote:thanks Travis, I'll try that.
If anyone else has other suggestions feel free to put them here.
There should be no other suggestions, because that's the way you should do it. :lol:

If you really don't feel like programming it yourself, then try out varmint's MotionTrailSceneNode.
TheQuestion = 2B || !2B
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

There's also a RibbonTrail scen node in irrExt, which is cross-platform.
kobal
Posts: 1
Joined: Sat Nov 14, 2009 1:54 am
Location: Anshan City, China

Re: motion trail

Post by kobal »

diogoecomp wrote:hello,
I would like you to give me suggestions on how to do motion trails like the ones in the picture.

thanks.

Image
motion trails is what i need. i am watching out the solution.
i like irrlicht at my first sight, though it is the first 3d engine i have ever meet. i am new recruit in 3D engine, i am new recruit in C++, also i am new recruit to 3Dmax. however, i have a big dream of making my Aviation Management Project.
diogoecomp
Posts: 30
Joined: Thu Jun 11, 2009 3:36 am

Post by diogoecomp »

just to inform anyone who could want a solution for this problem, I used the informations of this post here http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=36113 to make the trails. by the way, using drawVertexPrimitiveList() gave me a gain of 10% relative to the code that used draw3DLine().

thanks
Post Reply