glFog and axis problem

tigakub
Unregistered
 
Post: #1
I'm having a wierd time with glFog. When I enable it, it seems to cause color attenuation along the world z-axis rather than the camera z-axis (i.e. the depth buffer). Has anyone else seen this or know what I'm doing wrong? Do I have to enable fog at a particular point in the code (e.g. before or after projection transformations, view point transformations, etc.)?
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
you need to do your viewing transformations (eg. gluLookAt) on the modelview matrix, not the projection matrix.
Quote this message in a reply
tigakub
Unregistered
 
Post: #3
oh. i was wondering about that. thanks!
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Moving Camera Along It's Local Axis Oddity007 5 3,086 Oct 18, 2008 11:04 AM
Last Post: Oddity007
  Axis-Angle Rotations DoG 2 2,692 Apr 21, 2006 05:16 PM
Last Post: DoG