create a pyramide pointing some location

Started by raft, December 26, 2009, 06:51:21 PM

Previous topic - Next topic

raft

mm, i need to investigate it further..

their look at method is something like:

       
        direction.normalize(zAxis); // stores normalized in zAxis
        up.normalize(xAxis).crossLocal(zAxis);
        zAxis.cross(xAxis, yAxis);

        fromAxes(xAxis, yAxis, zAxis);

EgonOlsen

The algorithm looks the same. However, i've updated the beta-jar with a version that offers a new getRotationMatrix(<SimpleVector>)-method in SimpleVector that takes an additional up-vector. Maybe trying that with an actual jPCTish up vector (0, -1, 0) shows different/better results.

raft

this new getRotationMatrix(0,-1,0) method bahaves exactly the same as no arg one for this case.
thanks. i'll look for a reliable up vector

raft

#18
and here is a skinned capture rendered in jPCT ;D
www.aptalkarga.com/tmp/seymour.ogv

edit: updated the link with a more correct version (bones weren't rendered correctly)

EgonOlsen

Very nice.  Is the skeletal animation system also an Ardor port or are you using the loader only?

raft

indeed all is Ardor's at the moment. except, at the very last stage, ardor's matrix is converted into jPCT's and used in IVertexController.
i'm planning to convert all data to jPCT at load time allowing to be serialized standalone and later reloaded without Ardor