Rotation Matrix3 to Matrix4

76 views
Skip to first unread message

Mario Lenci

unread,
Sep 23, 2011, 11:59:01 AM9/23/11
to jinn...@googlegroups.com
Hi,
me again, of course ^^.

I'm working on jinngine and jCPT on Android and i can't figure out how to apply rotation to the 3D graphic object i'm using.

I'm new to the 3D graphic programming so i'm sorry if this is a dumb question but i can't figure out how to solve the problem so...
jCPT want a Matrix4 to set rotation to objects and jinngine give me only a Matrix3.
Now, i guess it's not a luck of information but just another way to rappresent the rotation.

How can i translate the Matrix3 rappresentation to the jCPT rappresentation Matrix?

jCPT Matrix Class
jCPT Graphic Object


Morten Silcowitz

unread,
Sep 23, 2011, 12:05:47 PM9/23/11
to jinn...@googlegroups.com
Can't you use Geometry.getWorldTransform() ?

http://code.google.com/p/jinngine/source/browse/branches/geometry_rework/jinngine/src/jinngine/geometry/Geometry.java#88

It should give you the 4 by 4 world transform matrix.

Mo

Mario Lenci

unread,
Sep 26, 2011, 3:35:50 AM9/26/11
to jinn...@googlegroups.com
Hi,
thanks for the advice, it seems to be the right way to do it but i still have some problem with the Graphic engine.
Only half of the die is rendered. Any suggestion? i mean, has it ever happen to you? is it a classic mistake?
Reply all
Reply to author
Forward
0 new messages