Monday, July 06, 2009

fog




How to use Fog in OpenGL
gl_fog() problems : Graphics - This is the problem I was having. GL_FOG_START and GL_FOG_END don't work for GL_EXP and GL_EXP2.
So you want to add fog to your OpenGL program?
problem with glfog
Lesson 15: Fog
fog.c
15 Transparency, Translucency, and Blending
glFog Subroutine - I got the OpenGL man pages, and installed them locally.
Lesson 4 : Fog
glFogf, glFogi, glFogfv, glFogiv ? specify fog parameters
Fog_start
Defining Surface Material Properties

float mcolor[] = { 1.0f, 0.0f, 0.0f, 1.0f };
glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, mcolor);
// now, draw polygon as its material properties will be affected by the glMaterialfv call



Quadrics are a way of drawing complex objects that would usually take a few FOR loops and some background in trigonometry.
gluDisk