View Full Version : Wrong colour when map tex and Disappearing faces
03-21-2005, 06:25 PM
Two problems that i havn't been able to solve are:
When a texture is mapped to a face, all yellow and shades of yellow are changed to blue and shades of blue.
With all of my faces, at certain translated camera points they will disapper sometimes only half disapper (as in only part of the face is visible) for no reason, has been tried on two computers with the same results(two different graphics cards). There are no other faces to obsecure these faces.
This is a non-technical description, just want to see if they are common problems before i post a longer desc, that and i have a lector in 5 minutes.
03-21-2005, 09:50 PM
Any blending involved in the textures ? and what is the color of the surface you map the texture on ?
What do you mean with "faces", do you mean that you only see partial triangles or do you loose one or more triangles of a surface ?
If that is the case make sure that you got the winding order correct so that the triangles are facing the right way (if you see the back side of a triangles and you cull back facing triangles you will not see them).
If that's not the problem, make sure you clear the depth buffer at each frame so you don't get some crap remaining in the depth buffer.
And if that's not the problem either, post a screenshot.
The first problem sounds like a RGB vs. BGR issue, the other like a near-far clipping plane issue.
If you could post a screenshot and/or some code, it would be much easier to troubleshot the problems.
Yes, check your view frustum, it's probably too small.
03-30-2005, 06:35 PM
Sorry it took me so long to reply, i still dont have the net at home.
I did some more exploring in my spare time, my near and far clip is 0.0 and 60.0 and the objects are well inside that range, so this is not the problem.
When i set the bitsperpixel to 16 (instead of the original 32), there wasn't a problem with disappering faces. So i did a search in the forums and cant seem to find anything related. Turning textures on and off never effected the outcome.
I originally thought it was the RGB, BGR problem and i cant remembered if i tried it out... Ill try it when i get back home and post here again in about 30 minutes.
Ps. thanks for far
Putting z-near at 0.0 isnt a very good idea and will kill your z-buffer precision:
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.