Range at which models become visible

Hi everyone,

I’m creating a space game and i want to increase the range where models become visible. Currently if I start the game, everything that close by is visible and if I slowly go backwards a shadow falls over them as if fogged over. How can I increase the range? or possibly disable it?

I’ve tried increasing or decreasing the functions below:


However this does not work so I think I may be wrong.

I’ve looked in the samples and it seems that some of them do not fog over when at a great distance but I was unable to find out how this happens.


Did you increase the camera’s far clip as well using Camera::SetFarClip(float)?
Also, welcome to the forums! :confetti_ball: :slight_smile:

Thanks for the welcoming :slight_smile:

I’ve tried them separately, should I try them together?

If you don’t want objects to disappear before fading into the fog the Camera's far clip should be the same as the fog end or greater.
Also, did you connect the zone to the camera node? This will ensure the camera is always inside this Zone. If the camera is not inside a zone a default zone with default parameters will be uses, according to the documentation.

Thats fixed my problem, thank you so much for the help. Really appreciate it :slight_smile:

1 Like

You can also access the default zone through Renderer::GetDefaultZone().

1 Like