Animated flag
Animated flag
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.
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: Animated flag
Usually vertex/index buffers will be not slower, so you don't lose anything from rendering with the proper hardware mapping hint.
Re: Animated flag
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
http://www.mediafire.com/file/t5c6u39yj ... agdemo.rar
-
- Posts: 125
- Joined: Thu Dec 11, 2008 9:50 pm
- Location: Wisconsin
- Contact:
Re: Animated flag
Here's another flag scene node somebody posted a while back: http://irrlicht.sourceforge.net/forum/v ... hp?t=39982