@aelink: one thing: You should only load "*.3.lmts" files into irrlicht (note the 3). The ones with 1 or 2 are not final lmts meshes. Maybe this solves the problem already.
It is like it is. And because it is like it is, things are like they are.
yes,
I've buyed Visual C++ .net standard 2002, it will arrive to me in 2 weeks,
so I'll try with it.
It's strange... anyone tryed the LMTS loader succesfully with Devc++?
Mh, strange. Try to put the following in the createMesh method after reading the header ("file->read(&Header, sizeof(SLMTSHeader));" before the texture comment ("// TEXTURES"):
Zero textures. Your mesh has no textures. Both normal textures and lightmap count as texture. Which lmts file is that info for? Please post the same info for the sample map (map.3.lmts). Becasuse this one definitely has textures.
My docs say: "The mesh must have at least one texture and one lightmap". I think I should update the loader to handle zero textures. But in the end it doesn't make really sense to have lmts files without textures because you use lmts for lightmaps, and lightmaps without textures won't work...
(but of course it does make sense to have the app don't crash with zero textures )
It is like it is. And because it is like it is, things are like they are.
Hi Jox,
in the map.3.lmts file the textures are 22, so this is'nt the problem.
May app still crash in the 2 for cycle starting at line 296 in constructMesh() method.
So, have you tryed with 0.8 irrlicht version, or only 0.7?
Maybe an interface changes...don't know...
Ok, I found the problem and fixed it! There were 2 things. First, if a subset in a lmts files has no texture or lightmap it gets the number 65535 (0xFFFF). Second my loading routine didn't handle this correctly. I'll release a new version a little later. Theoretically it should then also be possible to load lmts files without any texture.
In the next version I'll also get rid of the cerr's and use the irrlicht Logger. For that the constructor of the loader will change. The Irrlicht device will have to be passed as (the only) parameter.
Thanks alelink for supporting the bug-hunt.
It is like it is. And because it is like it is, things are like they are.