Well, I've replaced camera.position = new Number3D(0, 0, 0) with camera.x = 0, camera.y = 0 and camera.z = 0<br><br>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...<br>
<br>Any idea?<br><br><div class="gmail_quote">2009/6/29 Javier Espaņa | <a href="http://javierespana.com">javierespana.com</a> <span dir="ltr"><<a href="mailto:info@javierespana.com">info@javierespana.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Wich library has the Number3D function? I'm getting an error that It cannot be found...<div>
<div></div><div class="h5"><br><br><div class="gmail_quote">On Mon, Jun 29, 2009 at 1:29 PM, o renken <span dir="ltr"><<a href="mailto:renkster@gmail.com" target="_blank">renkster@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Its mostly done for you :-)<br>A simple way to circle around your object is<br><br>onLoop(){<br>
<br>camera.position = new Number3D(0, 0, 0); // your 'circle center'<br>camera.yaw(1); // your rotation speed around Yaxis<br>
camera.moveBackward(1000); // move camera back 1000 units with its current rotationY<br><br>render()<br>}<br><br><br>try to implement the hoverCamera/ orbit. Its much more fun :-)<br><br>hth<br>olee<br><br><div class="gmail_quote">
2009/6/29 Javier Espaņa | <a href="http://javierespana.com" target="_blank">javierespana.com</a> <span dir="ltr"><<a href="mailto:info@javierespana.com" target="_blank">info@javierespana.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div>
Hi there,<br><br>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.<br><br>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.<br>
<br>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...<br><br>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?<br>
<br>Thanks a lot, next step after understanding this will be to apply this <a href="http://pv3d.org/2008/11/19/dragging-mouse-for-camera-orbit/" target="_blank">http://pv3d.org/2008/11/19/dragging-mouse-for-camera-orbit/</a> to my scene...<br>
<br>Thanks,<br><font color="#888888"><br>Javier<br>
</font><br></div></div>_______________________________________________<br>
Papervision3D mailing list<br>
<a href="mailto:Papervision3D@osflash.org" target="_blank">Papervision3D@osflash.org</a><br>
<a href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org" target="_blank">http://osflash.org/mailman/listinfo/papervision3d_osflash.org</a><br>
<br></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br><a href="http://www.renkster.de/" target="_blank">http://www.renkster.de/</a><br>
<div style="border: 1px solid rgb(0, 67, 179) ! important; margin: 0px ! important; padding: 1px ! important; display: none ! important; height: auto ! important; width: auto; vertical-align: middle ! important; color: rgb(255, 255, 255) ! important; background-color: rgb(0, 0, 0) ! important; font-family: Verdana ! important; font-size: 12px ! important; line-height: normal ! important; font-weight: normal ! important;">
</div>
</font><br>_______________________________________________<br>
Papervision3D mailing list<br>
<a href="mailto:Papervision3D@osflash.org" target="_blank">Papervision3D@osflash.org</a><br>
<a href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org" target="_blank">http://osflash.org/mailman/listinfo/papervision3d_osflash.org</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div><br>