Advertisement

problems with color! and loading bitmap

Started by June 21, 2002 12:52 PM
2 comments, last by kajjait 22 years, 8 months ago
for my loading screen i am using a 300x50 16 color bitmap (its yellow) and after the loading screen is finished it changes the color of the grid i am using for my ground (which should be blue but changes to dark yellow) here is the demo.. Demo - 422kb (currently to make the bar update slow enough for me to see, its loading junk, just incase you were wondering why it took long to load ) oh yea.. also, when i change "level" it changes the grid color to what it should be but if i go back to "level 1" it is still dark yellow! [edited by - kajjait on June 21, 2002 1:55:28 PM]
I think I know what''s happening.
You have to disable texturing when you''re drawing your grid.

In case you wonder why it is working with level 2 and 3, that is because the texture you load is yellow.
If the texture you loaded was purple, you would see nice blue and red grids, but you would not see a good green grid.
Advertisement
Firstly, sorry if this is not acually a problem . . . I haven''t looked at your demo. But shouldn''t images you load be in powers of 2? E.G, of sizes x^2, etc... So the closest res to your current image would be 256 x 64. Of course there is other ways to get around these restrictions, but it''s just a thought.
Sam: you''re right that textures must be loaded into the GL with a "power-of-two" size type, but this time it works, so I think he''s using some technique to wrap his non-power-of-two image into the GL.

Anyway, texture size could not "colorize" the grid. At worst, texture size would set the texture object to white and would only affect the textured object, eg the loading bar. But in that case the loading bar is correctly rendered.

This topic is closed to new replies.

Advertisement