Jump to content
  • Advertisement

Archived

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

Jjesterr

Unbinding, de-colorizing, goodgrief....

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

OK, know how to put a texture on somehting, but how do i keep if from binding onto the next item i make? and the same with colors... help me!!! Jjesterr "A smile can take you a long way. A smile and a gun will take you even farther" - Al Capone

Share this post


Link to post
Share on other sites
Advertisement
If you dont bind another texture you can disable texturing.

That''s how I do it anyway. As usual someone''s probably going to say I don''t know what I''m talking about and that this is the worst way to do it...

quote:
and the same with colors...

How about just change the color back to what it was before?



Share this post


Link to post
Share on other sites
Guest Anonymous Poster
omg, Rudan! thats the WORST way to do it!! You have no idea what you are talking about, do you!??!

Share this post


Link to post
Share on other sites
WOW!! that was so , nevermind

I mean i dont know HOW to disable texturing, and i dont want any colors at all (cuz its a texture)

get my meaning ?

Jjesterr
Engaged in a Menage a moi



"A smile can take you a long way. A smile and a gun will take you even farther" - Al Capone

Share this post


Link to post
Share on other sites
rudan''s right gl''s a state machine thus the texture will always remain bound until bind another one.

glBindTexture2D(...)
draw object
glDisable(GL_TEXTURE_2D);
glColor4f(1,1,1,1);
draw another object with no texture in plain white

http://members.xoom.com/myBollux

Share this post


Link to post
Share on other sites
OK, glDisable works, but its permanent.... and what do you mean drawing something in white?

"A smile can take you a long way. A smile and a gun will take you even farther" - Al Capone

Share this post


Link to post
Share on other sites
"OK, glDisable works, but its permanent.... "

its permant until u enable it again remember ''statemachine''

glBindTexture2D(...)
draw object
glDisable(GL_TEXTURE_2D);
glColor4f(1,1,1,1);
draw another object with no texture in plain white
glEnable(GL_TEXTURE_2D);



http://members.xoom.com/myBollux

Share this post


Link to post
Share on other sites
quote:
thats the WORST way to do it!! You have no idea what you are talking about, do you!??!


Damn, I just knew it!

Share this post


Link to post
Share on other sites
Instead of glDisable(GL_TEXTURE_2D); you can use
glBindTexture(GL_TEXTURE_2D, 0);

probably an unorthodox method, but it works on my geforce.

Nutty

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!