Texture question
Can i texture two sides of the same poly?
www.EberKain.comThere it is, Television, Look Listen Kneel Pray.
Have two polygons with the same vertices, use the one facing the camera (there should be tutorials around somewhere for occlusion, I''m definately not an expert, so I couldn''t explain it too well), and have them both use different textures. There may be a better, way, but I don''t know it off hand .
"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
http://druidgames.cjb.net/
"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
http://druidgames.cjb.net/
I think the method isn't efficient, and it would cause bad performance if you rotated scene.Because Z of the two triangle with the same vertices cannt exactly equal,it would be uncerain which triangle can pass depth-comparison.Thus there migth be two texture in an triangle.
Edited by - ursa on April 17, 2001 8:44:52 AM
Edited by - ursa on April 17, 2001 8:44:52 AM
If you want to texture both sides of the poly with the same texture just use glPolygonMode(GL_FRONT_AND_BACK, GL_FILL) somewhere in your init stage of the renderer. You have to disable backface culling in order to see the poly from behind or you will need to render two polys with same vertices. One for front side and one for back side. This is also the way how to render poly with different textures on each side. In this case you have to render actually two polys. There is really no other way I know about.
no, i want to texture each side of the poly with a different texture.
www.EberKain.comThere it is, Television, Look Listen Kneel Pray.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement