x


How to make terrain trees receive shadow

As far as I know, terrain trees cast shadow, but don't receive shadow. That is, if those trees are imported models, cause I noticed that the trees created with the new Tree Creator do recieve shadow.

Now I was wondering if there is perhaps a way to make my trees (imported meshes) receive shadow ? (just a setting I overlooked perhaps?)

Cause I don't really see why it works for the one but not for the other.

Also, How much more expensive are tree creator trees than the normal ones?

I'm using Unity Pro btw

more ▼

asked Mar 29 '11 at 11:59 AM

Steven 1 gravatar image

Steven 1
377 28 36 49

seriously, no one ?

Dec 24 '11 at 12:08 PM Steven 1
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

imported trees using the built in soft occlusion leave shaders do not recieve shadows due to the shader. you can have shadows on the bark though using a hacked shader: go to the asset store and find the advanced terrain shaders (free).

lars

more ▼

answered Dec 28 '11 at 10:20 AM

larsbertram gravatar image

larsbertram
16

Ah, thanks, alright I'll test this

Jan 05 '12 at 09:28 AM Steven 1
(comments are locked)
10|3000 characters needed characters left

if you are making tress from the terrain you can just simply generate a light map

but before the light map firstly make a directional light with a rotation of the Z or X axis to 45 degrees. then go to window at the top bar and select light mapping object from your hierchy and select your directional light and click Bake to make a texture that applies automaticly to the terrain

that so do the trick

more ▼

answered Dec 25 '11 at 04:46 AM

BigBlob gravatar image

BigBlob
340 37 62 66

I've tried lightmapping, but it doesn't give a good result (worse than shadow at all), it just makes the trees in the shadow darker in general, it looks more like the trees are burned rather than in the shade.

Jan 05 '12 at 09:35 AM Steven 1
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1477
x217
x140
x11
x3

asked: Mar 29 '11 at 11:59 AM

Seen: 2442 times

Last Updated: Jan 05 '12 at 09:35 AM