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

get_viewport().get_texture() appears too bright when exported to HTML5 (GLES3) #50171

Open
JonathanPicques opened this issue Jul 4, 2021 · 5 comments

Comments

@JonathanPicques
Copy link

Godot version

3.3.2.stable.official

System information

Windows 10, Chrome / Firefox, RTX 2080

Issue description

I'm using get_viewport().get_texture() to capture the viewport to make a transition from a scene to another.

On Windows it works fine, but when using HTML5 export, the captured texture is way too bright:

image

Occurs on Chrome and Firefox

Steps to reproduce

Open minimal reproduction project and test on Windows and in Chrome

Minimal reproduction project

HTMLViewportTooBright.zip

@Calinou
Copy link
Member

Calinou commented Jul 4, 2021

This is likely due to sRGB conversion happening when it shouldn't or vice versa). See #34062 and #48460.

The minimal reproduction project uses GLES3. Can you reproduce this after switching to the GLES2 renderer? The GLES3 renderer is generally too demanding to run well on HTML5.

@Calinou Calinou changed the title [HTML5] get_viewport().get_texture() appears way too bright when exported to HTML5 get_viewport().get_texture() appears too bright when exported to HTML5 (GLES3) Jul 4, 2021
@JonathanPicques
Copy link
Author

@Calinou It works fine in the GLES2 renderer.

@kelteseth
Copy link

kelteseth commented Apr 12, 2022

I can confirm that GLES2 works fine, whereas GLES3 is way too white.

image

@Calinou
Copy link
Member

Calinou commented Apr 12, 2022

@kelteseth Please upload a minimal reproduction project to make this easier to troubleshoot.

@kelteseth
Copy link

kelteseth commented Apr 13, 2022

@kelteseth Please upload a minimal reproduction project to make this easier to troubleshoot.

@Calinou Simply use the HTML5 preview and switch between GLES2 and GLES3. Here is my test project:
GodotHTML5ExportColors.zip

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

No branches or pull requests

3 participants