fix(linux): Three.js sRGBEncoding compatibility fix for r152+#256
Open
MrHaku81 wants to merge 1 commit into
Open
fix(linux): Three.js sRGBEncoding compatibility fix for r152+#256MrHaku81 wants to merge 1 commit into
MrHaku81 wants to merge 1 commit into
Conversation
0def449 to
f31349d
Compare
Author
|
Additionally, I've published an AUR package for Arch-based distributions, making installation straightforward: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
THREE.sRGBEncodingand theoutputEncodingrenderer property were removed in Three.js r152. This project usesthree: ^0.181.0(r181), soTHREE.sRGBEncodingresolves toundefinedat runtime, causing a silent WebGL renderer initialization failure on Linux.The symptom on Linux is that the 3D viewer fails to render correctly and the app shows a blank/broken view.
Fix
Replace the deprecated API with the modern equivalent:
outputColorSpacewithTHREE.SRGBColorSpaceis the correct replacement since Three.js r152 and is consistent with how React Three Fiber handles color space internally.Tested on
--mockup-sim) fully functional after this fixRelated
reachy-mini-control) for Arch Linux / CachyOS will be submitted separately, making installation straightforward for Arch-based distributionsNotes
This fix was identified and tested while getting the app running on CachyOS Linux. The full debugging process and setup documentation (architecture overview, rebuild instructions, known warnings, manual daemon startup) is available at
~/reachy-debug.login the test environment.This investigation was assisted by Claude Code (Anthropic's CLI for Claude), which helped analyze the Tauri sidecar mechanism, the uv-trampoline source, and the Three.js API change.
🤖 Generated with Claude Code