LWJGL
May 18, 2013, 22:21:39
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
LWJGL 2.9.0 released!
Home
Help
Search
Login
Register
LWJGL
>
Programming
>
OpenGL
>
how to know the position
Pages: [
1
]
« previous
next »
Print
Author
Topic: how to know the position (Read 2192 times)
cvcMateu
Newbie
Posts: 5
how to know the position
«
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
Re: how to know the position
«
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
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Programming
-----------------------------
=> Lightweight Java Library Game Development
=> LWJGL Documentation
=> Bug Reports / RFE
=> OpenGL
=> OpenAL
=> General Java Game Development
-----------------------------
Archive
-----------------------------
=> Resolved Bugs/RFE
=> DirectX
=> DevIL
=> FMOD
Loading...