Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

increase atmosphere size #112

Open
sazearte opened this issue May 10, 2019 · 6 comments
Open

increase atmosphere size #112

sazearte opened this issue May 10, 2019 · 6 comments

Comments

@sazearte
Copy link

sazearte commented May 10, 2019

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

@tobspr
Copy link
Owner

tobspr commented May 11, 2019

  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

@sazearte
Copy link
Author

sazearte commented May 11, 2019

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
Copy link
Author

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

@tobspr
Copy link
Owner

tobspr commented May 15, 2019

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

@rdb
Copy link
Collaborator

rdb commented May 15, 2019

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.

@sazearte
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants