PDA

View Full Version : Geometrical model



01-28-2005, 12:45 AM
Hello,
I'm presently modelling the path of a yarn( textile thread)in a fabric. The cross-section of the yarn is elliptical and the path is sinusoidal. What is the best way to create this object noting that it will then interact with a light source to model the reflective nature of yarns?
Thanks & Best wishes

dvm
01-28-2005, 09:37 AM
Well, I haven't understood what a yarn is (I'm not a native english speaker) but maybe you can take a look at
a) Triangle strips
b) Bezier surfaces
Provided that each model will have many vertices you will get a good lighted result.
On the other hand you can use shaders where you can have per-pixel lighting. Hope I've managed to give you an idea ;)

02-01-2005, 11:40 PM
Thanks Moucard,
I'll take a look at the options you have suggested. A yarn is simply a textile thread with which a textile fabric is made.
Do you know where I can get information on triangle strips?
Brotherly
Roshan.

dovkruger
02-02-2005, 04:07 AM
You need to read the red book

Search for opengl reference on the net and you can get a pdf free. Page 45 has all the options for how to draw.