rhmazza
05-13-2001, 06:53 PM
I'm trying to draw trees recursively, so you start at the trunk and then draw branches that draw branches etc...
I'm trying to use gluCylinder, but I'm having problems keeping track of multiple rotations when I have to draw a branch off of a previous branch. Things get confusing because after a few rotations, glRotate(x, 0, 0, 1) for example won't necessarily rotate around the Z axis since matrix operations have built up.
Any advice on how to go about this?
I'm trying to use gluCylinder, but I'm having problems keeping track of multiple rotations when I have to draw a branch off of a previous branch. Things get confusing because after a few rotations, glRotate(x, 0, 0, 1) for example won't necessarily rotate around the Z axis since matrix operations have built up.
Any advice on how to go about this?