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

Examples: Regenerate RGBM textures. #21173

Merged
merged 1 commit into from
Jan 29, 2021
Merged

Examples: Regenerate RGBM textures. #21173

merged 1 commit into from
Jan 29, 2021

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Jan 29, 2021

Related issue: #21145

Description

This PR regenerates RGBM textures in the repo with this code: https://jsfiddle.net/xf5oy3hd/1/

When comparing the examples, you can see less artifacts and a better brightness. This is especially noticeable in webgl_loader_texture_rgbm.

@mrdoob
Copy link
Owner

mrdoob commented Jan 29, 2021

Very nice!

@mrdoob mrdoob added this to the r126 milestone Jan 29, 2021
@mrdoob mrdoob merged commit 0c0b6c2 into mrdoob:dev Jan 29, 2021
@mrdoob
Copy link
Owner

mrdoob commented Jan 29, 2021

Thanks!

@Mugen87
Copy link
Collaborator Author

Mugen87 commented Jan 29, 2021

I suggest to recommend users who want to convert to RGBM the above fiddle.

If more users request a RGBM converter, we can still use the code to create a new example.

@mrdoob
Copy link
Owner

mrdoob commented Jan 29, 2021

I was/am going to turn the fiddle into a little webapp 🤓

@Mugen87
Copy link
Collaborator Author

Mugen87 commented Jan 29, 2021

Even better 😊 ! I've added a small update so things are properly disposed.

@WestLangley
Copy link
Collaborator

It still remains to set the files' color profiles correctly (somehow). It is currently set to sRGB, and that is not correct.

@Mugen87
Copy link
Collaborator Author

Mugen87 commented Jan 29, 2021

I've searched the API of UPNG.js for a respective setting but it seems this setting can't be influenced.

@WestLangley
Copy link
Collaborator

Oh well, it is not critical.

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.

3 participants