i implemented a sky shader in Cafu however it need to be applied onto a sphere, i tried to make one using CaWe sphere brush but got the error "Stopped by leak", tried bezier patch and it work but the sky look bad (due to the shape), i thought i could use a model but it seem a bit overkill... is there something i could use to build it from scratch using the engine methods? looked at the documentation but a bit overwhelmed by it atm
Also, when i tested the shader with a bezier patch i could not delete the skybox due to the leak error, even if the world was inside the sphere, is there any way to get rid of the skybox and replace it by something else?
Some games use a dome mesh tied to player position, not many.
The shader is based on this paper which assume a sky dome:
http://http.developer.nvidia.com/GPUGem ... ter16.html
EDIT: Err, actually harder than i thought.
I've only glanced at the paper, but I wonder if something like that cannot be implemented in the pixel shader, combining the idea of cube mapping with the algorithm described there, getting rid of the spherical geometry... (and don't be surprised if many of the items presented in the GPU Gems only work in very specific settings... only very few of them are actually useful in general cases).
Users browsing this forum: No registered users and 3 guests