LWJGL
May 18, 2013, 22:21:39 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.9.0 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: how to know the position  (Read 2192 times)
cvcMateu
Newbie
*
Posts: 5


« on: April 29, 2008, 08:08:00 »

I've an application that uses opengl (lwjgl).
In my application some figures are drawn. Is it possible to know which are the 'real' (from the canvas) position where a 3d object has been drawn.

As an example, imagine that you have a 3d scene. In the scene you have represented a TV. I have a software that can place a video given the cordinates where the video should be placed. Therefore I need to know where is the (2d) place where the Tv has been drawn.

Is it possible. If it is, how this can be achieved?

Thanks!
Logged
Fool Running
Nerdus Imperius
*****
Posts: 740


« Reply #1 on: April 29, 2008, 10:28:19 »

A better way to do videos in 3D is to render the videos on a texture (replacing the contents each frame) and use the texture on an object (in this case the TV screen).

If that's not an option, I think GLU.gluProject() that does what you want.
Logged

Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option Grin
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!