[Papervision3D] Can't seem to figure out Cameras
o renken
renkster at gmail.com
Mon Jun 29 11:02:54 PDT 2009
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 at javierespana.com>
> 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 at javierespana.com>
>
>> 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 at gmail.com> 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 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/
>>>
>>> _______________________________________________
>>> Papervision3D mailing list
>>> Papervision3D at osflash.org
>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>
>>>
>>
>
> _______________________________________________
> 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/047a7b74/attachment.html>
More information about the Papervision3D
mailing list