You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a perspective camera set up. The lens.far value is 2500 and the lens.near value is 1500. I did this in order to get a higher quality shadow map. The lens.fov is 12 as well. These are all fairly extreme values.
The problem is in SkyBox.as at line 133.
The code
var size : Number = camera.lens.far / Math.sqrt(2) * .5;
produces the number 883.8 which is well below the near clipping plane of 1500.
I modified the code as such
var size : Number = ((camera.lens.far - camera.lens.near) / 2) + camera.lens.near;
Which puts the skybox in the correct location, but the corners get cut off when the camera rotates around.
Not sure how to fix this exactly, but the skybox should always be visible on the background regardless of the clipping space.
The text was updated successfully, but these errors were encountered:
I have a perspective camera set up. The lens.far value is 2500 and the lens.near value is 1500. I did this in order to get a higher quality shadow map. The lens.fov is 12 as well. These are all fairly extreme values.
The problem is in SkyBox.as at line 133.
The code
var size : Number = camera.lens.far / Math.sqrt(2) * .5;
produces the number 883.8 which is well below the near clipping plane of 1500.
I modified the code as such
var size : Number = ((camera.lens.far - camera.lens.near) / 2) + camera.lens.near;
Which puts the skybox in the correct location, but the corners get cut off when the camera rotates around.
Not sure how to fix this exactly, but the skybox should always be visible on the background regardless of the clipping space.
The text was updated successfully, but these errors were encountered: