damn sock now i know why ur on the sd crew
, awsome work :eek:
Terrain Alpha Blending
Looking very nice Sock! 
You could almost turn it into a Battle of Monte Cassino map now
http://www.bbc.co.uk/dna/ww2/A1057664
Thereâs some reference for it in itâs destroyed state kicking around somewhere, I think thereâs a section in the World at War DVD set in the office 
-Fluffy_gIMp
Very realistic looking Sock.
The detail at the cliff base and beach is also a nice touch. 
Makes me want to re-think my current map and move it outdoors again.
- So little time and so many things to learn. :lookaround:
Thanks for all the feedback but my xmas mapping time is over.
I leave tomorrow on a plane to go exploring a very cold place and will not be back to the new year. If anybody wants any more images of the test map Iâve setup a page on my website.
http://www.planetquake.com/simland/pages/etmaps/abbey.htm
Have a good new yearâs eve and see you all in the new year.
Keep warm
Sock
:moo:
My first post 
A newbie-friendly tutorial on this great, new alpha blending technique would be really helpful! When will it be done? Will one ever be done (shure, you need some days off during christmas)?
Iâm not as good in q3-based-engine mapping as in HL etc. so it would help me (of course) and many other mappers, who are entering âunknown terrainâ now 
put it all over the surface of your terrain entity instead of common/terrain. No alphamaps required!
Hi!
I dont understand what you (rgoer) mean by: put it over the surface of your âterrain entiryâ. Iâve just tossed in a few brushes, of various sizes and some of them are sloping. Should I turn them into entites - how? Do you mean func_group? I have tried to func_group the brushes and applied my terrain texture to them (the shader you described above).
But all I get is a couple of brushes with a dirt texture on them.
Trying to create a terrain with this new method. Not working though atm.
I have created a shader and put it in my testmapsâs script folder. Iâve also included it in etmain and Ive added the shader to shaderlist.txt.
I am pretty sure the compiler is reading the shader.
When I compile, I use a bat file and q3map2 version 2.5.11. I can see in the compiler (while it is working) that it reads the shader ("entering scripts/testmap.shader) however there is a warning: WARNING unknown
q3map_alphaMod method: dotproduct2.
Hmm. I guess I have to work a little more on this.
// Loffy
Sorry, âterrain entityâ == âfunc_groupâ ⌠suppose I should have been more clear. Texture the top surface of your terrain with your alphablending terrain shader instead of common/terrain.
You mentioned that blending wasnât working for you, that all you got was dirt. What do the alpha channels for your targas look like?
Also, in order for dotproduct2 to work, you need a newer version of q3map2 than 2.5.11, grab the one from the ânightly buildâ link at http://shaderlab.com/q3map2.
I grabbed the latest build of q3map to see if I too can create nice terrainâŚ
q3map complained about âmsvcr71.dllâ - any one know where I can download that library? I looked in ydnarâs site, but didnât find it.
damn thats a nice map you got us all excited now lol looking forward to more screenies or even a playable demo 
mscvr71.dll can be had from windows update (for now) by grabbing the latest .NET runtimes, or if you wait 'till ydnar gets back he might start hosting it with q3map2 (since a lot of people seem to need it).
Sorry, âterrain entityâ == âfunc_groupâ ⌠suppose I should have been more clear.
Nemas problemas! I just try a lot of thing. If it works, great. If not, Iâ'll try another apporach.
Iâll already tried to make them func group (but it didnt work).
You mentioned that blending wasnât working for you, that all you got was dirt. What do the alpha channels for your targas look like?
Hm, this I dont understand. What do YOU mean by alpha channel? Ive taken three nice textures and opened them in photoshop. To all of them, Iâve added a new channel, an alpha channel. But this new channel is all black be default. So I though: âHm, he said somehting about 85-95 percent. He must mean âmake sure they are brightââ. So I added a filter called âCloudsâ to soften the all black channel. I even hand drew some white lines with a brush - just to make sure that some parts of the alpha channel was really bright.
(Am I right? I have no idea. Just fiddling around.)
Then I saved them as 256x256 pix. 34 bits tgaâs (with alpha channels). I called them dirt.tga, grass.tga and rock.tga. All three have alpha channels.
Also, in order for dotproduct2 to work, you need a newer version of q3map2 than 2.5.11, grab the one from the ânightly buildâ linkâŚ
Hm, this could be it. Will try this now.
Texture the top surface of your terrain with your alphablending terrain shader instead of common/terrain.
Aha! Only the top of my brushes. Iâve just textured the whole of the bushes (exept the bottom)! Will try this aswell.
// Loffy
PS, almost forgot: thanks! Really appreciate it!!
I hope it works for you. It sounds like youâve got a pretty decent grasp on how the alpha channels are supposed to be set up⌠here are a few tips on alpha channels (for this kind of shader), though: assuming your bitmap is a seamless texture, youâll generally get pretty decent results by just copying the rgb channel and pasting it into the alpha channel (and then adjusting the levels or brightness/contrast until youâve got the 85-90% brightness level needed by the shader). This way, youâre sure to get seamless alpha, and its pattern will correspond (in some manner) to the color bitmap as well. Unless you make it seamless by hand, just rendering clouds will have a definite seam, which could uglify your alpha blending⌠in any case, good luck, and Iâm glad this is helping somebody ;^)
Sorry for spam, but I just want to add the shader:
textures/testmap/terrain
{
// standard terrain shader stuffs:
qer_editorimage textures/testmap/rock.tga
q3map_nonplanar
q3map_shadeAngle 179
q3map_tcGen ivector ( 512 0 0 ) ( 0 512 0 )
q3map_tcMod rotate 33
q3map_lightmapAxis z
q3map_lightmapSampleOffset 8
// this means dot product squared, for faster falloff between vertical and horizontal planes:
q3map_alphaMod dotproduct2 ( .85 .85 .85 )
// mapping stages:
{
map textures/testmap/dirt.tga
rgbGen identity
}
{
map textures/testmap/rock.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaFunc GE128
rgbGen identity
alphaGen oneMinusVertex
}
{
map textures/testmap/grass.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaFunc GE128
rgbGen identity
alphaGen vertex
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
Why ( .85 .85 .85 ) ? Well, I just wanted to try some some values and I just took these at random. I will try different ones later one.
The textures rock.tga, dirt.tga and grass.tga all have alpha channels.
// L.
OffT:
Is it possible to open Q3:A maps in ET ET (or open them in Radiant for ET and tweak them to work for it)? Iâd really like to have a look around S.A.F.E. (amoung others), as linked by sock. 
Otherwise, sock, is there any chance you could use some uber-devtool to port it (even if just the brushwork)?
OnT:
Looks like a big improovement over the old system. Not that itâs bad or anything, just this is better, yâsee?
Umm⌠ignore me. :bash:
Loffy: Iâm not sure how having all three of the ( x y z ) values equal for dotproduct will work. You might try having at least one of them different from the other two (for terrain falloff, having the z value being the outlier might be most appropriate).
Well, Mr.Dotproduct dislikes âsurfaceparm grassstepsâ. E.T will crash is this command is in the shader.
Michi.be: I donât think so⌠I used it in my terrain shader, and everything seemed just fineâŚ
thx for the fast reply. 
My E.T crashed to windows then i shot at my terrain.
I will play with the options a bit and try other surfaceparms.
Other thing:
At the edges where my vertical brushes meet the brushes with the dotproduct shader the textures donât fit.

A quick Q -
Is there anything special about the alpha channels in the images? Iâve not been able to use my own images for dotproduct2, although I can do my own shader no bother - if I use the images from Ydnarâs exampleâŚ