Models With Textures

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
ashwin.lele
Posts: 7
Joined: Mon Sep 22, 2008 2:16 pm

Models With Textures

Post by ashwin.lele »

This must be a very simple question but i don't understand it
I loaded a model which is textured
http://img12.imageshack.us/img12/5513/problem2s.th.jpg
The texturing appears inside out
What am i doing wrong
Is it something to do with clipping or texture mapping
It looks fine in blender and 3D Studio Max
Last edited by ashwin.lele on Fri Mar 06, 2009 7:46 pm, edited 1 time in total.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Your model is inside out, scale it by -1 in any direction
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
ashwin.lele
Posts: 7
Joined: Mon Sep 22, 2008 2:16 pm

Post by ashwin.lele »

Thanks a ton Mr Bitplane

However there is lot of flickering,and triangles popping in n out.
Also i checked in Meshviewer and there it looks fine

So is there some clipping business or something
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Have you got a larger image?
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Eigen
Competition winner
Posts: 375
Joined: Fri Jan 27, 2006 2:01 pm
Location: Estonia
Contact:

Post by Eigen »

Image
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Yeah it looks like it's just showing the back faces, but your modelling software shows both sides. You've probably modelled it inside out.

What mesh format are you using?
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
skumar
Posts: 201
Joined: Thu Feb 14, 2008 6:24 pm
Location: kerala state india
Contact:

Post by skumar »

What about the normals...

i feel like the normals are flipped


try try to undo that flipping...or reflip it to correct it....


Just my doubt only... :(
skumar
monchito
Posts: 59
Joined: Thu Mar 08, 2007 9:38 pm

Post by monchito »

I got the same problem once. :x
Some parts looked insideout, can see sections from opposing walls
Tried everything, different formats, flip normals, etc..the last resort was when changed my alpha, 32bit textures to no alpha, 24bit textures in the modeler.. and guess what!!! :D
I hope this can be helpful
shadowslair
Posts: 758
Joined: Mon Mar 31, 2008 3:32 pm
Location: Bulgaria

Post by shadowslair »

Just select all the faces from your modelling program and flip the normals.

You can also set BackfaceCulling from Irrlicht to "false", but this is not very good solution, since if you have a high poly mesh you`ll waste lots of calculations for non-visible faces...
"Although we walk on the ground and step in the mud... our dreams and endeavors reach the immense skies..."
skumar
Posts: 201
Joined: Thu Feb 14, 2008 6:24 pm
Location: kerala state india
Contact:

Post by skumar »

try loading it in irrEdit....there you can test with everything....


And if you can do please upload your mesh and textures , so that we can test to find the exact solution....
skumar
Katsankat
Posts: 178
Joined: Sun Mar 12, 2006 4:15 am
Contact:

Post by Katsankat »

If it looks ok in Max, flipping normals won't help.
Weld all vertices together. Then try resetXForm in max.
Post Reply