PDA

View Full Version : textures and surfaces



glguru
03-28-2000, 06:59 AM
Hi,
I have two surfaces that I would like to texture.The texture, however,
needs to cover only half of the surface in width but the full height of
each surface. I am not sure what is the best way to do this. Any help is
appreciated...

FATBUDDHA
03-28-2000, 07:36 AM
Your best bet might be just to draw four polygons instead of two. It might not be the fastest solution, but the simplest solutions are usually the best. http://www.opengl.org/discussion_boards/ubb/smile.gif

fenris
03-28-2000, 12:47 PM
Map the first poly with the coords:
(0,1),(0.5,1),(0.5,0),(0,0)
and the second:
(0.5,1),(1,1),(1,0),(0,0)

Notice i've only used half the width of the texture on the U coords for each poly. That should do the trick.