So here’s the situation, I’m flying a spaceship and the asteroid that are far away get rendered only on the border of the screen, as soon as I look at the they disappear and I need to get closser to them to make them apear again…
I don’t understand why it does that and how to fix it.
I would like to have a render distance equal all over me screen.
What is your culling mask set to? What layer are the objects in? Do you have multiple cameras in the scene? Are these worldspace objects or UI screen space objects?
the culling mask is set properly to render the layer the objects are in. I do have multiple camera but always just on active at any giving time. and they are worldspace objects.
they spawn at random position so I can’t tell but the far clipping plane is set at 1000. but even if I set it at 1500 or 2000 it always does the same thing with the objet that are at the limit of the far plane.
Therefore technically the edges of the viewport are farther away from the camera than the center. It’s difference between the hypotenuse of a right-angle triangle and one of the other sides.
See like in this image when the camera is turned the edge of the frustum extends farther into the world than the center did:
found a solution by using a second camera with a higher far clipping plain and using "camera.projection Matrix to render only the center of it and overlaping it with my first camera.
it should do the job, I let you know latter if it work or not.
and realy thank you caus know I know what is going on.