top_left top_right
bottom_left
Next Event: Unknown | Forum Rules | QGL Website | Event Registration
openFolder AusForums.com
iconwatfolderLineopenFolder LANs
iconwatfolderLineopenFolder QGL
iconwatfolderLineopenFolder QGL Forum
Author
Topic: anyone know OpenGL? the fog is being a retard
thre3dee
Posts: 1094
Location: Brisbane, Queensland
im trying to use fog in my program but instead of fogging as it gets further away from the view its fogging it the same way its lighting the landscape (you can it following the light as it goes round in the actual program) (the normals on the mesh are screwed btw :P).

No Fog::
http://img375.imageshack.us/img375/6963/nofog.th.jpg

With Fog::
http://img375.imageshack.us/img375/3941/withfog.th.jpg

its in Visual C++ btw.

glFogfv (GL_FOG_COLOR, fogrgba);
glFogf (GL_FOG_DENSITY, 1);
glFogi (GL_FOG_MODE, GL_LINEAR);
glFogf (GL_FOG_START, 0);
glFogf (GL_FOG_END, 25);
glHint (GL_FOG_HINT, GL_NICEST);
system
--
WetWired
Posts: 1877
Location: Brisbane, Queensland
tried the forums on http://www.opengl.org/ ?
system
--
Not a new post since your last visit.
New Post Since your last visit
Back To Forum
Advertise with Us | Privacy Policy | Contact Us
© Copyright 2001-2026 AusGamers Pty Ltd. ACN 093 772 242.
Hosted by Mammoth Networks - Australian VPS Hosting
Web development by Mammoth Media.