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

materialDatabase updates #660

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

AntonPalmqvist
Copy link
Contributor

Switched tonemapper from ACES to AgX

Since the reference images use the AgX tonemapper (with the Base Contrast look), this update makes the render match the reference images better.

Before (ACES)
Screenshot 2024-07-15 at 20 30 11
After (AgX)
Screenshot 2024-07-15 at 20 28 46

Added iridescence for materials that support it

Materials such as Pearl and Soap Bubble now have values for iridescence on the API side and this change enables it whenever a thinFilmThickness value is found on a material.
Screenshot 2024-07-14 at 20 03 00

Changed reference image source

The API provides a reference field with a URL to a reference image (same images as before) and is made for just this kind of application. In v2 of the API there will also be different sizes and file types available.

- Switched tonemapper from ACES to AgX
- Added iridescence for materials that support it
- Changed reference image source to URL from API
@gkjohnson gkjohnson added this to the v0.0.24 milestone Jul 16, 2024
@@ -181,14 +181,23 @@
material.roughness = 1.0;
material.ior = 1.5;
material.thickness = 1.0;
material.iridescence = 0.0;
material.iridescenceIOR = 1.0;
material.iridescenceThicknessRange = [ 0, 0 ]

Check notice

Code scanning / CodeQL

Semicolon insertion Note

Avoid automated semicolon insertion (95% of all statements in the enclosing function have an explicit semicolon).
@gkjohnson
Copy link
Owner

Amazing, thank you!

@gkjohnson gkjohnson merged commit ab2b7e0 into gkjohnson:main Jul 17, 2024
4 checks passed
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.

2 participants