Sign in to follow this  

Multitexturing with a Detail Texture

This topic is 3718 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 have been trying for ages to use a detail texture with a procedurally generated texture to get a nice smooth effect on a terrain but am having trouble getting the right texture modes to perform the desired effect. I am doing: glEnable(GL_TEXTURE_2D); textureManager->Use(0); //detail texture pglActiveTexture(GL_TEXTURE_0); glEnable(GL_TEXTURE_2D); textureManager->Use(1); //generated texture pglActiveTexture(GL_TEXTURE_1); Then I've tried a whole load of modulation, combine, add_rgb functions and none of them seem to give the desired affect. What modes would be required? If i've not given enough information, just ask and I'll post it. Jamie

Share this post


Link to post
Share on other sites
What effect do you desire? [smile]

If you just want to use a normal greyscale detail texture modulation should work. Just load the greyscale texture with GL_LUMINANCE or GL_LUMINANCE_ALPHA format and the color modulation should be luminance * color (i.e. detail texture * generated texture)

Share this post


Link to post
Share on other sites

This topic is 3718 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this