View Full Version : 1D Texture mapping 01-09-2006, 03:32 AM Can
someone please tell me, where can i find good tutorials for 1D
TEXTURE MAPPING, with a few examples? I am in desperate need for
this. I'm sure you could find plenty of examples of 1D texture
mapping on this site. But it's really quite simple. It's really
no different than 2D, 3D, and CUBE mapping, in the sense that
you need to define an appropriate texture, create some geometry,
supply or generate texture coordinate, then draw. Can you post
the code you're having trouble with, or can you be more specific
in your query? The "RedBook" has examples of most the basic
concepts. This chapter covers texture mapping: 01-09-2006, 07:39
PM Hi Smiley, given below, is my code to create a Cone: float
bottomRadius = 0.75 , topRadius = 0.0, height = 1.5, sliceCount
= 102; float theta1, theta2, X1, Y1, X2, Y2, X3, Y3, X4, Y4;
for(count = 0; count < sliceCount; count++) theta1 =
(float)(((360*count/sliceCount))*3.141592/180); theta2 =
(float)(((360*(count+1)/slic