how do i tint the screen?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

how do i tint the screen?

diskhub
how can I shaded a tinted red so that my view can see everything in tinted red?
My viewport is in perspective.
Reply | Threaded
Open this post in threaded view
|

Re: how do i tint the screen?

Wade Walker
Administrator
I can think of a few ways

1. Make your lights red.
2. Use OpenGL fog, colored red.
3. Put a translucent red polygon right in front of your camera, so you're looking through it. This may cause drawing order problems, though, depending on what's in your scene.
4. Render to a buffer, then process the buffer's pixels to redden it (e.g. multiply each pixel RGB value by (1.5, 1, 1) and clamp to 1).
Reply | Threaded
Open this post in threaded view
|

Re: how do i tint the screen?

diskhub
hi, option 4 sounds good. But i do not know how to implement it. Any quick help?
Reply | Threaded
Open this post in threaded view
|

Re: how do i tint the screen?

Wade Walker
Administrator
Check the docs for framebuffer objects (FBOs):

http://en.wikipedia.org/wiki/Framebuffer_Object
http://www.songho.ca/opengl/gl_fbo.html

The idea is to render offscreen, then postprocess the rendered image, then display it.