Loading .dae mesh in Hello World

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Shubho
Posts: 2
Joined: Sat May 22, 2010 6:58 pm

Loading .dae mesh in Hello World

Post by Shubho »

Hi,

I'm new to Irrlicht. I created this sofa, reading a tutorial, using blender and exported it as .dae.

Image

I tried to load the mesh into Irrlicht in the Hello World example. But I'm getting this weird output.

Image

I'd appreciate any help. Thanks in advance.

regards,
Shubho
Linkin Puck
Posts: 36
Joined: Sat Feb 06, 2010 11:52 am

Post by Linkin Puck »

Have you loaded the model into the MeshViewer example program? Does it work there?
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Post by greenya »

HelloWorld example uses Software renderer,
try to replace "video::EDT_SOFTWARE" with "video::EDT_OPENGL" or "video::EDT_DIRECT3D9".
Shubho
Posts: 2
Joined: Sat May 22, 2010 6:58 pm

Post by Shubho »

Hi,

I tried it out with the mesh viewer. Same results. I loaded the .dae file, then I loaded the texture file zebra.png.

I've tried it both with opengl and d3d. The results are the same.

Any advice on what I should do? I even tried it out with .b3d format.

Thanks in advance.

regards,
Shubho

This is the output for .dae file:

Image

This is the output for .b3d file:
Image
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

did you apply subsurf modifier before exporting?
Linkin Puck
Posts: 36
Joined: Sat Feb 06, 2010 11:52 am

Post by Linkin Puck »

Shubho wrote:I tried it out with the mesh viewer. Same results.
Then it's a problem with the model, it's nothing to do with the Hello World program.

Try a simpler version of the model, and keep on simplifying it until it works. Or use a different model format. Or use a different 3D modeller.

But until you have something that works in Mesh Viewer, don't even think about using it with your own Irrlicht program.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

The dae loader might already work in the latest Irrlicht version (or SVN). Could also be a problem with certain unsupported geometry, though.
The b3d file seems to lack texture coords (as the dae file), that's why the texture is not shown (or only very partial). This is a problem with not having a proper unwrap of the coords.
Post Reply