Results 1 to 3 of 3

Thread: BMP loading with GLAUX

  1. #1
    Member Contributor
    Join Date
    May 2001
    Location
    Austria
    Posts
    54

    BMP loading with GLAUX

    Hi

    i am doing a particle engine. as a guidence i use NeHes tutorial #19. (using delphi)
    now, i got my own loader for bmp, but without a alpha-value.
    now, lesson#19 shows colors when a texture is loaded and blended/modulated with the correct color. (i assume OpenGL uses GL_MODULATE if there is no texenv given)
    the behavior of my program just shows me just a white circle (my texture). is it just, that i am lacking a alpha-value or is there something else to do.

    cheers,
    martin

  2. #2
    Junior Member Newbie
    Join Date
    Jul 2001
    Location
    London
    Posts
    14

    Re: BMP loading with GLAUX

    Right this is going to seem dumb but do you enable GL_BLEND and specify a blend function?

    Also do you disable GL_DEPTH_TEST or use depthmask?

    If not then try the above and we'll go from there.

  3. #3
    Member Contributor
    Join Date
    May 2001
    Location
    Austria
    Posts
    54

    Re: BMP loading with GLAUX

    no, no, i am doing the blend-enable and depth-disable. the texture itself seems right, but it doesn't modulate with the color.
    also i disable lighting.
    is it dependent on the angle how you look onto the scene? but all of my particles - the ones closer to the border of the viewport are also just white.

    cheers,
    martin

Similar Threads

  1. Loading .bmp textures: GLUT, GLaux? HELP!!!
    By brispace in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 04-21-2005, 05:45 AM
  2. Loading and Readying Textures Without the glaux.h Library
    By Preston Chaderton in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 07-07-2004, 09:17 AM
  3. Replies: 8
    Last Post: 12-01-2003, 08:35 AM
  4. where can i find glaux.lib and glaux for bcb.
    By in forum OpenGL: User Software
    Replies: 1
    Last Post: 05-20-2003, 08:35 PM
  5. Texture loading (without GLaux)
    By Muerte in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 10-11-2000, 12:49 PM

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