Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Mr.Marbles

Pages: 1 ... 4 5 [6]
Support / It worked!
« on: January 16, 2006, 06:31:34 pm »

Thank-you, that did the job  :D

I'm really curious about why it works though. What's the logic behind taking the inverse of the
... transformation matrix used to transform the object from objectspace into worldspace ...
and setting the camera's         backbuffer to this value  :?:  :?:

Support / Help with Camera movement
« on: January 16, 2006, 05:10:51 pm »
Still working on this issue...

I'd like to rephrase my question (again  :oops: ). Is there a way to get the orientation of an Object3D with respect to the world coordinate system? Something like a getTransformedCenter() but for orientation (rotation). It looks like all the rotation information stored in an Object3D only describes orientation in the Object3D's local coordinate system.

Support / Help with Camera movement
« on: January 16, 2006, 03:39:40 pm »
After further analysis, it seems that align() only works if I directly rotate the Object3D that I'm trying to mimic with the camera. If that Object3D is rotated as a result of its parent's rotation then the align() does not work. Is this a "feature" of jpct? How can I get the correct rotation information from the Object3D? I.e. rotX, rotY, rotX ?

Support / Help with Camera movement
« on: January 16, 2006, 03:24:21 pm »

I don't know why but the align() doesn't seem to work. I've even tried to mimic the Object3D's movement with another Object3D:

Code: [Select]

Object3D cameraBox = Primitives.getCube(10f);
private void moveCamera()

And this still doesn't work; the rotations are not being copied. The cameraBox object only translates properly, but never rotates. Do you have a working example of the align() method?

Support / Help with Camera movement
« on: January 13, 2006, 08:56:47 pm »

Thank-you for the quick reply! The code you suggested will only allow the camera to mimic the Object3D's translations but not its rotations. That is, the camera is always facing the same direction while being translated. For example, if I make my Object3D orbit a point around the y axis, the camera will pan from left to right and move forward and back, following the translation of the object along the orbiting path. I need the camera to also follow the rotations applied to the Object3D. I've had similar results when using the lookAt() method; it follows the object but is always facing the same direction.

Support / Help with Camera movement
« on: January 13, 2006, 05:37:58 pm »

I'm a new user of the jpct engine, but I've worked with Java3D for about a year, so I have some experience with the scenegraph paradigm. I find there are some significant differences with camera manipulation; with Java3D a camera could be attached to any node in the scenegraph and it's movement would be dictated by the inherited rotaions/translations of its ancestor nodes. In jpct, however, the camera movement needs to be manually controlled. My question is how can I ensure that the camera mimics the exact same motion as an Object3D in the scene? It's important to note that I'm not rotating/translating the Object3D directly, but insted it's being moved through inherited motions from it's ancestor nodes (other Object3Ds). I hope my question is understandable, if not I will try to clarify.

Btw, great work with the jpct engine :!:

Pages: 1 ... 4 5 [6]