Animated flag

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
Klunk
Posts: 264
Joined: Mon Jan 10, 2011 5:21 pm

Animated flag

Post by Klunk »

need to implement an animated vertex flag. found a pretty reasonable opengl demo which should be pretty easy to port over to irrlicht. The question I have is; which is the most effecient render method to use for animated verts, drawIndexedTriangleList() or a meshbuffer with a EHM_DYNAMIC/EHM_STREAM hardware mapping hint ? Or is there another more suitable method I should consider ?
Last edited by Klunk on Sun Oct 23, 2011 6:49 am, edited 1 time in total.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Animated flag

Post by hybrid »

Usually vertex/index buffers will be not slower, so you don't lose anything from rendering with the proper hardware mapping hint.
Klunk
Posts: 264
Joined: Mon Jan 10, 2011 5:21 pm

Re: Animated flag

Post by Klunk »

thanks Hybrid worked well, will post on code snippets if theres interest, here's a quick windoze demo the camera is maya, note: not all the stuff works in the inifile but stuff relating to the wind & flag does (though it's quite easy to break)

http://www.mediafire.com/file/t5c6u39yj ... agdemo.rar
Josh1billion
Posts: 125
Joined: Thu Dec 11, 2008 9:50 pm
Location: Wisconsin
Contact:

Re: Animated flag

Post by Josh1billion »

Here's another flag scene node somebody posted a while back: http://irrlicht.sourceforge.net/forum/v ... hp?t=39982
www.JoshForde.com

Latest release: Super Orbulite World.
In development: Season of Dreams and others
Post Reply