Advertisement

some more basic stuff

Started by February 12, 2002 02:45 PM
2 comments, last by Crispy 23 years ago
hey, what is the difference between glTexCoord2/3/4f()? i can map a face spanning in three dimensions using glTexCoord2f (or did i just get lucky and the texture fit the way it was supposed to?). and, given the following piece of code, glNormal3f( ?, ?, ?); glTexCoord2f(-1.0f, 0.0f); glVertex3f(-Pre[ID]->w, 0.0f, Pre[ID]->d); glTexCoord2f(0.0f, 0.0f); glVertex3f(Pre[ID]->w, 0.0f, Pre[ID]->d); glTexCoord2f(-0.5f, 1.0f); glVertex3f(0.0f, Pre[ID]->h, 0.0f); what would the three question marks stand for? i know this isn''t exactly a forum question, but i don''t need to read another tutorial, i need a simple straightforward explanation. thanks crispy
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
tex 1
1d texture: a line of colors
tex 2
2d texture a surface texture: ie a face.
tex 3
3dtexture a volume. head with brain inside
tex4
4d texture a volume with an extra dimension ie time
head with brain inside over many years.

the ?''s are the directions of the normals of the triangle.
This is used in lighting calculations.

hope that helps.
Advertisement
teehee anon, i was more hoping someone would tell how to find the ?''s. i know what they are, but i don''t know how to calculate them, hence the sample code (how do i find the normal of the triangle in the sample?).
how do you texture map a volume? you mean something like a sphere or a cylinder? moreover, what is tex4 for? umm - for moving textures and stuff??

thanks anyway!
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
Crispy waht ya wanna do is search around www.google.com for dotproduct and crossproducts and you will be able to find some resources on it.
Wot Sig?

This topic is closed to new replies.

Advertisement