PDA

View Full Version : Tiling textures onto Quadrics objects



03-05-2003, 08:52 AM
If I create a quadrics object, say a cylinder, my texture must be close to the size of the cylinder to minimize the distortion.

Is there a way to tile a texture onto quadrics objects so I can minimize the distortion?

Thanks

delsydsoft
03-06-2003, 01:35 AM
I just checked the Red Book, and it says that automatic texture coordinate generation for quadrics is limited to texture coordinates between 0.0 and 1.0. So, I'd say that you might want to generate your cylinder and its texture coordinates by yourself, as opposed to using the gluQuadric functions.It doesn't look like tiling(i.e. tex-coordinates above 1.0) is an option for Quadrics.

JustHanging
03-06-2003, 05:10 AM
Hi,

You can tile the the textures simply by adding scaling to the texture matrix.

-Ilkka