[Papervision3D] How do you change the camera type in pv3d 2.0 beta ?
Kevin Aebig
kevin at keslabs.com
Wed Sep 3 12:42:32 PDT 2008
Aside from setting target = null, what else would need to be changed to
achieve the same results? It seems that other parameters are defaulted
differently than the old FreeCamera3D.
!k
From: papervision3d-bounces at osflash.org
[mailto:papervision3d-bounces at osflash.org] On Behalf Of Ralph Hauwert
Sent: Tuesday, September 02, 2008 9:33 AM
To: papervision3d at osflash.org
Subject: Re: [Papervision3D] How do you change the camera type in pv3d 2.0
beta ?
Here's a bunch of definitive answers on cameras :
If you want to have a freecamera, make sure camera.target = null;
If you want to use the old camera3d functionality, set the target to a do3d.
If you want to use the frustum functionality, set camera.useCulling = true;
To use an orthographic camera, set camera.ortho = true;
To "zoom" when in ortho mode, use camera.orthoScale
Ralph.
On 2 sep 2008, at 17:01, George Profenza wrote:
Hi,
Thanks Gordon!
I've tried it, but doesn't seem to work.
I would've used camera.type if there was.
Doesn't show up in my hints.
I've tried :
camera.type = CameraType.FREE;
but I get: Access of possibly undefined property type through a reference
with static type org.papervision3d.cameras:Camera3D.
Which makes sense, because I don't see a type property in Camera 3D.
In the output panel I get "Papervision3D Public Beta 2.0 - Great White
(20.08.25)"
So I'm guessing this is the last build. I can use camera.ortho which wasn't
in the older version I had.
I'm using the classes in the trunk/as3 folder, but I've opened up
Camera3D.as from the Great White folder as well and I see no
type property.
What is the latest build ?
Cheers,
George
--
George Profenza,
Student, Certified Flash Designer & Developer
-------------------------------------------------------------------
m: 07957916404
-------------------------------------------------------------------
experiments: http://flash.quietroot.org/labs/
blog: http://tomaterial.blogspot.com/
works: http://flash.quietroot.org/
_______________________________________________
Papervision3D mailing list
Papervision3D at osflash.org
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080903/cab97a9c/attachment.html
More information about the Papervision3D
mailing list