View Full Version : Select a object
Is there a method to select an object with the mouse and change his position ?
10-23-2001, 04:30 AM
well it is not that easy that you can do it all with one or two function calls.
you have to switch in a different render mode. sort of offscreen, but i can't remember the syntax. then you can use glu-stuff like glupick...
the modification of the position you have to do yourself.
if you want to have an example give me a mail and i try to send you my example from superbible2, though i am sure that there are enough examples on the net.
Here my mail: firstname.lastname@example.org Your help will be very useful for me. Thank you !
10-23-2001, 07:32 AM
What you want to do is called 'picking'. Any OpenGL reference (e.g. red book, Superbible) will have the information you seek.
10-23-2001, 10:36 AM
Look in Selection & Feedback section of any OpenGL book. I use OpenGL Programming Guide - Third Edition
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.