RenderPipeline icon indicating copy to clipboard operation
RenderPipeline copied to clipboard

increase atmosphere size

Open sazearte opened this issue 6 years ago • 6 comments
trafficstars

Hello i have 4 questions :

  1. it's possible to increase atmosphere size ? because a large map exceeds the render pipeline

  2. It's possible to configure sky color (default is earth blue sky) to red sky like mars ?

  3. and after render pipeline atmosphere it's possible to configure background color (default i have white color) for have black color like space

  4. and it's possible to change default display distance ? when i move i see that far objects disappears

thanks for advance for your help

sazearte avatar May 10 '19 16:05 sazearte

  1. How are you controlling your camera? The atmosphere is centered arround the camera, so it should never exceed.

  2. 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

  3. Thats not supported right now, because the atmosphere is infinite. Again you'd have to modify the shaders

  4. 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

tobspr avatar May 11 '19 10:05 tobspr

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 Capture 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

sazearte avatar May 11 '19 17:05 sazearte

  1. You can change the far plane of the camera. It is already set pretty high though. please can you tell me how?

sazearte avatar May 13 '19 18:05 sazearte

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

tobspr avatar May 15 '19 06:05 tobspr

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.

rdb avatar May 15 '19 09:05 rdb

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

sazearte avatar May 15 '19 18:05 sazearte