Jump to content
  • Advertisement

Archived

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

Florian Nentwich

Texture with black background -> other polygons black too !?!?

This topic is 6318 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''ve combined the lessons 5 and 6 and created a pyramid and a textured cube. The cube appears and rotates correctly but the pyramid doesn''t show up. I know it''s there because if I move it in front of the cube, the cube disappears. The only thing is that the four polygons are all black, although I used the code from the tutorial (with the glColor3f functions). Is there something I''ve missed or forgot to think about? Please help me!

Share this post


Link to post
Share on other sites
Advertisement
Thanks, it works now!
It looks to me that it is better to draw the untextured polygons, then activate texturing, draw the textured polygons and then deactivate texturing (than mixing all the time)... Is that right?

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!