x


Objects Disappear When Too Far Away

When I use Unity, when Objects are too far away, they disappear, and slowly start to appear as you get closer. Obviously, this is a problem because I want the player to see a huge Game World. The fog is not on in the render settings, and I don't know if this is a bug, or it's designed to this. If it is, then I would like to know how to turn this function off. This is a really frustrating problem so help would be appreciated. Thanks in advance.

more ▼

asked Aug 17 '11 at 07:30 PM

Overlord gravatar image

Overlord
484 67 78 88

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

2 answers: sort newest

Hi, it appears you are encountering Clipping What this basically does is 'clips' of stuff that's too far away from the camera. In the inspector, if you select your main camera, there will be a section underneath field of view called clipping planes, the higher you set the 'Far' value, the farther away an object will be before it's 'clipped' off. I recommend setting the far value to something like 100000. Also, another way to keep your objects from disappearing would be to scale down your entire scene. I hope this helps! :)

more ▼

answered Aug 17 '11 at 07:35 PM

stopsecret gravatar image

stopsecret
56 5 7 10

Thanks. It helps!

Aug 17 '11 at 07:50 PM Overlord

Note that having huge far values (and small near values) for the camera results in poor z buffer resolution, which usually creates visual artifacts. In most cases I wouldn't recommend using such high far values, but use two cameras instead (one for near objects and one for far objects).

Aug 17 '11 at 09:20 PM Eric5h5

Well, this is going to be a space sim so I don't know how that would work.

Aug 18 '11 at 12:05 AM Overlord

I don't know how it wouldn't work. Being a space sim wouldn't make any difference; if anything that makes it easier.

Aug 18 '11 at 01:30 AM Eric5h5

I meant two things:

  1. It's space sim, so I don't if the method would work (you've made that clear now though)
  2. I don't know how to implement that
Aug 18 '11 at 01:46 AM Overlord
(comments are locked)
10|3000 characters needed characters left

This really helps, thank you.

One question, how can i implement 2 cameras in the same FPS controller?, if you have a player viewing all the land from the top of a mountain, all the land must be showed, but how to change between 2 cameras just only when the player wants to see far away?, thank you.

more ▼

answered Sep 08 '11 at 01:06 AM

Edyvargas gravatar image

Edyvargas
86 12 13 15

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

x181
x27
x10
x9
x4

asked: Aug 17 '11 at 07:30 PM

Seen: 1357 times

Last Updated: Sep 08 '11 at 01:07 AM