b3d import from blender - animation not displaying

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Post Reply
ezanih
Posts: 2
Joined: Wed Jul 16, 2008 3:49 am
Contact:

b3d import from blender - animation not displaying

Post by ezanih »

Hi there

I hope you guys can help me with my problem. I imported an armature animation (bones-based) in Blender (shotarm.blend) and used Gandalf's b3d Python export script to export it to shotarm.b3d.

Then I opened up Irrlicht in VC++ 2008 and imported shotarm.b3d in the 01.Hello World.sln tutorial replacing the file "sydney.md2" but leaving the rest of the code unchanged.

I then compiled the application and ran HelloWorld.exe but I am getting a blank purple screen with only the words "Hello World". I am not seeing any animation of the b3d armature. What am I doing wrong ? Thank you in advance!
Virion
Competition winner
Posts: 2149
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

1. make sure the path to the model file is correct
2. make sure the camera is "looking" at the model. if you are using the default FPS camera, move it backwards a bit and you will see the model because the camera, by default, is located at 0,0,0
My company: https://kloena.com
My profile: https://zhieng.com
My co-working space: https://deskspace.info
My game engine: https://kemena3d.com
torleif
Posts: 188
Joined: Mon Jun 30, 2008 4:53 am

Post by torleif »

Another problem might be your exported blender model is in the right place, but while editing you placed them somewhere else (ie: up or down beyond the screen)

ensure the mesh is at 0,0,0 while exporting and that the file size is > 0 kb.
mc08
Posts: 25
Joined: Thu Aug 07, 2008 9:49 am

Post by mc08 »

if I remember correctly you cant missplace any object in the editing space in Blender when using gandaldf exporter, because it places the object center at 0,0,0 when adding it in a f.g. irrlicht game.
You might have the camera look the wrong direction or the object center is totally off?
oldskoolPunk
Posts: 199
Joined: Wed Nov 29, 2006 4:07 am

Post by oldskoolPunk »

Not true. The exporter puts the model where it is located in Blender, it does not move it back to 0,0,0. Which is AWESOME to me.
Signature? I ain't signin nuthin!
Post Reply