PDA

View Full Version : automatic texcoords generation



hoshi55
01-24-2003, 12:46 AM
hi!
how do i set the automatic texture coordinate generation to map a square texture to the faces of a glutSolidCube? i've got one texture and want it to appear on each face of the cube so that it fits each face.

thx
eik

T
01-24-2003, 01:59 AM
I seem to remember that glut has tex coords assigned to the objects anyway, and that the cube should produce the effect you are wanting.

I don't think texgen could be manipulated to do what you want.

T
01-24-2003, 02:06 AM
Just checked the glut source, and it doens't seem to have the tex coords in - don't know where I got that idea from. Oh well.