-
Retrieving Coordinates after rotations
Hi all,
I am rotating my camera using GlRotatef which works fine, but once I have rotated how do I get the new coordinates?, same goes for objects...
thanks
-
Junior Member
Regular Contributor
Re: Retrieving Coordinates after rotations
I don't know, but I'm also very interested in it. If you find/get an answer, please let me know.
Thx
-
Re: Retrieving Coordinates after rotations
Hi !
I`m working on a project that enables 3d navigation in a closed box.
I`ve created a class called camera and it is responsible for the rotation , and the different moves of the camera
if you think it is suitable for you !!
-
Re: Retrieving Coordinates after rotations
gvilir - Yes that would be great, if you could post it here or mail it, thanks.
Marc, once I find out I'll tell you!, post me your mail address.
-
Re: Retrieving Coordinates after rotations
It's not possible to get those transformed coordinates in OpenGL.
Just think the hardware case, how on earth could you access the data on the cards pipeline?
Or using several glVertex calls. IF there was some glGetTransformedVertex function, you should call it after each glVertex call. Doesn't sound too nice.
I think it could be possible to make this with some kind of vertex array extension where you can pass OpenGL source and destination arrays. But afaik there is now such thing...
-
Re: Retrieving Coordinates after rotations
Hi david !
it seems that your email adress is wrong or something like this .
-
Junior Member
Regular Contributor
Re: Retrieving Coordinates after rotations
David, my e-mail-address is available in the profiles-section (left one of the four icons on top of postings of registered contributors). But here it is, too:
m.schneider@oe.uni-duisburg.de
thx for your offer
-
Re: Retrieving Coordinates after rotations
Just thought about something...
You could use glProject, but it's not a very good solution...
-
Re: Retrieving Coordinates after rotations
I can't believe what I saw ! Of course you can get the final coordinates of your points ! Have you ever heard of feedback mode ???
Antoche
-
Re: Retrieving Coordinates after rotations
Doh, the problem is that you can't render while in feedback mode! So, you would have to switch into feedback mode, do the stuff you like, switch back to render mode...
Oh yes, and it's in window coordinates.
[This message has been edited by Hude (edited 03-05-2000).]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules