FurMark
Current Version: 1.15.1
»FurMark homepage
»FurMark 1.9.x Submissions

GPU Caps Viewer
Current Version: 1.22.0
»GPU Caps Viewer homepage
»GPU DB Submissions

PhysX FluidMark
Current Version: 1.5.2
»FluidMark homepage
»FluidMark 1.4.x Submissions

GeeXLab
Current Version: 0.4.0
»GeeXLab homepage
»GeeXLab Overview

GPU Shark
Current Version: 0.9.2
»GPU Shark homepage

TessMark
Current Version: 0.3.0
»TessMark homepage

ShaderToyMark
Current Version: 0.3.0
»ShaderToyMark homepage
»ShaderToyMark Scores

Blogs
»JeGX's HackLab

Geeks3D's Articles
»GPU Memory Speed Demystified

»Multi-Threading Programming Resources

»GeForce and Radeon OpenCL Overview

»How to Get your Multi-core CPU Busy at 100%

»How To Make a VGA Dummy Plug

»Night Vision Post Processing Filter


Demoniak3D
Current Version: 1.23.0
»Demoniak3D
»Download
»Libraries and Plugins
»Demos
»Online Help - Reference Guide
»Codes Samples

Language

Language:

3D Graphics Search Engine:

The Geeks Of 3D

 
Fog in GLSL

By Jerome 'JeGX' Guinot - jegx_AT_ozone3d(dot)net

Initial draft: December 21, 2007


[ Index ]

Page 1 | Page 2 | Page 3 | Page 4 | Page 5

»Next Page



Stumble it! | | | |






1 - Introduction

2 - Fog Density Equations

3 - Per-Vertex Fog Computation

4 - Per-Pixel Fog Computation

5 - Conclusion

6 - Complementary Reading

7 - Downloads

8 - Acknowledgements




1 - Introduction

Why writing a tutorial about fog ? Have you heard of the new features of Direct3D 10 or OpenGL 3.0? Or more accurately, by the lack of features? For simplicity reasons, (I hope so at least ...) D3D10 no longer supports the fixed functions of the 3D pipeline. The first aftermath is that these features have to be coded again at the shaders' level (lighting, materials, texturing, fog ...). The second aftermath is that D3D10 requires a barely high level of skills in order to code a simple scene, because you have to know how to handle programable shaders, even for a simple scene .

On its part, OpenGL keeps giving fixed pipeline support, whilst it supports the new features of the programmable pipeline. The best of all worlds for begining developer, as for the skilled one.

In this tutorial, we shall see how to add fog support to our real-time GLSL-written shaders (OpenGL Shading Language). Fog support already existssince the first implementations of OpenGL at the fixed pipeline level, but if your objects' rendering uses GLSL shaders, you'll need to implement it at the programmable pipeline level. At the end of this tutorial, you'll be able to implement fog equations in any environment (OpenGL or Direct3D).

OpenGL.org

We shall use the Demoniak3D platform in order to experiment our GLSL shaders.

For your feedbacks, please use the following thread: GLSL Fog Tut @ oZone3D.Net Forums.





[ Index ]

Page 1 | Page 2 | Page 3 | Page 4 | Page 5

»Next Page








GLSL Hacker
»GLSL Hacker Homepage


PhysX 3 cloth demo


Normal visualizer with GS


Compute Shaders test on Radeon


Raymarching in GLSL



Geeks3D latest news


Geeks3D forum news


Misc
»Texture DataPack #1
»Asus Silent Knight CPU Cooler
Page generated in 0.06016206741333 seconds.