Cannot get Alpha blended terrain to work


(Ifurita) #1

I’ve read thru Sock’s terrain article, downloaded his sample files, tried compiling sockter_test3 and sockter_test4 and neither one gives me the blends I see in his tutorial. In sockter_test4, I have a hard edge between the two textures. In sockter_test3, the ground is a uniform texture. My debug checklist:

  1. Textures properly unzipped into textures/terrain_example
  2. Shader properly unzipped into /scripts
  3. Using Q3map2_15
  4. Added terrain_example to shaderlist.txt

I am compiling from Radiant. Is there a compiler switch I’m missing somewhere?


(thegnat) #2

I think, the only thing you have missed, is that the tutorial is based on q3map2 built .16
See here: http://www.splashdamage.com/index.php?name=pnphpbb2&file=viewtopic&t=10202

Good luck!


(Ifurita) #3

That was it. Thx


(d3coy) #4

I am having the same problem. I have tried to compile using radiant and that doesnt work (gives errors about the alpha blend info)

I tried using a sample batch file and modifying it to compile my testmap and the terrain shows up but it is blending properly.


@echo off
@set Q3_PATH="d:/Wolfenstein - Enemy Territory - Mapping"
@set COMP_PATH="d:/Wolfenstein - Enemy Territory - Mapping/q3map2/q3map2.exe"
@set MAP_PATH="d:/Wolfenstein - Enemy Territory - Mapping/etmain/maps/bunker1.map"

@set GEN_OPTIONS=-fs_basepath %Q3_PATH%
@set GEN_OPTIONS=-game et

%COMP_PATH% -v -meta %GEN_OPTIONS% %MAP_PATH%
%COMP_PATH% -vis -saveprt %GEN_OPTIONS% %MAP_PATH%
%COMP_PATH% -light -fast -samples 2 -patchshadows %GEN_OPTIONS% %MAP_PATH%

rem ASE stuff
rem %COMP_PATH% -meta -patchmeta %GEN_OPTIONS% %MAP_PATH%
rem %COMP_PATH% -convert ase %GEN_OPTIONS% %MAP_PATH%

That is the batch file, am I missing a switch or something? All help is greatly appreciated.Thanks


(thegnat) #5

What version of q3map2 are you using?
I recommend to get the latest q3map2 version from shaderlab. For a link, visit the q3map2 forums.
As I stated above, the tutorial works ONLY with q3map2 build =>16


(d3coy) #6

yes that is the version I am using


(thegnat) #7

Can you please post the errors, it gives you during the compile?


(d3coy) #8

it seems maybe my paths are wrong… but I am sure of the locations on everything.

here are some prinstcreens of the errors I get:




not sure of this last one… but not really concerned right now if it doesnt have to do with the terrain blending.


(SCDS_reyalP) #9

That output clearly shows you there is something wrong with your paths or command line.


VFS Init: -meta/etmain


(d3coy) #10

hrmm… im using a sample bat file posted by sock on his site… could this be the problem?


@echo off
@set Q3_PATH="d:/Wolfenstein - Enemy Territory - Mapping"
@set COMP_PATH="d:/Wolfenstein - Enemy Territory - Mapping/q3map2/q3map2.exe"
@set MAP_PATH="d:/Wolfenstein - Enemy Territory - Mapping/etmain/maps/bunker1.map"

@set GEN_OPTIONS=-fs_basepath %Q3_PATH%
@set GEN_OPTIONS=-game et

%COMP_PATH% -v -meta %GEN_OPTIONS% %MAP_PATH%
%COMP_PATH% -vis -saveprt %GEN_OPTIONS% %MAP_PATH%
%COMP_PATH% -light -fast -samples 2 -patchshadows %GEN_OPTIONS% %MAP_PATH%

rem ASE stuff
rem %COMP_PATH% -meta -patchmeta %GEN_OPTIONS% %MAP_PATH%
rem %COMP_PATH% -convert ase %GEN_OPTIONS% %MAP_PATH%

(SCDS_reyalP) #11

@set GEN_OPTIONS=-fs_basepath %Q3_PATH%
@set GEN_OPTIONS=-game et 

try changing that to


@set GEN_OPTIONS=-fs_basepath %Q3_PATH% -game et 


(d3coy) #12

that works, thanks for your help.