PDA

View Full Version : translations



11-01-2003, 05:25 AM
I have built up an object using basic 2d shapes and placed it in my scene. I am now wanting to transform the object. Do I have to transform all the individual shapes or is there a way to transform the object itself?

(The object is made up of lines and rectangles.)

Thanks
#Simbad

mikael_aronsson
11-01-2003, 06:40 AM
Search for hierarchical transformations...

You can use glPushMatrix() glPopMatrix() to select how to do the translations.

glPushMatrix();
transform_entire_object_here
glPushMatrix();
local_transformation_of_some_part_of_object
glPopMatrix();
glPushMatrix();
transform_other_part_of_object
glPopMatrix();
glPopMatrix();

cwc36
11-03-2003, 12:16 AM
Hi,

Try to grab some simple stuft on this site... http://myopendemo.hypermart.net