Sign in to follow this  
Neutrinohunter

Multitexturing with a Detail Texture

Recommended Posts

Neutrinohunter    158
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
Lord_Evil    680
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

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