Orbiting camera vs orbiting DO3D

2 messages Options
Embed this post
Permalink
Nikos Chagialas-2

Orbiting camera vs orbiting DO3D

Reply Threaded More More options
Print post
Permalink
Hi,

I currently use camera.orbit(cameraPitch, cameraYaw % 360); to orbit the camera around an object.

I have now introduced a light and use a PhongShader/ShadedMaterial to apply shading. However, as the camera orbits around the scene, the light orbits with it, therefore always pointing to the same face.

How would I fix the light and orbit the object interdependently?

I thought of making the object orbiting instead of the camera but I couldn't get the same results (i.e. rotationX is relevant to rotationY). 

Any suggestions are really appreciated..

thanks
n.



_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
Nikos Chagialas-2

Re: Orbiting camera vs orbiting DO3D

Reply Threaded More More options
Print post
Permalink
Should I assume it is not possible then?

n.

2009/10/12 Nikos Chagialas <[hidden email]>
Hi,

I currently use camera.orbit(cameraPitch, cameraYaw % 360); to orbit the camera around an object.

I have now introduced a light and use a PhongShader/ShadedMaterial to apply shading. However, as the camera orbits around the scene, the light orbits with it, therefore always pointing to the same face.

How would I fix the light and orbit the object interdependently?

I thought of making the object orbiting instead of the camera but I couldn't get the same results (i.e. rotationX is relevant to rotationY). 

Any suggestions are really appreciated..

thanks
n.




_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org