How to sort the vertices in real time for a MorphingMesh?

Forum for discussion on 3D games for mobile platform and doubts related to M3G, Mascot capsule and other rendering engines.

How to sort the vertices in real time for a MorphingMesh?

Postby MobileVisuals » Fri Nov 04, 2011 7:25 pm

I am trying to port one of my space animations from OpenGL to M3G. The animation displays a morphing galaxy. I need to sort the vertices in every new frame, to get the Z-buffer to work like it should. Is this possible?

I have arrays with the positions for the shapes that are morphed. I put these in the VertexArray[] morphedPositions. I put this into the VertexBuffer[] morphedVertices. I then put this into a MorphingMesh, like this:

positions-->VertexArray morphedPositions--->VertexBuffer morphedVertices-->MorphingMesh

The problem is that the MorphingMesh seemed to be "locked", I can't access it in real time to sort its positions. Or is there some way to do this in M3G?
MobileVisuals
 
Posts: 3
Joined: Mon Aug 08, 2011 8:42 am

Re: How to sort the vertices in real time for a MorphingMesh

Postby MobileVisuals » Mon Nov 14, 2011 9:15 am

I assume that it is not possible to change the positions in a MorphingMesh?
MobileVisuals
 
Posts: 3
Joined: Mon Aug 08, 2011 8:42 am


Return to 3D Mobile Game (M3G)

Who is online

Users browsing this forum: No registered users and 4 guests

cron