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

Add a 3D tonemapping and color correction demo #857

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Feb 25, 2023

This showcases various tonemapping operators and their interaction with several color correction textures (1D and 3D).

A script generating neutral 3D LUT textures is also included.

Preview

tonemap_color_correction

Copy link

@huwpascoe huwpascoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very nice demo. Only needs two changes for latest Godot.

3d/tonemap_color_correction/options.gd Outdated Show resolved Hide resolved
@Calinou Calinou force-pushed the add-color-correction-demo branch from be912cf to 0537563 Compare September 26, 2024 23:33
@Calinou Calinou force-pushed the add-color-correction-demo branch from 22c8b46 to a0d6a2a Compare October 18, 2024 21:22
@Calinou
Copy link
Member Author

Calinou commented Oct 18, 2024

This PR now integrates Calinou#4 courtesy of @allenwp 🙂

@Calinou Calinou force-pushed the add-color-correction-demo branch from a0d6a2a to 9f4307c Compare January 10, 2025 19:11
@Calinou
Copy link
Member Author

Calinou commented Jan 10, 2025

I've updated the PR to add AgX support following the merge of godotengine/godot#87260.

## *visibly* appear rendering, even though the LUT is still sampled.
## Lower resolution neutral LUTs such as 17×17×17 and 33×33×33 will still somewhat impact rendering
## due to the limitations of bilinear filtering.
func create_neutral_lut(p_name: String, p_size: int, p_vertical: bool):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
func create_neutral_lut(p_name: String, p_size: int, p_vertical: bool):
func create_neutral_lut(name: String, size: int, vertical: bool):

# Hide whitepoint if not relevant (Linear tonemapping does not use a whitepoint).
%Whitepoint.visible = world_environment.environment.tonemap_mode != Environment.TONE_MAPPER_LINEAR and world_environment.environment.tonemap_mode != Environment.TONE_MAPPER_AGX

func _on_exposure_value_changed(value: float) -> void:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
func _on_exposure_value_changed(value: float) -> void:
func _on_exposure_value_changed(value: float) -> void:

@allenwp
Copy link

allenwp commented Jan 12, 2025

I've updated the PR to add AgX support following the merge of godotengine/godot#87260.

I think you accidentally reverted Calinou#4 ?

This showcases various tonemapping operators and their interaction
with several color correction textures (1D and 3D).

A script generating neutral 3D LUT textures is also included.

Co-authored-by: Allen Pestaluky <[email protected]>
@Calinou Calinou force-pushed the add-color-correction-demo branch from 9f4307c to 533cce2 Compare January 12, 2025 23:22
@Calinou
Copy link
Member Author

Calinou commented Jan 12, 2025

I think you accidentally reverted Calinou#4 ?

Fixed.

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

Successfully merging this pull request may close these issues.

5 participants