x


How to make foreground blury but not the skybox?

I got a terrain, and i wan't to make it blurry in foreground. But when i do it with DOF my skybox become blurry too. Is it possible to prevent my skybox from blur?

Thx

more ▼

asked Apr 05 '12 at 07:16 AM

Viluredfish gravatar image

Viluredfish
65 1 1 4

looking for solution to similar problem, still no answer

Jan 08 at 11:47 PM blackpag

How about having the skybox rendered by a different camera?

Jan 11 at 05:49 PM robertbu

robertbu has the point

Jan 11 at 05:51 PM z_murc

you would have to make use of shaders wouldn't you?

Jan 11 at 05:57 PM Next Beat Games
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

As @robertbu stated, you could do this with different cameras. If you had one rendering your scene (with clear flags set to depth only), and had another camera (with a lower depth) render the skybox only (LayerMask set to none, clear flags set to skybox), then you could render the skybox and then paint the scene over it with the second camera. BTW: both cameras would be in the same position and orientation in the scene (technically position isn't important, just orientation, but it's easiest to make one be the child of the other).

If you have any questions about using multiple cameras, and what layermasks and clear flags are, check the camera documentation and check around here and the forums - there are a number of posts on doing so.

more ▼

answered Jan 11 at 06:32 PM

Julien.Lynge gravatar image

Julien.Lynge
7.4k 20 25 51

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

x3014
x1478
x78

asked: Apr 05 '12 at 07:16 AM

Seen: 575 times

Last Updated: Jan 11 at 06:32 PM