Yet another LMTS-MeshFileLoader update (version1.5)

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
Post Reply
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Yet another LMTS-MeshFileLoader update (version1.5)

Post by jox »

Version 1.4 - 12 March 2005
- Fixed bug in texture and subset loading code that would possibly cause crash.
- Fixed memory cleanup to avoid leak when loading more then one mesh
- Used the irrlicht Logger instead of cerr to output warnings and errors.

The constructor has changed:
from:
CLMTSMeshFileLoader(io::IFileSystem* fs, video::IVideoDriver* driver)
to:
CLMTSMeshFileLoader(IrrlichtDevice* device)

Get it here:
http://development.mindfloaters.de/Downloads.12.0.html

jox
Last edited by jox on Tue Mar 15, 2005 9:32 am, edited 1 time in total.
It is like it is. And because it is like it is, things are like they are.
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

Mant thanks for version 0.14 Jox; it works and looks sweet!!! :D

Finally LordTrancos' sample map is loading 1:1 in irrlicht!!!

I just got one error:

Code: Select all

CLMTSMeshFileLoader.cpp(339) : error C3861: 'sprintf': identifier not found, even with argument-dependent lookup
but I commented line 339 out and it compiles fine. If you know of a way to fix it plz let me know.

very nice job!!!
:D :D
alelink
Posts: 52
Joined: Tue Jan 20, 2004 8:32 pm
Location: Italy
Contact:

Post by alelink »

hi Afecelis,
you must inckude <iostream> in the CLMTSLoader.cpp.
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

arrrrrrrrrrggggggggghhhhhhhhh!!!

same error as the other day!!!

ooooooooooooopppppppppssssss :oops: :oops: :oops:

thnx alelink!!!

ps. I can also include it in my main.cpp file?

EDITED:

WORKS LIKE A CHARM!!!

this is a really good alternative to get lightmaps into irrlicht!!!
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

alelink wrote:hi Afecelis,
you must inckude <iostream> in the CLMTSLoader.cpp.
Maybe I must include it. :roll:
I'm smelling version 1.4.1... :)

afecelis thanx for testing.
It is like it is. And because it is like it is, things are like they are.
alelink
Posts: 52
Joined: Tue Jan 20, 2004 8:32 pm
Location: Italy
Contact:

Post by alelink »

Arghhhh....
a3ds2lmts does'nt work with blender exported 3ds file...
it says some strange error on uv....
Arghhhh... :x :x
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

What's the exact error?
It is like it is. And because it is like it is, things are like they are.
puh
Posts: 356
Joined: Tue Aug 26, 2003 3:53 pm

Post by puh »

Hi, jox

I would like to update lmts-loader up to v1.4 right in my Irrlicht engine (as I don't like to add the files in each project), and I need to change file CSceneManager.cpp . Right now I've got the following line 190:

Code: Select all

MeshLoaderList.push_back(new CLMTSMeshFileLoader(FileSystem, Driver));
But with your changed initialization what should I use instead?
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

Hey puh

you're right, that's a problem. I didn't think about this... :(

The problem is that outside of the engine the logger is only available via the IrrlichtDevice, but the device is not available in the SceneManger. Inside the engine you include "os.h" and use os::Printer::Log(). But "os.h" is not available outside the engine. So this really sucks... I think Niko should change something in the architecture that makes logging easier for mesh loader developers.

Maybe I can make a #define that switches between inside and outside engine mode...
It is like it is. And because it is like it is, things are like they are.
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

Ok, there's version 1.5 now:

- Added the switch LMTS_INTEGRATED_IN_IRRLICHT. This was needed because
of access problems to the irrlicht Logger.
- Did a better cleanup. No memory leaks in case of an loading error.
- Added "#include <stdio.h>" for sprintf.

If you want to add the loader to the engine you have to set LMTS_INTEGRATED_IN_IRRLICHT to 1 in CLMTSMeshFileLoader.h. You still have the texture path problem then, though...

http://development.mindfloaters.de/Downloads.12.0.html

jox
It is like it is. And because it is like it is, things are like they are.
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

Nice!

thnx for the update! It's also working sweet, and I got no prob using it as an external loader.
:D

ps. Did LordTrancos ever release that new version of Pulsar he was about to launch?
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

I'm glad it still works for you afecelis. :)

I havn't heard anything from Lord Trancos lately. The last life sign from him that I know about is from Tue Sep 14, 2004 10:07:
Lord Trancos wrote:Hi guys!

I'm sorry but I couldn't finish the new (and last) version of LMTools since i was too lazy on holidays, and when I came back to job i was sent to bussines trip.... so still didn't do so much. :oops:

I've just bugfixed the colored lightmaps issue.


In that thread:

http://irrlicht.sourceforge.net/phpBB2/ ... &start=165
It is like it is. And because it is like it is, things are like they are.
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Colored lightmaps are working!!

Post by afecelis »

Hi Jox, your latest version of the loader rocks!!!

I'm not sure, but when using the ScrGen script in Gmax colored lightmaps get screwed up. But now that I'm exporting everything from 3dsmax (3ds, and scr) they load up very nice in Irrlicht.

check it:

Image

and

Image

thnx for your work! please let us know of any new versions :D :D
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

just uploaded the bin version in case you want to try it:

http://www.danielpatton.com/afecelis/files/mylmts.zip

wasd navigation, alt+f4 to quit

:D
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

Nice afecelis! :)

The only drawback is the flat-shadedness of the objects, but wasn't that something Lord Trancos wanted to fix in his next version?
It is like it is. And because it is like it is, things are like they are.
Post Reply