[Papervision3D] Another AS2 revision
Carlos Ulloa
c4rl054321 at gmail.com
Mon Dec 11 18:56:05 EST 2006
It should work as you expect.
Check out the HelloPlaneWorld example, that moves the camera in x, y.
camera.x = -canvas._xmouse;
camera.y = -canvas._ymouse;
If it doesn't work, I can take a look at it. The camera classes have changed
a bit recently.
Cheers,
C4
On 11/12/06, Steven de la Torre | BLITZ <sdelatorre at blitzagency.com> wrote:
>
> It seems to me that I should be able to change the cameras position, and
> ultimately what appears on the screen by saying something like this:
>
>
>
> camera.x += 100;
>
>
>
> then when you call:
>
>
>
> scene.renderCamera( camera );
>
>
>
> the viewpoint should change, however it does not. It does change when I
> modify the rotationX and rotationY properties though.
>
>
>
> It seems the only way to affect the x, y, and z coordinates of the camera
> is through the constructor which passes the initObject 3 classed down to the
> DisplayObject3D constructor like this:
>
>
>
> var cameraObj:Object = new Object();
>
> cameraObj.x = -5500;
>
> cameraObj.y = -5500;
>
> cameraObj.z = -300;
>
> camera = new FreeCamera3D(2, 100, cameraObj);
>
>
>
> This is my first open source project, so I'm hesitant to just dive in and
> change stuff. But I'm tempted to modify DisplayObject3D to give it some sort
> of x,y,z transform function. Or maybe I should just put it in the camera.
>
>
>
> I'm eager to hear your thoughts,
>
> dela
>
>
> ------------------------------
>
> *Steven de la Torre*
> *Lead Flash Developer*
> *Ph:* 310-551-0200 *x225*
> *Fax:* 310-551-0022
> sdelatorre at blitzagency.com
>
> *BLITZ* - 405 S Beverly Drive, 3rd Floor - Beverly Hills, CA 90212 -
> www.blitzagency.com
>
>
>
> _______________________________________________
> 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/20061211/231a8bdb/attachment.htm
More information about the Papervision3D
mailing list