Skip to content

Conversation

@asundqui
Copy link
Contributor

Created modifiers/ folder with normalColor and depthColor to start. Can be used by importing modifiers from Spark and applying those to SplatMeshes.

Added another examples/debug-color to show using both in an example.

The normal coloring is applied in "world space", with RGB corresponding to XYZ.

The depth coloring allows you to specify minimum and max Z depth, and logarithmically encodes depth from black to white on that scale (including boolean to reverse direction). Future PR may involve mapping these values over a color palette. @winnie1994 thanks for your example code, hopefully this depth coloring is good enough for people to use for depth conditioning etc?

Screen.Recording.2025-06-20.at.2.12.15.PM.mov

@asundqui asundqui self-assigned this Jun 20, 2025
@61cygni
Copy link
Contributor

61cygni commented Jun 20, 2025

Looks great!

@61cygni 61cygni merged commit 690e09a into sparkjsdev:main Jun 20, 2025
2 checks passed
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.

2 participants