We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › modelX, modelY and modelZ
Page Index Toggle Pages: 1
modelX, modelY and modelZ (Read 230 times)
modelX, modelY and modelZ
Sep 9th, 2008, 5:42pm
 
I have a question concerning modelX, modelY and modelZ.

Based on the example on modelX - http://processing.org/reference/modelX_.html does anyone know how you could store the rotation of the white cube as well as it's position, so that the red cube would spin exactly as the white one?

In other words, how could I reference that rotation in the second part of the example -  

pushMatrix();
 translate(x, y, z);
 stroke(255, 0, 0);
 box(50);
 popMatrix();

?

thanks for your help!
Page Index Toggle Pages: 1