Page 1 of 1

Animated mesh created at runtime.

Posted: Fri Feb 23, 2018 4:54 pm
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!

Re: Animated mesh created at runtime.

Posted: Fri Feb 23, 2018 6:13 pm
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.