Advertisement

OpenGL : 2D Bitmap 'over' 3D scene

Started by July 01, 2002 03:23 PM
0 comments, last by IvanScheers 22 years, 4 months ago
Hi, For a flight sim project I need to put a 2D ''panel and window'' image in front of an OpenGL rendered 3D scene. Naturally the ''window'' needs to be transparent so the 3D scene remains (nearly) completely visible. Can anyone point me to code that does something similar ? All I know is I need to render & blend a texture mapped polygon in front of my 3D scene, but how does one do just that ? Ivan
The most straightforward way I can think of is to render a textured alpha blended quad, after disabling depth testing and z-buffer writing.
It's not what you're taught, it's what you learn.

This topic is closed to new replies.

Advertisement