Render big sky models and clipping
-
- Competition winner
- Posts: 523
- Joined: Tue Jan 15, 2013 6:36 pm
Render big sky models and clipping
I have some sky models from halo but I have run into one issue in halo the sky models are fairly large models several times the size of a map or environment. What would be a good solution for rendering a skybox model that does not require the camera to have an insane far clip value?
Re: Render big sky models and clipping
Snap them to the far plane in your vertex shader. Or render with two cameras, once with the sky and once with the game.
Re: Render big sky models and clipping
It wont work if the model is not convex (i.e. should self-occlude from some view-points), for this you want to still use a functioning depth-buffer.
There is a way to build the projection matrix, so it has an "infinite far plane" however you will render with "two cameras" and you will have to clear the depth buffer in-between switching.
There is a way to build the projection matrix, so it has an "infinite far plane" however you will render with "two cameras" and you will have to clear the depth buffer in-between switching.