   terrain multitexturing question...
  my terrain is 4 texture-layers(3 alphamaps between them for the weight),and one lightmap per patch.and I'm now render it like this:pass1:render the texture1pass2:render the texture2(blend previous via alphamap1)pass3:render the texture3(blend previous via alphamap2)pass4:render the texture4(blend previous via alphamap3)pass5:blend the lightmap to the previous.the terrain looks well,but it takes 5 passes,and I want to get the same result via 3 passes like this(my card support 4 tex-units):pass1:render texture1 & texture2,and alphamap1 for the weightpass2:previous - alphamap2 - texture3 - alphamap3 - texture4pass3:blend lightmap with previousbut I can only do the pass1 well,and I don't know how to do pass2.can you help me?I'd searched this forum,but I havn't found the solution.best regards.EDIT:textures are all R8G8B8 formatalphamaps are all 8bit grayscale,only alpha channel in them.lightmap is the same as alphamaps.I don't wanna use Shaders.thanks,trienco.[Edited by - emmai on December 2, 2005 3:37:26 AM]
  Are shaders an option? With 5 units you could blend all 4 textures in a single pass, but with the lightmap you would already need 6. Two passes then.Unless your alphamap is doing something fancy that needs more than 1 channel, keep in mind each channel can have the weight for one texture.1st pass: blend texture1,2 with alpha channel r,g    modulate with lightmap2nd pass: blend texture3,4 with alpha channel b,a    modulate with lightmapIn theory, if there is an add blend mode that's what you would use for the 2nd pass.Now, if you could get away with a base texture in color and use greyscale detail textures then blending all four textures would be a single dot product (each would be stored in one channel of a single texture).