RenderPipeline
RenderPipeline copied to clipboard
increase atmosphere size
Hello i have 4 questions :
-
it's possible to increase atmosphere size ? because a large map exceeds the render pipeline
-
It's possible to configure sky color (default is earth blue sky) to red sky like mars ?
-
and after render pipeline atmosphere it's possible to configure background color (default i have white color) for have black color like space
-
and it's possible to change default display distance ? when i move i see that far objects disappears
thanks for advance for your help
-
How are you controlling your camera? The atmosphere is centered arround the camera, so it should never exceed.
-
You'd have to modify the shaders of the scattering plugin. Its been a while since I made them but you can find them here: https://github.com/tobspr/RenderPipeline/blob/master/rpplugins/scattering/shader/eric_bruneton/scattering_common.glsl
-
Thats not supported right now, because the atmosphere is infinite. Again you'd have to modify the shaders
-
You can change the far plane of the camera. It is already set pretty high though.
It seems you are not using standard units of 1 m = 1 panda3d unit. I highly recommend this though, because this is what the pipeline expects and is built for
ok thanks for your answer
when i load terrain sample (https://github.com/tobspr/RenderPipeline-Samples/tree/master/08-Terrain) and i accelerate zoom i have this when i exit atmosphere like this printscreen
Atmosphere is really infinite ?
can you tell me where the code of this shader ? it's same that sky color ? https://github.com/tobspr/RenderPipeline/blob/master/rpplugins/scattering/shader/eric_bruneton/scattering_common.glsl
- You can change the far plane of the camera. It is already set pretty high though. please can you tell me how?
Right now there is no configuration, but you can edit it here: https://github.com/tobspr/RenderPipeline/blob/master/rpcore/render_pipeline.py#L445
However 70000 is already a pretty high value for the far plane. If you increase it you will very likely get precision issues and other issues.
What is your use case? Maybe we can figure something out
The near plane is more critical to precision than the far plane; in fact Panda allows you to set the far clipping plane to float("inf") if needed.
i want to create similar game like mario galaxie with small planet/asteroid that player can be jump i want to see far planet/asteroid