View Full Version : Fixed image when panning
02-16-2010, 01:09 PM
So this is a question regarding layers.
I want to have a fixed axis placed on my graphic even when I pan around. How would I go about doing this? Any suggestions would be appreciated.
02-16-2010, 04:05 PM
On your graphic? What is your graphic? A quad? You mean your screen? You want something that stays fixed in your viewport? Does it need to be in 3D? If not...
// render scene
// get ready for 2D projection
glDisable(GL_DEPTH_TEST) // if on
// render fixed axis (with depth buffer off)
02-18-2010, 02:26 PM
I'll give it a shot and let you know how it goes.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.