Jump to content
  • Advertisement

Archived

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

t0pcat

OpenGL OpenGL multitexturing (again)

This topic is 6388 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 been messing about with multitexturing a bit in OpenGL, specifically applying a repeated detail texture to a lower resolution landscape texture. At the moment, I can only get the detail texture to work when it is the same format as the landscape, which means I have to store a geryscale image as 24bit colour. This seems like a bit of a waste to me as I only want to modulate the landscape colour by the greyscale value. Is there anyway of doing this? Also, the detail texture is making the landscape a lot darker as I''m using GL_MODULATE. Is there any way of making values over 128 in the detail texture brighten the landscape texure? Finally, is there a function similar to glInterleavedArrays() that supports multitexturing because at the moment, I have 3 OpenGL function calls per vertex This signature has intentionally been left blank.

Share this post


Link to post
Share on other sites
Advertisement
MODULATE will always darken
perhaps u wanna use GL_ADD
though prolly what u want to do can only be achieve with one of ther combine extensions eg GL_ADD_SIGNED_EXT
either that or calculate the texels manually

http://members.xoom.com/myBollux

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!