Thread: Terrain
View Single Post
Old 06-24-2004, 09:38 PM   #13
shukrallah
White Dragon
 
shukrallah's Avatar
 
Join Date: Nov 2002
Posts: 3,250
Aye, but texture blending is not on that one hand. Im going to keep trying, and if I cant get it, ill post back here.

EDIT: OK

I made 2 shaders for 2 textures. Here are the textures:

textures/compress/rock.jpg
textures/compressgrass1.jpg

Here are the 2 shaders:

shaders/rock_blend
shaders/ground1

Rock_Blend.shader

Code:
textures/compress/rock_blend
{ 
   qer_editorimage textures/compress/rock
    
   q3map_forceMeta 
      q3map_nonplanar 
      q3map_shadeAngle 179 
   surfaceparm nolightmap
   { 
      map textures/compress/rock
           rgbGen identity 
   } 
   { 
      map textures/compress/rock
      blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA             
            rgbGen identity 
            alphaGen vertex 
      } 
      { 
            map $lightmap 
            blendFunc GL_DST_COLOR GL_ZERO 
            rgbGen identity 
      } 
}
grass1.shader
Code:
textures/compress/grass1
{ 
   qer_editorimage textures/compress/ground

       q3map_forceMeta 
       q3map_nonplanar 
       q3map_shadeAngle 179 
   surfaceparm nolightmap
   { 
      map textures/compress/ground
           rgbGen identity 
   }    
      { 
            map $lightmap 
            blendFunc GL_DST_COLOR GL_ZERO 
            rgbGen identity 
      } 
}
In radiant I took rock.jpg and put it on a square in the middle of a room. All around the square was covered with grass1.jpg. In radiant they had the white thing around it, so I know it was a shader. I put the alpha 0 (or something) in the rock.jpg square. I made those two into a func_group, and all of it was detail.


http://home.ripway.com/2003-11/40395/radiant_blend.JPG

:-/ Anyways, looks like a normal map inside JA.

Last edited by lukeskywalker1; 06-24-2004 at 10:06 PM.
shukrallah is offline   you may: quote & reply,