[Papervision3D] Can't seem to figure out Cameras
o renken
renkster at gmail.com
Mon Jun 29 09:29:20 PDT 2009
Its mostly done for you :-)
A simple way to circle around your object is
onLoop(){
camera.position = new Number3D(0, 0, 0); // your 'circle center'
camera.yaw(1); // your rotation speed around Yaxis
camera.moveBackward(1000); // move camera back 1000 units with its current
rotationY
render()
}
try to implement the hoverCamera/ orbit. Its much more fun :-)
hth
olee
2009/6/29 Javier España | javierespana.com <info at javierespana.com>
> Hi there,
>
> I'm loading a Collada object and using a BitmapFileMaterial to give it
> texture from a png file. The Collada object loads on x:0, y:0, z:0.
>
> The thing is that I want to have my camera circle the object all the time
> just to see the object better and from all angles.
>
> I can't figure out how to position the camera in a logical way, I just try
> and change the camera x, y and z to fit my needs...
>
> Does anyone know a good tutorial or example on camera positions? I suppose
> the size of the Collada object will be important, how do I take that into
> account?
>
> Thanks a lot, next step after understanding this will be to apply this
> http://pv3d.org/2008/11/19/dragging-mouse-for-camera-orbit/ to my scene...
>
> Thanks,
>
> Javier
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
--
http://www.renkster.de/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090629/3b0fafb7/attachment.html>
More information about the Papervision3D
mailing list