TheGecko
03-26-2002, 09:39 AM
Hey again people. In my application I'm trying to tile a detail map using multitexturing with the following setup:
glActiveTextureARB(GL_TEXTURE0_ARB);
glEnable(GL_TEXTURE_2D);
glTexEnvf(GL_TEXTURE_ENV, GL_COMBINE_RGB_EXT, GL_MODULATE);
m_pTextureArray[iBase].Use();
glActiveTextureARB(GL_TEXTURE1_ARB);
glEnable(GL_TEXTURE_2D);
glTexEnvf(GL_TEXTURE_ENV, GL_COMBINE_RGB_EXT, GL_MODULATE);
glTexEnvf(GL_TEXTURE_ENV, GL_RGB_SCALE_EXT, 2.0f);
m_pTextureArray[iDetail].Use();
And the detail map looks like this:
http://www.biosphereent.com/projects/terraimages/terra7.jpg
I'm not too happy with the way it looks and was wondering if there is another way to do it without nVidia only extensions and without bumpmapping.
Serious Sam 2 does an excellent job using detail mapping on all the walls and stuff and I was wondering how to do that as well. (unless Serious Sam uses bumpmapping, in which case nevermind http://www.opengl.org/discussion_boards/ubb/smile.gif )
If you have to try out the application, you can grab it at http://www.biosphereent.com/projects/terra.html
Any help would be appreciated.Thanx!
[This message has been edited by TheGecko (edited 03-26-2002).]
glActiveTextureARB(GL_TEXTURE0_ARB);
glEnable(GL_TEXTURE_2D);
glTexEnvf(GL_TEXTURE_ENV, GL_COMBINE_RGB_EXT, GL_MODULATE);
m_pTextureArray[iBase].Use();
glActiveTextureARB(GL_TEXTURE1_ARB);
glEnable(GL_TEXTURE_2D);
glTexEnvf(GL_TEXTURE_ENV, GL_COMBINE_RGB_EXT, GL_MODULATE);
glTexEnvf(GL_TEXTURE_ENV, GL_RGB_SCALE_EXT, 2.0f);
m_pTextureArray[iDetail].Use();
And the detail map looks like this:
http://www.biosphereent.com/projects/terraimages/terra7.jpg
I'm not too happy with the way it looks and was wondering if there is another way to do it without nVidia only extensions and without bumpmapping.
Serious Sam 2 does an excellent job using detail mapping on all the walls and stuff and I was wondering how to do that as well. (unless Serious Sam uses bumpmapping, in which case nevermind http://www.opengl.org/discussion_boards/ubb/smile.gif )
If you have to try out the application, you can grab it at http://www.biosphereent.com/projects/terra.html
Any help would be appreciated.Thanx!
[This message has been edited by TheGecko (edited 03-26-2002).]