jMonkeyEngine / jMonkeyEngine/sdk

Material editor displays inaccurate colors

Open
#680 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Material / Material Editor
Dominant language
Java
Stars
348
Forks
104
Avg merge
4d 13h
Merged PRs (30d)
3

Description

There's some weirdness going on where the color shown for color fields in material editor does not correspond to what actually ends up rendered to the screen in the material preview and in the built game, even when the shader just copy pastes the input color into the fragment color. I assume it's some sort of a sRGB vs linear color space issue.

Image

If it's not obvious enough to the naked eye, color in the material preview top left is #ffe700 and the color displayed next to the "Color" field is #ffcc00. Given that the color value that I've set corresponds to #ffcc00, this might even be an issue with the way jME passes colors into shaders/deals with gamma correction.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the mismatch in the material editor's color field, material preview, and built game using the shader case that copies the input color into fragment color. Trace the color through the editor, preview, and shader/rendering path, checking the reported sRGB-versus-linear behavior. Done means the displayed and rendered colors agree; no file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
computer-graphics, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.