View Full Version : translations
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, 05: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-02-2003, 11:16 PM
Hi,
Try to grab some simple stuft on this site... http://myopendemo.hypermart.net
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.