fueldump blendings


(Qualmi) #1

hi,

i wanna know how the terrain-blending in fueldump was done. there are a few things about dotproduct2 i dont like, so i want to blend my terrain similar like in fueldump.

what i know about fueldump is, that there are shaders for the terrain existing which seem to do exactly those blendings. there is one baseshader, and for every blend there exist a shader like terrain1_0to2.

unfortunately it dont work with my trys. can someone pls give me a guide or sth. i have q3map version 2.5.16.

edit: i have been through socks tutorial about sockproduct2. in his downloadfile a found i shader.

// ======================================================================
// Alpha blending without dotProduct2 and ivector
// ======================================================================
textures/terrain_example/bld_rock2moss1 // Normal texture blending
{
qer_editorimage textures/terrain_example/bld_rock2moss1.tga
surfaceparm grasssteps
q3map_nonplanar
q3map_shadeAngle 120

{
map textures/terrain_example/ter_rock2.tga // Primary
rgbGen identity
}
{
map textures/terrain_example/ter_moss1.tga // Secondary
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaFunc GE128
rgbGen identity
alphaGen vertex
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
rgbGen identity
}
}

the shader looks a bit like those in fueldump. i dont get this to work either :frowning: i need help about that !


(FireFly) #2

For all stock maps created for w:et ( fueldump included) easygen was used for creating the terrain. Easygen uses an pcx image file for the blending. So every map has it’s own pcx file for blending. This is why your blending doesn’t work :slight_smile:
However,forget pcx files - alpha brushes is the way to go

Sock is using alpha brushes for blending in his tutorial.Did you use alpha brushes in your terrain?


(Qualmi) #3

you mean the alpha fade brushes ? yea, i just compiled socks test_maps and it all works fine =) all dotproduct2 things are working. the shader above now is some alternative i thought, but it dont seem to affect my terrain. do i have to put there some alpha fade brushes too ?

btw. thx really for this great answer. i have discussed the fueldumpshaders with the blendingthing in another thread on a german website. but nobody had an answer for why it is not working. knowing that a pcx-file was used and the terrain of fueldump was done with easygen is great information. but could it be that there was first the map fueldump created and then the easygen editor, meaning that the fueldumpterrain was created somehow else (maybe like in socks tutorial rockwall corridors) and then the terrain was imported into easygen for making a pcx-file ? otherwise i cant explain that to me.

and what are now the most comonly used blending techniques in maps. i only know blendings with dotproduct2, which i will probably use in the future. and i know some other technique creating a mesh and putting a texture above, putting the mesh in some other brush. but is there other stuff or do i only have to learn dotproduct2 and thats it and ill be happy to the end of life with it doing all my blending with dotproduct2 =)