Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

mrtrashtalk

texturing turns everything dark

This topic is 5623 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

I rendered a scene containing a few spheres in front of a wall. As soon as I put a texture on the wall, the hole scene gets very dark(no matter if lighting is enabled or not). I wondered if it might be a wrong setting in TexEnv(), so i tried all possible settings, but none solved the problem. Any ideas?

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by mrtrashtalk
I rendered a scene containing a few spheres in front of a wall.
As soon as I put a texture on the wall, the hole scene gets very dark(no matter if lighting is enabled or not).

I wondered if it might be a wrong setting in TexEnv(), so i tried all possible settings, but none solved the problem.

Any ideas?


A pure whit texture would make it look the way it used to, but anything darker subtracts from the origional. intensify your lights ore use multiple passes.

-~-The Cow of Darkness-~-

Share this post


Link to post
Share on other sites
glEnable(GL_TEXTURE_2D);
glBindTextture(...);
DrawWall();
glDisable(GL_TEXTURE_2D);
DrawStuffThatDosntUseTextures();

A GOOD friend will come bail you out of jail...
but, a TRUE friend will be sitting next to you saying, "Damn, we fucked up."
Ingite 3D Game Engine Home -- Just click it

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!