Shadow casting on ASE models


(MDave) #1

Hey guys, been having problems with the best way I can get nice soft shadows cast properly onto a map that contains mainly of ASE models. The blue grass for instance is a seperate ASE model to the cliff faces for example, so I can have 2 different textures for the structure. I also have another sepearte ASE model for the bottom base of the cliffs for the grass-to-cliff texture transition.When I compile the map with some light tests, there are shadow ‘seams’ between each ASE model. I’d like to know if theres a way I can have shadows blend nicley from one ASE model to the other. I know about the merge tris command but that dosn’t seem to make any difference to tell the engine on how to make lightmaps? :???: Also, the shadows only appear when I turn on /r_overbrightbits to 1 in the console, which IMO wrecks the gamma. I prefer to use r_overbrightbits 0.

Any help is appreicated :slight_smile:


(thegnat) #2

Have you tried to set _cs* 1 and _rs** 1 on your ASE models, that should cast/receive shadows? If not, maybe thats the trick.

  • Cast Shadows
    ** Receive Shadows

(MDave) #3

Ahh, where would one put these? In the entity info for each ASE model? :slight_smile:

Although I think thats not the problem, since it can make shadows of some sort already :stuck_out_tongue: phong shading I belive its called.
As you can see in the second pic, need to eliminante that shadow seam problem somehow. I don’t even now if its possible to close that seam between two different ASE models.


(zl1corvette) #4

What does your shader look like for the terrain?
The terrain is lightmapped right?


(Loffy) #5

To set _cs and _rs:

Deselect everything.
Select a model, e.g. a tree model.
Hit “N”.
Give the model the key “_cs” and the value 1.
Now the model will cast shadows.
Repeat for _rs (receive shadows), if you want. (I seldom use _rs.)
Done!
Compile and enjoy!
:slight_smile:


(Detoeni) #6

The reason for the seam is that the lightmaps each side of the seam are being projected from diffrent axis.