Results 1 to 2 of 2

Thread: Textures & fog

  1. #1
    Junior Member Newbie
    Join Date
    May 2003

    Textures & fog

    Hi, i'am using fog (or trying) and i have 2 problems till now. One is that i cant make the fog start far away, i mean, i use start and end but it seems like it starts in the middle??? the second one is that the fog colors all my textures, no matter how low the density is, the objects with textures get the color of the fog.

    Thanks for any help =)

  2. #2
    Senior Member Regular Contributor
    Join Date
    Dec 2002

    Re: Textures & fog

    I am not completly sure but from what I know using GL_FOG_START and GL_FOG_END works only if fog mode is set to GL_LINEAR. Try it.

    What do you mean by saying that all your textures are in fog color? I don't know how can I help you really. Try be more specific. Meaby you should try changing fog color by
    glFogfv(GL_FOG_COLOR, pfColor)?
    Or meaby you just forgt to enable texturing -

    Hope it helped...


Similar Threads

  1. Applying textures to a sphere. I know nothing about textures.
    By ElFlautas in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-28-2018, 03:47 AM
  2. model textures being redirected to font textures
    By Tcll5850 in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 09-07-2014, 10:43 PM
  3. FBO Attached Textures Reused as Shader Source Textures
    By Rennie Johnson in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-22-2012, 09:43 PM
  4. Lots of small textures or fewer large textures?
    By jlamanna in forum OpenGL: Advanced Coding
    Replies: 30
    Last Post: 01-12-2004, 03:53 AM
  5. are GL_COLOR_INDEX textures converted to RGBA-Textures?
    By TB-Rex in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 12-18-2000, 06:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean