« Return to Thread: Can't seem to figure out Cameras
Wich library has the Number3D function? I'm getting an error that It cannot be found...On Mon, Jun 29, 2009 at 1:29 PM, o renken <renkster@...> wrote:
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
olee2009/6/29 Javier España | javierespana.com <info@...>_______________________________________________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@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
--
http://www.renkster.de/
_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
« Return to Thread: Can't seem to figure out Cameras
| Free embeddable forum powered by Nabble | Forum Help |