Tutorial for MD3 loader

A forum to store posts deemed exceptionally wise and useful
r2d2
Posts: 211
Joined: Mon Nov 24, 2003 5:22 pm

Post by r2d2 »

seems like you haven't read the readme clear enough. you have to copy the cpp and h files from the loader into your irrlicht source dir and the I files into the include dir
and the other error with d3d9.h well seems like it's missing ^^
R2D2's Irrlicht Mods
Messed up with my database so the page is not working at the moment -.-
CPU: Core 2 Quad Q6700RAM: 4096 mb Graphics: Radeon 4850 512mb Sound: on board InternetConnection: DSL
Endar
Posts: 145
Joined: Mon Jun 14, 2004 7:59 am

Post by Endar »

r2d2, I've added the things from the readme file and also the stuff previously on this forum, and I'm getting this error:

CSceneManager.obj : error LNK2001: unresolved external symbol "public: __thiscall irr::scene::CMD3MeshFileLoader::CMD3MeshFileLoader(class scene::io::IFileSystem *,class scene::video::IVideoDriver *)"

Now, before you ask :D I've looked at CSceneManager.cpp and I have added the "CMD3MeshFileLoader.h" file. and the MeshLoaderList.push_back lines of code looks like this:

Code: Select all

	MeshLoaderList.push_back(new CDefaultMeshFormatLoader(FileSystem, Driver));
	MeshLoaderList.push_back(new C3DSMeshFileLoader(FileSystem, Driver));
	MeshLoaderList.push_back(new CXMeshFileLoader(MeshManipulator, Driver));
    MeshLoaderList.push_back(new CMD3MeshFileLoader(FileSystem, Driver));
I'm not sure if this is right, but in the readme file it says:

Code: Select all

and after    MeshLoaderList.push_back(new CMD3MeshFileLoader(FileSystem, Driver));      :
MeshLoaderList.push_back(new CMD3MeshFileLoader(FileSystem, Driver));
So, I was a little confused. :D
"The reputation of a thousand years may be determined by the conduct of one hour."
-Japanese Proverb
r2d2
Posts: 211
Joined: Mon Nov 24, 2003 5:22 pm

Post by r2d2 »

well that's right how you did that you have to add the files to your project else you will get the unresolved error
R2D2's Irrlicht Mods
Messed up with my database so the page is not working at the moment -.-
CPU: Core 2 Quad Q6700RAM: 4096 mb Graphics: Radeon 4850 512mb Sound: on board InternetConnection: DSL
Endar
Posts: 145
Joined: Mon Jun 14, 2004 7:59 am

Post by Endar »

I got it compiled (albeit with a few "signed unsigned mismatch" warnings I think) and I was just wondering, how come the size of the dll went from 856k to 3.3Mb??
"The reputation of a thousand years may be determined by the conduct of one hour."
-Japanese Proverb
Endar
Posts: 145
Joined: Mon Jun 14, 2004 7:59 am

Post by Endar »

And now, lo and behold, another error.

Okay, I open up the project given in the example, and when I try to compile it I get this error: main.obj : error LNK2001: unresolved external symbol "public: static void __cdecl irr::os::Printer::log(char const *,enum irr::ELOG_LEVEL)"

and another also for the other log function.
<sigh> debugging is such a pain!
"The reputation of a thousand years may be determined by the conduct of one hour."
-Japanese Proverb
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

Endar wrote:I got it compiled (albeit with a few "signed unsigned mismatch" warnings I think) and I was just wondering, how come the size of the dll went from 856k to 3.3Mb??
You've got to Release it.
r2d2
Posts: 211
Joined: Mon Nov 24, 2003 5:22 pm

Post by r2d2 »

have you compiled the irrlicht dll in release or in debug mode? you should compile in release mode because it's not only much faster it also makes the files much smaller.

the warnings are normal
well i don't know this error perhaps it has got something to do with your too big size of the irrlicht.dll or perhaps you havenn't added the files in the right place to the irrlicht project
R2D2's Irrlicht Mods
Messed up with my database so the page is not working at the moment -.-
CPU: Core 2 Quad Q6700RAM: 4096 mb Graphics: Radeon 4850 512mb Sound: on board InternetConnection: DSL
Endar
Posts: 145
Joined: Mon Jun 14, 2004 7:59 am

Post by Endar »

I now know what my problem is. I still don't know how to fix it... this error is coming from the "os.h" files that "CAnimatedMeshMD3.cpp" includes.

So, basically, these log functions are being declared in the "os.h" file.

My problem was that i had copied the os.h file into the directory (kinda stupid to do) and I deleted it just then, so now I'm getting the "Cannot open include file "os.h" ". So, how should I include it?
"The reputation of a thousand years may be determined by the conduct of one hour."
-Japanese Proverb
Endar
Posts: 145
Joined: Mon Jun 14, 2004 7:59 am

Post by Endar »

HA! I figured it out!!

r2d2, in the example "main.cpp", all the source files had been included up the top. I thought that was a little strange, and was wondering why you would need the source files for the MD3 loader included like that, and then I realized that you wouldn't, because, obviously, all the code is already in the dll file.

Yay!!!
"The reputation of a thousand years may be determined by the conduct of one hour."
-Japanese Proverb
r2d2
Posts: 211
Joined: Mon Nov 24, 2003 5:22 pm

Post by r2d2 »

Ok i made the readme much easier to read. The only thing you need is a programm capable of loading ".doc" files. I also added a little fix to it i hope it helps. If not please post your problems fast. Starting wednesday i will be 2 and a half weeks in Latvija.
R2D2's Irrlicht Mods
Messed up with my database so the page is not working at the moment -.-
CPU: Core 2 Quad Q6700RAM: 4096 mb Graphics: Radeon 4850 512mb Sound: on board InternetConnection: DSL
vermeer
Posts: 2017
Joined: Wed Jan 21, 2004 3:22 pm
Contact:

Post by vermeer »

there's a free word viewer, which is th emost compatible to word, fo rthose not having it...


http://download.microsoft.com/download/ ... vw9716.exe

for linux users, Open Office...
Finally making games again!
http://www.konekogames.com
deprecated
Posts: 62
Joined: Fri Jan 07, 2005 4:37 pm
Location: California

Post by deprecated »

leaguefun2005

You did the great job !!

Post by leaguefun2005 »

You did the great job !!
krama757
Posts: 451
Joined: Sun Nov 06, 2005 12:07 am

Post by krama757 »

Sorry for bringing this thread back alive, but I feel its a very nice tool and would like to work with it.

Has anybody tried this with visual studio and the latest irrlicht version?
Post Reply