x


Projecting stained glass window onto other surfaces.

I know how to use the fx/glass/StainedBumpedDistortedSpecular shader. Looks great. But when I filter a dynamic light source through the colourful stained glass window, it doesn't project into the room like it would in real life. I'm trying to get the distortion and colours to appear on the floor, walls and furniture. Help.

more ▼

asked May 21 '10 at 07:11 AM

Carlos Kellar gravatar image

Carlos Kellar
31 6 6 7

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

2 answers: sort voted first

Realtime computer graphics work almost nothing like real life, because that would be incredibly slow. Most of what you see is just a bunch of tricks. Ideally you'd compute this effect in a 3D app and use it as a lightmap, but that requires a static light source. If you really need the light to be dynamic, you can try faking it with a projector (you'd need a custom shader in this case, like this one).

more ▼

answered May 21 '10 at 08:09 AM

Eric5h5 gravatar image

Eric5h5
80.3k 42 132 521

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

In the light's inspector window you can choose a cookie texture. If you use that with a spotlight, you should be able to position and aim the light so that it falls through the window. If your player can also go outside, you'll have to switch off the light when he does so, or use the culling mask so that the cookie light only affects the objects inside the room with the stained glass window.

more ▼

answered Aug 27 '10 at 04:01 PM

PatHightree gravatar image

PatHightree
379 7 10 20

(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:

x272
x268
x199
x42

asked: May 21 '10 at 07:11 AM

Seen: 1694 times

Last Updated: May 21 '10 at 07:11 AM