Shadow Problem

Joined
Feb 21, 2005
Messages
304
Reaction score
0
Hi, I created a maple tree model and I'm having a problem with the shadows. Before I added the line "$staticprop" to my .qc file I was only able to view my model ingameas a prop_dynamic. The shadow shows up perfectly (showin in the image below on the left). But after I changed it to a proper prop_static the shadow is messed up, the leaves dont cast a shadow and it looks very unrealisitic (tree on the right). Does anyone know why this is and how I can fix it? Thanks a ton.

test_tree_propstatic0001.jpg
 
The reason the shadow is "messed up" is because it's using a static lightmap shadow. You could fix it a bit by lowering the lightmap scale on the surface the tree is on. Select the ground with the texture tool then change the lightmap from 16 to something lower (try 2 just to see how it looks). Lowering the lightmap number will make the shadow a lot sharper. This will increase compile time so cut out a square that's only as large as the area the shadow will cover.

The first model is casting a dynamic shadow, you'll see them on barrells etc etc too.

I don't know how else, maybe someone else does.
 
ok, would it be better If I simply use dymanic or physics props in my map? because I'm planning on having at least 100 of these trees in my map. thanx
 
you could make it a physics prop and constrain it so it cant move.

i believe there are a few constraint entities.
 
Back
Top