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.


Topics - Hmm

Pages: [1]
1
Support / Quaternion?
« on: May 18, 2007, 05:42:37 pm »
Hi,

The physics library which I am using returns rotations as Quaternions.  I have very little experience in 3D math, and cannot see any obvious way to move that over to jPCT.  Given a Quaternion as a javax.vecmath.Quat4f object, how can I use that to set an Object3D's rotation?

Thanks for any help!  :D

2
Support / Matrix3f
« on: May 13, 2007, 03:24:08 am »
Hello,

I have a rotation stored as a Matrix3f object, and need to use that to set the rotation of an Object3D.  Unfortunately, I don't quite understand how rotations are represented in this format, so I'm having trouble making the conversion to the Matrix object needed for the setRotationMatrix() method of the Object3D.

Is there any simple way to convert from a Matrix3f to a Matrix?

Thank you for any help! :)

3
Support / Making a pair of dice
« on: April 25, 2007, 06:16:49 pm »
Hi,

I'm currently trying to create a simple die with jPCT (6 sided cube with a number on each side, represented by circles).  I've currently set up the cube, and loaded the textures into the texture manager.  I've set the cube up so that it rotates around over and over again in order to show it's sides.  How can I apply the 128x128 textures to the sides of the cube?  As I understand it, each side is actually made up of 4 polygons, so I've tried applying the same square texture to each of the four polygons on each side.  However, when I rotate the cube like this:

Code: [Select]
dice.dieOne.rotateX(0.05f);
...the circles appear to "slide" across the surface of the cube as it rotates.  Am I supposed to set the textures to lock or something?

Thanks for any help!

Pages: [1]