Jump to content
  • Advertisement
Sign in to follow this  
Aph3x

Multitexturing: brightness / modulation?

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

Hi all, Wondering if I'm doing something wrong here... I have a colour texture and a (greyscale) detail texture that I'm applying to an object using multitexturing. Thing is, I have to make the detail texture very bright for it not to have a darkening effect on the object I'm drawing. I would have thought that keeping the greyscale/intensity values at about 50% (~128) in the detail texture would mean keeping the same average brightness when applied with multitexturing..? Instead I find I have to boost the detail texture brightness so values are around 80-90% before it looks equivalent to the singly (colour) textured object. I load the detail texture using GL_LUMINANCE, and texture env is GL_REPLACE.

Share this post


Link to post
Share on other sites
Advertisement
Actually, thinking more about this - is it like a (source * detail) operation here, in which case it can *only* have a same or darker output..?

Ed: Hmmm, just found some info on a certain GL_COMBINE_EXT...

[Edited by - Aph3x on February 11, 2005 9:57:12 AM]

Share this post


Link to post
Share on other sites
yes modulate is only gonna make it darker
with combine u could try add_signed which is A+B-0.5 though it might look washed out

Share this post


Link to post
Share on other sites
Yer I tried a few - the signed one looks quite realistic & 'gritty' but too washed out in areas, like you say... :-/

Totally not mentioned in the Red Book, it being an extension n all that ;)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!