glTF-Sample-Viewer icon indicating copy to clipboard operation
glTF-Sample-Viewer copied to clipboard

Color mismatch in offline render using electron vs online render on reference-viewer branch

Open pradnya11 opened this issue 7 years ago • 6 comments

For a simple red color plane, I am getting different colors in the rendered output when viewing in the online server vs the output.png produced by offline render via electron. Both rendered using same environment (Footprint Court).

Is this expected? What could the reason be? Any pointers on how to get the colors to match?

Online render output (RGB: 142,24,27) OnlineRender

Offline render output: (RGB: 131,37,35) OfflineRender

Attaching the gltf used. SinglePlane.zip

pradnya11 avatar Mar 28 '19 04:03 pradnya11

Hmmm, talked to my team and the same code is executed. Maybe some hidden gamma feature.

UX3D-nopper avatar Apr 15 '19 18:04 UX3D-nopper

With the default settings of the viewer, I wasn't able to recreate the colors attached to this issue.

colors_comparison

You can see our results in comparison in my image file attached. The colors are labeled. 1 is our online color and 2 the color produced offline. 3 and 4 are the colors referred in the issue.

Since we can't reproduce the issue please be sure to use default settings or provide us any alterations as well as specs, such as what browser and os you are using.

UX3D-goll avatar Apr 16 '19 09:04 UX3D-goll

Closing for now, please reopen when problem popups again.

UX3D-nopper avatar Apr 16 '19 09:04 UX3D-nopper

Sorry I should have mentioned the environment in the original bug report. OS: macOS v10.14.14 Browser: Chrome v73

I can see the above referenced color (1) with default environment "Courtyard of the Doge's palace" in the online render. Screenshot 2019-04-16 at 2 55 40 PM

However, in the offline render with this environment, I can see a different color: Screenshot 2019-04-16 at 2 52 28 PM

pradnya11 avatar Apr 16 '19 09:04 pradnya11

@UX3D-becher Can you pls cross check this?

UX3D-nopper avatar Apr 16 '19 09:04 UX3D-nopper

We've tried to reproduce it on macOS, but with no significant difference in color. There are some variations due to the camera positions being different between offline and online renderer. Online: chrome

Offline offscreen

mobecher avatar Apr 16 '19 14:04 mobecher