Re: Dir3d-l Digest, Vol 10, Issue 37 2004-03-26 - By Neto
Back I never tested it across MIAWs. Did you try storing the reference to the camera in a variable and using it? See if this works (I can't test it right now):
myCamera = member("head").camera ("Camera2") tell window "@:files:LensView.dir" to sprite(1).camera=myCamera
-- -- Original Message -- -- From: "Carl Lydon" <carl@(protected)> To: <dir3d-l@(protected)> Sent: Thursday, March 25, 2004 1:55 PM Subject: [Dir3d-l] Re: Dir3d-l Digest, Vol 10, Issue 37
> Hey, and are you sure that you can set the camera of a sprite within a > MIAW to a camera contained in a member owned by the stage? If I could > do that, it would really speed up my image capturing problem, as I > could capture the image of a small window rather than my whole big > stage. But I tried various ways to set the camera in my MIAW with no > success. Here is a script I tried: > > tell window "@:files:LensView.dir" to sprite(1).camera=(the > stage).member("head").camera ("Camera2") > > This doesn't work at all, I get "Handler not found in object" error. > > Have you actually done this? What is the right syntax? > > Thanks, > > Carl > > > > > > From: "Neto" <neto@(protected)> > > Subject: Re: [Dir3d-l] Cameras and Images > > To: <dir3d-l@(protected)> > > Message-ID: <000d01c41207$e4c5dd20$1501b2aa@(protected)> > > Content-Type: text/plain; charset="iso-8859 (See http://iso-8859.ora-code.com)-1" > > > > Create an empty W3D and make it non DTS. Place it on the stage, with a > > small > > rect (that'll be the size of your texture), and using lingo to change > > the > > nin DTS sprite camera to the camera you want it to display in the main > > W3D > > (a 3D sprite can display cameras from different members other than it's > > own). > > > > The DTS member will be rendered on top of the non DTS one, and since > > DTS > > sprites will not affect (the stage).image, you can extract the image > > of the > > hidden sprite from the stage image. > > > > Just a notice, I've head that placing a non DTS 3D sprite behind a DTS > > one > > flickers on some Macs, so you might try adjusting the HTML tags to > > crop the > > DCR display area, so you can put the hidden 3D sprite outside the > > visible > > area (that's a good trick to have things render to the stage without > > the > > user seeing it, since the full stage will be rendered, but only part > > of it > > will be shown). For projectors, using a hidden MIAW does the trick. > > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ > Dir3d-l mailing list > Dir3d-l@(protected) > http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l >
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
|
|