Jump to content
  • Advertisement
Sign in to follow this  
harrylette

OpenGL fog works with MESA but not with ATI/NVIDIA...

This topic is 4230 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I have a wired problem. When I added fog to my application the fog only appears when I run it with MESA libraries (linux). With native OpenGL from NVIDIA or ATI it does not appear!? Is it my fault? Is there any dependency for glEnable(GL_FOG). This is the way a im adding fog: . . . glEnable(GL_DEPTH_TEST); glEnable(GL_FOG); glFogi (GL_FOG_MODE, GL_LINEAR); glFogfv (GL_FOG_COLOR, color); //glFogf(GL_FOG_DENSITY, 0.4); glFogi(GL_FOG_START, start_l); glFogi(GL_FOG_END, end_l); glClearColor(color[0],color[1],color[2],color[3]); . . . Any help is greatly appreciated! I am stuck since 3 days on this... yesterday I tried it first with my old laptop and its MESA libs... Thx Harry

Share this post


Link to post
Share on other sites
Advertisement
This code looks fine.

Can you please post values of color, start_l and end_l ?

At best, can you also provide screenshots ?

[Edited by - vincoof on May 15, 2007 11:24:12 AM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!