View Full Version : Foreground/Background
02-16-2010, 12:05 PM
So I have an image being plotted with various geometric shapes. Sometimes one of the images overlaps another image. In this case I want one of the images to be in the foreground and one in the background. How would i go about doing this?
02-16-2010, 03:06 PM
Render one image with all it's shapes then render the other one. If you aren't using the depth buffer, the second will always overlap the first. If you do need the depth buffer for rendering an image, render the first, clear the depth buffer, then render the second.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.