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 › OpenGL version of modelX
Page Index Toggle Pages: 1
OpenGL version of modelX ? (Read 438 times)
OpenGL version of modelX ?
Oct 2nd, 2008, 7:52pm
 
Hi,

Does anyone know of a way I can achieve something similar to Processing's modelX/Y/Z whist using OpenGL's glTranslatef / glRotatef to do transformations ?

I'm kind of assuming not, but it's hard to google things you don't know the name of...

Many thanks, B
Re: OpenGL version of modelX ?
Reply #1 - Oct 2nd, 2008, 8:59pm
 
I remember doing something similar with gluProject and gluUnproject a while back. Those are the functions you wanna google Tongue
Re: OpenGL version of modelX ?
Reply #2 - Oct 3rd, 2008, 1:05pm
 
Thank you, though gluProject seems to convert world to screen, and I'm looking to convert local ( after transformation ) world co-ordinates to global world co-ordinates.

I'll keep looking, thanks again.
Re: OpenGL version of modelX ?
Reply #3 - Oct 3rd, 2008, 1:10pm
 
ah, I didn't know what modelX did, I was remembering screenX. modelX sounds really useful, if you do find out how to do it keep us posted. Could it not be simply multiplying the coordinates with the inverse of the modelview matrix?
Page Index Toggle Pages: 1