
|
Can't seem to figure out Cameras
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
|

|
Re: Can't seem to figure out Cameras
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@...>
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
|

|
Re: 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 olee
2009/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
_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
|

|
Re: Can't seem to figure out Cameras
Well, I've replaced camera.position = new Number3D(0, 0, 0) with camera.x = 0, camera.y = 0 and camera.z = 0 Now it's working, but the object seems to be above the camera, and not in the center... Could it have anything to do with the Collada file? I've positioned the object in 0,0,0 previous the exporting the Collada file...
Any idea? 2009/6/29 Javier España | javierespana.com <info@...>
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 olee
2009/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
_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
|

|
Re: Can't seem to figure out Cameras
try: camera.target = yourColladaDO3D or/ and camera.y = some number have a look in your collada: is it at 0,0,0 in your third party app? org.papervision3d.core.math.Number3D youre working with the flash-ide? its hard to handle all that import-stuff by hand.
http://www.scribd.com/doc/12485051/papervision3dcheatsheethttp://papervision3d.googlecode.com/svn/trunk/as3/trunk/docs/index.html?package-summary.html&all-classes.html
olee 2009/6/29 Javier España | javierespana.com <info@...>
Well, I've replaced camera.position = new Number3D(0, 0, 0) with camera.x = 0, camera.y = 0 and camera.z = 0
Now it's working, but the object seems to be above the camera, and not in the center... Could it have anything to do with the Collada file? I've positioned the object in 0,0,0 previous the exporting the Collada file...
Any idea?2009/6/29 Javier España | javierespana.com <info@...>
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 olee
2009/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
_______________________________________________
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
|

|
Re: Can't seem to figure out Cameras
Yeah, when I go to the 3dsmax file the object is in 0,0,0 I've used camera.target, and it locks on the object, but the object is above the center of the camera, it isn't at the same level to put it someway...
Why can this happen? I can manually move the camera on the y axis to focus better on the object, but that's a manual way to do it, any other way? I'll print this :D thanks http://www.scribd.com/doc/12485051/papervision3dcheatsheet
On Mon, Jun 29, 2009 at 3:02 PM, o renken <renkster@...> wrote:
try: camera.target = yourColladaDO3D or/ and camera.y = some number
have a look in your collada: is it at 0,0,0 in your third party app?
org.papervision3d.core.math.Number3D
youre working with the flash-ide? its hard to handle all that import-stuff by hand.
http://www.scribd.com/doc/12485051/papervision3dcheatsheet http://papervision3d.googlecode.com/svn/trunk/as3/trunk/docs/index.html?package-summary.html&all-classes.html
olee 2009/6/29 Javier España | javierespana.com <info@...>
Well, I've replaced camera.position = new Number3D(0, 0, 0) with camera.x = 0, camera.y = 0 and camera.z = 0
Now it's working, but the object seems to be above the camera, and not in the center... Could it have anything to do with the Collada file? I've positioned the object in 0,0,0 previous the exporting the Collada file...
Any idea?2009/6/29 Javier España | javierespana.com <info@...>
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 olee
2009/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
_______________________________________________
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
_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
|