View Full Version : triangular texture maps

01-15-2004, 09:27 PM
hi there
if i want to texture map my triangles with all different textures on each one its a great waste of space to have a square texture in memory and then put part of it on the triangle? has anyone ever though about this idea of mabye trangluar texture maps??

01-16-2004, 02:13 AM
You can pack two (or more) triangular textures into one rectangular.

01-17-2004, 10:25 AM
yea that will work but only if they are the same size? wont they?
if they are all differnet sized polys you wouldnt be able to make a square out of two odd shaped triangles?

01-17-2004, 11:50 AM
The size of the polygon doesn't matter, cause you use the texcoords to define what part of the texture gets samples. But putting 2 triangluar texture maps into one quad isn't a good idead. First they may "bleed" into each other cause of filterung and second, you wouldn't be able to repeat that texture unless you use a shader.

01-17-2004, 12:45 PM
You can eliminate bleeding by not packing them tightly. Add a small border between the two pictures.