x


Light goes Through Terrain. Help?

Pretty much what the title says, I have light that penetrates the terrain. On one side, I have some point lights that emit a purple glow which is specific to that area of the map, I need the area to be bright, so i have the range and intensity kind of high. The problem is directly on the other side of the terrain, the landscape and objects are receiving the purple glow from these lights and I don't want that. Is there a way to stop a light from penetrating an object like the terrain?

more ▼

asked Mar 30 '10 at 02:43 AM

CalledToGaming gravatar image

CalledToGaming
190 21 24 30

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

In realtime 3D, all polygons in range of a light are lit by angle only, without regard to any other polygons. There's no way to stop this because that's how the hardware works. If you have Unity Pro, you can use realtime shadows, which adds shadows on top of the lighting. Another method is to use layers, so that the purple light affects only objects on a specified layer, and ignores the others. If you don't need the light to be dynamic, you can bake the lighting in a 3D app into a lightmap texture and apply that to all the objects, and not use the light in Unity at all.

more ▼

answered Mar 30 '10 at 03:06 AM

Eric5h5 gravatar image

Eric5h5
80.3k 42 132 521

Thanks for the reply, I'll look into your suggestions.

Mar 30 '10 at 03:29 AM CalledToGaming
(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:

x1478
x427
x427

asked: Mar 30 '10 at 02:43 AM

Seen: 1824 times

Last Updated: Mar 30 '10 at 02:43 AM