[Papervision3D] frustrum camera and rotationY

Fredrik Stutterheim fredrik.stutterheim at perfectfools.com
Wed Jul 2 10:06:39 PDT 2008


hi guys!

so, i've been writing this animation parser wrapper/addon to the  
existing classes for controlling exported collada animations in  
papervision. i've now come to the state that it works pretty nicely  
and all. but for this project i'm building i have to use the frustrum  
camera (due to a very complex and large scene) and there's where i've  
run into problems.

i set my camera to x, y and z positions where the vals are values  
from the actual 3d-animation in the collada. though i would also like  
to set rotationX, rotationY and rotationZ, but this is not possible  
to set on the frustrum camera i guess since i can't get it to work!?

camera.rotationY = 40; // does nothing
cameraAsFreeCamera3D.rotationY = 40; // gives me error since  
cameraAsFreeCamera3D is null

i've tried using the yaw()-function for the y-rotation, but this  
gives me totally crazy results. trying to reset it with yaw(0) just  
moves it all away to the left (should center it)..

anyone got any pointers, tips or tricks here? am i missing something?

thanks!
fredrik



More information about the Papervision3D mailing list