Animated mesh created at runtime.

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
MartinVee
Posts: 139
Joined: Tue Aug 02, 2016 3:38 pm
Location: Québec, Canada

Animated mesh created at runtime.

Post by MartinVee »

Hi!

I'm reading in the IMeshManipulator help page that :
This exists for fixing problems with wrong imported or exported meshes quickly after loading. It is not intended for doing mesh modifications and/or animations during runtime.
If it's not intended for runtime animation, what is actually intended for that? I searched the forums, but I couldn't find a way (or an example) of creating animated meshes on the fly.

Let's say I want to create at runtime a mesh to animate a flag (a rectangular, animated mesh with a texture). I would I go about doing that?

Thanks!
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Animated mesh created at runtime.

Post by CuteAlien »

It's mainly a speed thing I guess. You can work with that interface, but it will likely not be optimal. Sometimes it's better getting direct access to meshbuffers and work with those instead.

edit: In theory geometry shader can be used for this as well I think. But I can't help with those yet as I've not used them myself so far.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply