Advertisement

Texture remains black

Started by September 21, 2000 07:22 AM
1 comment, last by even_steven 24 years, 2 months ago
Hi! I''m loading a texture from a ressource and put it on an area but the texture remains black. I don''t have this problem when I load the texture from a separate file. Does anyone have an idea? Thanx stem (www.stem.de)
are you sure the returned bitmap (from the resource) is valid? that is, whatever resource function you''re using (i''m assuming LoadImage) is returning a valid bitmap handle?
maybe your loading code is returning a NULL surface pointer.

or perhaps your light states are not right, but if you could see it before, i''m sure that''s not it.



crazy166
some people think i'm crazy, some people know i am
Advertisement
Five things it cooooooould be, four not very probable.

1. Lights are off (maybe you accidentally switch them off when you''re typing the code for resource textures... )

2. You''ve got your face inside out or you''re culling the wrong face (this, of course, doesn''t make sense either since you could see the other texture)

3. You''re loading the wrong texture or a resource that doesn''t exist as a bitmap. (not sure if it''s possible to load a non-bitmap resource with that function)

4. You have returned a null from the LoadImage function and haven''t checked for it before texturing.

5. Your LoadImage function is broken and you should give your computer a good kick.

Can you guess which four are improbable?

S.

This topic is closed to new replies.

Advertisement