PDA

View Full Version : 3d texture coords



Iblues76
05-27-2011, 11:39 AM
Hi,
I have a cube with the following vertices
point4 vertices[8] = {
point4( -0.5, -0.5, 0.5, 1.0 ),
point4( -0.5, 0.5, 0.5, 1.0 ),
point4( 0.5, 0.5, 0.5, 1.0 ),
point4( 0.5, -0.5, 0.5, 1.0 ),
point4( -0.5, -0.5, -0.5, 1.0 ),
point4( -0.5, 0.5, -0.5, 1.0 ),
point4( 0.5, 0.5, -0.5, 1.0 ),
point4( 0.5, -0.5, -0.5, 1.0 )
};

what would be the 3d text coordinates that I would need to make it correctly ?
thanks

Iblues76
05-30-2011, 08:19 AM
After mapping them, I think the answer is
0,1,0
0,1,1
1,1,1
1,1,0
0,0,0
0,0,1
1,0,1
1,0,0