x


Sun shafts from the sun

I have a scene with a skybox, and a directional light that is oriented the same as the sun on the skybox. I have the camera set up to use Sun Shafts, but I have no idea what to put for the transform. I want the sun shafts to come from the sun, but that is theoretically in-game miles away. I had an idea to position the directional light as far out in the direction of the sun as possible, to try and get close to the position of the sun, but that is far from accurate and frankly doesn't look very good. What should I do about this?

more ▼

asked Jan 01 '12 at 02:58 AM

keelx gravatar image

keelx
31 3 3 3

what are sun shafts? The tyndall effect rays in the air?

Jan 01 '12 at 04:43 AM vatsalAtFEI
(comments are locked)
10|3000 characters needed characters left

1 answer: sort oldest

If you want the sun transform to always be at the same position relative to the player, you could use some scripting that makes the position always relative to the camera. This way, it makes sure that the rays will always look like they are coming from 'infinity', and it also keeps the rays in the right position!

more ▼

answered Jan 01 '12 at 05:06 AM

syclamoth gravatar image

syclamoth
14.8k 7 15 80

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

x1273
x425
x28
x16
x2

asked: Jan 01 '12 at 02:58 AM

Seen: 1374 times

Last Updated: Jan 01 '12 at 05:06 AM