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!

Animated mesh created at runtime.

Postby MartinVee » Fri Feb 23, 2018 4:54 pm


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?

Posts: 130
Joined: Tue Aug 02, 2016 3:38 pm
Location: Québec, Canada

Re: Animated mesh created at runtime.

Postby CuteAlien » Fri Feb 23, 2018 6:13 pm

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
Code snippets, patches&stuff:
Free racer created with Irrlicht:
User avatar
Posts: 8528
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Return to Advanced Help

Who is online

Users browsing this forum: No registered users and 1 guest