Help! My texture is messed up and I can't fix it!

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
dhenton9000
Posts: 395
Joined: Fri Apr 08, 2005 8:46 pm

Help! My texture is messed up and I can't fix it!

Post by dhenton9000 »

Here is a picture of a md2 mesh that has some wierd black lines going thru it. It is fine in the Irrlicht mesh viewer. Its from the md2 export of milkshape. If exported as .x from blender, its the same problem If I don't load the texture, I get a white box with black bands on it.

Its an animated mesh scene node,

It happens in OPEN_GL and DIRECTX 8 and 9

Any body seen this before?
Any body know what to do about it?

I'm wondering if I haven't overflowed something and stomped on a buffer somewhere.

TIA


Image
omaremad
Competition winner
Posts: 1027
Joined: Fri Jul 15, 2005 11:30 pm
Location: Cairo,Egypt

Post by omaremad »

Nice cartoon effect on the gun and level

I think 2 things

-z buffer due to zigzags
and the more likely one

Xmesh file produce really weird shadows try adjusting the shadow and stencil buffer options
omaremad
Competition winner
Posts: 1027
Joined: Fri Jul 15, 2005 11:30 pm
Location: Cairo,Egypt

Post by omaremad »

remeber to recalculate normals in the blender exporter
Ishtm
Posts: 37
Joined: Mon May 09, 2005 8:03 pm

Post by Ishtm »

Hi,
I think 3 things:

1- If the model is lightmaped
May be the second Uv's is set wrong.

2- http://irrlicht.sourceforge.net/phpBB2/ ... php?t=8075

3- Have you the same model loaded two times and one of them don't
materialize so it get black?

P.D
thanks for you aproach to Newton Character Controller :)
dhenton9000
Posts: 395
Joined: Fri Apr 08, 2005 8:46 pm

Post by dhenton9000 »

I love you Dudes!

It was both a z-buffer and stupid programmer problem!!

It was loaded twice, once as a static node and once as an animation. Now if I can just grow my hair back....


Thanks!!!
Post Reply