What's wrong with my blender models?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
jadephoenix1988
Posts: 14
Joined: Fri May 29, 2009 2:12 pm

What's wrong with my blender models?

Post by jadephoenix1988 »

Hi people,

I wan't to create my own 3D game. Not a big game, just to test some things like Collisions and so on.
I created with some people at my Highscool a game with irrlAR.

Now back to the topic. The most of the blender models i create - and i love some of them very much - can't be exportet in the md2 format.

I often get errors like "More than 1 texture map is assigned to the mesh" or "there is a unmapped face, this shouldn't happen".
But i don't know why!

There were models, where it was able to export them. And I didn't do something special, what I forgot in another models.

Then I downloaded the irrb plugin for blender. Nice feature! But when I export my scenes, there is nothing shown.

I please you to help me.
Here a model with animation, which i want to use in the game (i have to work on my uv mapping, it's not so pretty)

The .blend file:
http://www.file-upload.net/download-172 ... blend.html

the texture:
http://www.pic-upload.de/view-2415296/S ... 2.jpg.html

Thank you very very much!
kryton9
Posts: 20
Joined: Sun Feb 22, 2009 7:26 pm

Post by kryton9 »

In the Blender Materials menu, be sure to set your material not to recieve shadows by clicking the "Shadeless" button.

Then when you export you should see your model.

For static meshes, things that won't move, basically the level scene objects, you will texture bake your lighting and textures. But for your moving character going Shadeless is the way and then handle lighting in your game.
jadephoenix1988
Posts: 14
Joined: Fri May 29, 2009 2:12 pm

Post by jadephoenix1988 »

yehaw, i love you :D!

now i see my mesh, but no animation with iwalktest - that's normal, i think?

thanks you very much =)
jadephoenix1988
Posts: 14
Joined: Fri May 29, 2009 2:12 pm

Post by jadephoenix1988 »

no animations isn't so well.. if i want to let my hero walk..

why doesn't the md2 export work? does somebody have got a hint?

thanks!

EDIT: Finally, the md2 export works, but i get garbage. that's so sad :(. I wanna see my supermouse running there, not some slimy merged vertices with color.

My garbage-mouse:
http://www.file-upload.net/download-172 ... 1.md2.html

Maybe somebody can help me
kryton9
Posts: 20
Joined: Sun Feb 22, 2009 7:26 pm

Post by kryton9 »

Since you have your md2 file, did you try altering Irrlichts first tutorial Hello World.

Change line 172 in the HelloWorld.cpp file:
IAnimatedMesh* mesh = smgr->getMesh("../../media/sydney.md2");

Place your md2 file in the irrlicht media folder and change the sydney.md2 to
your superm4_31.md2 in line 172 and see how it works.

You will also need to change lines 188 and 189 to do the animation you want and also point to your texture:
node->setMD2Animation(scene::EMAT_STAND);
node->setMaterialTexture( 0, driver->getTexture("../../media/sydney.bmp") );

Good luck, I know how exciting it is to be so close to seeing something work and not getting over a minor hump.
xDan
Competition winner
Posts: 673
Joined: Thu Mar 30, 2006 1:23 pm
Location: UK
Contact:

Post by xDan »

why are you using MD2 format?? it's old and there is a low limit to how many triangles you can have, plus the animation interpolates vertices and does not use the bones.

*suggests .b3d with gandaldf's exporter

p.s. I don't think irrb supports animations yet (as it uses Irrlicht's official format which is new and does not yet have that support)
jadephoenix1988
Posts: 14
Joined: Fri May 29, 2009 2:12 pm

Post by jadephoenix1988 »

@kryton9

I know how i can display my own file in hello world. but thanks :D. i think there is something wrong with the export of the md2 file, i probably do something wrong with modeling, i think.

@xDan

Thanks for your suggestion, i'll try the exporter today evening :).

It's nice to be supported, thanks!
Post Reply