transforms driving newbie crazy please help :) 2004-04-02 - By Naomi Spirit
Back >The method im thinking of is that I need to set up a transform, eg. myTrans = transform(), then edit this >transform and set the camera to it. I can then use scene.camera[1].transform.identity to reset it right??
nope, that would reset it to a transform with position, rotation at 0.
Have you perhaps missed the fact that unless you make a duplicate of the transform, you are just holding a refernce to it? For example, it you were to do the following
member("3dScene").camera[1].transform.rotation = vector(0,0,0)
tTransform = member("3dScene").camera[1].transform()
member("3dScene").camera[1].transform.rotate = vector(0,30,0)
put tTransform.transform.rotation
-- vector(0,30,0)
I know when I started out on 3d, I spent a couple of infuriating days trying to figure out why something wasn't working, only to discover I needed to make a duplicate of the transform.
tTransform = member("3dScene").camera[1].transform().duplicate()
Hope the problem was that simple, good luck Naomi
*********************************************************************** This e-mail, and any attachment, is privileged information and its contents are confidential to the intended recipient at the e-mail address to which it has been addressed. It may not be disclosed to or used by anyone other than this addressee. If received in error, please contact Learning & Teaching Scotland on +(44) 141 337 5000 or e-mail enquiries@(protected), quoting the name of the sender and the addressee, and then delete it from your system. Please be aware that, although all reasonable steps have been taken, neither Learning & Teaching Scotland nor the sender is able to accept any responsibility for viruses. No contracts may be concluded on behalf of Learning & Teaching Scotland by means of e-mail communications. The contents of this message may contain personal views which are not the views of Learning & Teaching Scotland, unless specifically stated. ********************************************************************** __ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
|
|