Exporting from Blender doesn't look right in irrlich[SOLVED]

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
pilesofspam
Posts: 62
Joined: Mon May 11, 2009 4:31 am

Exporting from Blender doesn't look right in irrlich[SOLVED]

Post by pilesofspam »

I modeled and textured a flying saucer in Blender, and then exported to pretty much everything: .x, .3ds. and even used irrb to export to an irrmesh file.

The problem is that I can easily load my mesh, but it doesn't look right. Here's the problems:

1. Some of the materials I've chosen have some transparency (like bottle glass). All of these show up as solid white in my irrlicht scene.

2. In irrlicht, about half of my surfaces are textured on the wrong side, meaning they're transparent on the side that I want the texture on, but I can see the texture if I move the camera INSIDE the UFO.

I'm including a pic of the saucer in blender (not the fully rendered version, just the working window), later on I'll post a picture of what I see in irrlicht.


Image
Last edited by pilesofspam on Mon Feb 08, 2010 5:15 pm, edited 1 time in total.
Adler1337
Posts: 471
Joined: Sat Aug 09, 2008 6:10 pm
Location: In your base.

Post by Adler1337 »

For #1 try to set the material to transparent using irrlicht.
For #2 sounds like you may need to flip your normals inside blender.
Hope this helps. If it doesn't maybe i am not understanding your problem.

PS Are you showing backfaces inside irrlicht?
multum in parvo
pc0de
Posts: 300
Joined: Wed Dec 05, 2007 4:41 pm

Post by pc0de »

The irrb Tutorials contains a link on how to setup/export transparent materials using irrb.

Adler is correct about flipping the normals for issue #2. In Blender select the problem faces, hit the WKEY and then select "Flip Normals". You can visualize the Normals in Blender by activating "Draw Normals" in the Mesh Tools panel.
pilesofspam
Posts: 62
Joined: Mon May 11, 2009 4:31 am

Post by pilesofspam »

PS Are you showing backfaces inside irrlicht?
Yes! Flipping the normals sounds like exactly what I need to do to fix this issue. Thank you!
The irrb Tutorials contains a link on how to setup/export transparent materials using irrb.
I didn't download and try irrb until after midnight, so admittedly, I haven't done my homework yet. I'll start by reading the tutorial. Thank you.
Adler is correct about flipping the normals for issue #2. In Blender select the problem faces, hit the WKEY and then select "Flip Normals". You can visualize the Normals in Blender by activating "Draw Normals" in the Mesh Tools panel.
That's what I'm looking for. You guys just saved me hours of hair pulling frustration. I'll post back here when I have results, probably Saturday.
pilesofspam
Posts: 62
Joined: Mon May 11, 2009 4:31 am

Post by pilesofspam »

Had to walk a little before I run- here's a simplified UFO in iwalktest. Normals are correct, and I've got a semi-transparent png mapped onto the dome. The rest is left pretty much flat grey for now. From here I can see where I'm going. Thanks for your help with the normals, the tutorials and irrb manual were excellent.

Image
Post Reply