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.
Shubho
Posts: 2 Joined: Sat May 22, 2010 6:58 pm
Post
by Shubho » Sun May 23, 2010 9:39 am
Hi,
I'm new to Irrlicht. I created this sofa, reading a tutorial, using blender and exported it as .dae.
I tried to load the mesh into Irrlicht in the Hello World example. But I'm getting this weird output.
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 » Sun May 23, 2010 10:26 am
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 » Sun May 23, 2010 10:27 am
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 » Mon May 24, 2010 3:40 pm
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:
This is the output for .b3d file:
Virion
Competition winner
Posts: 2149 Joined: Mon Dec 18, 2006 5:04 am
Post
by Virion » Mon May 24, 2010 6:33 pm
did you apply subsurf modifier before exporting?
Linkin Puck
Posts: 36 Joined: Sat Feb 06, 2010 11:52 am
Post
by Linkin Puck » Mon May 24, 2010 7:24 pm
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 » Mon May 24, 2010 9:39 pm
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.