RE: transforms driving newbie crazy please help :) 2004-04-02 - By paul
Back I'm not sure this will help you specifically with transforms, but it may give you some ideas about how to give a user some control over the camera. If not, at least Naomi got you on the right track on dealing with transforms. I agree, they are tricky to figure out the first time around.
The tree stuff is superfluous, just dig out the camera behavior... http://www.videoideas.com/gallery/paul/treebuilder8.dir
> Date: Fri, 2 Apr 2004 15:10:43 +0100 > From: "James Carrington" <JCarrington@(protected)> > Subject: [Dir3d-l] transforms driving newbie crazy please help :) > To: <dir3d-l@(protected)> > Message-ID: > <20BE9402795E674D88314024F9F3106D01DF82@(protected)> > Content-Type: text/plain; charset="us-ascii" > > Hi all... I'm trying to get my head round transforms, especially with > the camera. I've gone through the transforms chapter in Paul Catenese's > book a few times now and cant seem to get my head round it. > > I basically want to do this... > At the start of the movie, set the camera up into a nice initial start > position for viewing the 3d object. I want to store this > position/transform of the camera so that I revert back to it when the > user clicks 'reset'. > > I then want to allow the user to rotate the camera round the object and > zoom in and so on with mouse and keyboard inputs. > > Does anyone know of any good examples I can rip through to help me get > my head round this once and for all? > > 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?? > > Anyway, I'd very much appreciate some help. > > Thanks in advance > James.
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
|
|