View Full Version : triangular texture maps
01-15-2004, 08:27 PM
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??
You can pack two (or more) triangular textures into one rectangular.
01-17-2004, 09: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, 10: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.
You can eliminate bleeding by not packing them tightly. Add a small border between the two pictures.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.