and then adds the filenames of the animated textures to the ISceneNode.
Now, since the filenames for the textures are stored in my map file, it would be necessary to load them in the MeshLoader, and not when my map file is already closed. Is that possible? Or is there a trick to do it?
I`m not sure I absolutely understand what you mean, but I think you`re trying to load a mesh, having some animated textures in it or sth alike.
First, your textures will be static. They`ll be changed per step using ITextureAnimator attached to the map node as in the tutorial.
Doing the above will put changing textures on your whole map. If you need to have both static and animated parts in your map, say level, you`ll best divide it to one-static textured parts and texure-animated parts.
- The easiest way doing all this is to simply load your level as separate IMeshScene (or whatever) node having its static textures and load different IMeshSceneNodes attached with animators to change their textures.
- The more difficult way doing this having only one scene node, but not that good IMO is to create your own scene node, where each mesh buffer has its own material (as by default), but some buffers will change their texture continuously.
- You can try creating sth like in tutorial "16.Quake3MapShader".
- ... (open for some other solutions)
"Although we walk on the ground and step in the mud... our dreams and endeavors reach the immense skies..."
thanks a lot for this fast response... Still... I am not quite sure if any of those opportunities allow it to already load the whole animations in the IMeshLoader::createMesh(io::IReadFile* file); function. Do you have an idea? Is there any possibility?
You can't, that's not the job of the mesh. One possibility would be to create a new mesh type, and add methods to this new class which make texture animators available.