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

Render to framebuffer #407

Merged
merged 5 commits into from
Aug 27, 2022
Merged

Render to framebuffer #407

merged 5 commits into from
Aug 27, 2022

Conversation

AnotherCommander
Copy link
Member

Thanks to the hard work by tsoj, our graphics engine has been upgraded with the capability to render to framebuffer. This pull request is an extension of tsoj's work, taking the initial render to franebuffer implementation and adding the following:

  • Full HDR support. We now render the full scene to a floating point framebuffer, then apply ACES tonemapping and gamma correction before sending off to screen for display.
  • Bloom. The effect can be toggled on and off with the F9 key. I tried to keep it as modest and subtle, yet effective as possible.
  • Post processing effects. We have five post processing effects available: cloak vision, colorblindness correction filters for protanopia, deuteranopia and tritanopia and grayscale. The effects can be controlled by script by means of the JSGlobal object postFX and more can be added in the future.
  • The cloaking device is now using the cloak vision post effect when activated.
  • The minimum required OpenGL version has been raised to 3.3. Should be OK for all today's computers.

Linux (and hopefully Mac) users, please make sure that the code in this PR builds correctly and runs for you. If all is good, we can proceed with merging to master. If there are any concerns, please feel free to bring them up before we go for the merge. I think we can give it a few days for testing to happen.

AnotherCommander added 5 commits August 19, 2022 16:36
…nd bloom. Added cloak vision post effect for the cloaking device. Post effects can be set from scripts. Currently there is cloak vision, colorblindness correction (protanopia, deuteranopia and tritanopia correction filters) and grayscale. Bloom can be toggled on/off with F9. A million thanks to tsoj for doing all the initial foundation work.
…oo. Bloom now defaults to on only at the Extras detail level. Added old silent film and CRT post processing effects.
…r the default rendering and the cloak vision effect. The rest of the post effects render the HUD and the GUI together with the 3D universe as a whole. Thanks go to tsoj.
@AnotherCommander AnotherCommander merged commit 08c0079 into master Aug 27, 2022
@HiranChaudhuri HiranChaudhuri deleted the render_to_framebuffer branch October 16, 2023 15:04
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

Successfully merging this pull request may close these issues.

None yet

1 participant