Skip to content

Conversation

mrdoob
Copy link
Owner

@mrdoob mrdoob commented Jul 31, 2025

Description

Trying to improve the MaterialX example:

Before After
Screenshot 2025-07-31 at 10 57 33 PM Screenshot 2025-07-31 at 9 44 51 PM

With this configuration we can see that the transparent materials have issues.

@sunag Any ideas of how to make the TSL grid nicer looking? Turns out Claude knows TSL already! 😮

@mrdoob mrdoob added this to the r180 milestone Jul 31, 2025
@mrdoob mrdoob changed the title Improved MaterialX example. Improved MaterialX example Jul 31, 2025
…rt, function or class

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@WestLangley
Copy link
Collaborator

With this configuration we can see that the transparent materials have issues.

Set the render order.

plane.renderOrder = - 1;

@sunag
Copy link
Collaborator

sunag commented Jul 31, 2025

@sunag Any ideas of how to make the TSL grid nicer looking? Turns out Claude knows TSL already! 😮

Wow, this will help a lot.
I'm impressed, the leaps in AI evolution are no joke.

@mrdoob
Copy link
Owner Author

mrdoob commented Jul 31, 2025

@WestLangley

With this configuration we can see that the transparent materials have issues.

Set the render order.

plane.renderOrder = - 1;

Done!

@mrdoob mrdoob marked this pull request as ready for review July 31, 2025 17:33
@WestLangley
Copy link
Collaborator

WestLangley commented Jul 31, 2025

See if forcing the Calibration Mesh to render prior to the Preview Mesh helps with sorting issues.

Note that there are both transmission and transparency tests in this demo, and that implies different sort groups.

@mrdoob
Copy link
Owner Author

mrdoob commented Jul 31, 2025

That fixed it 🙏

However, now I noticed that the transmissive render with a frame of delay and makes the geometry inside move around...

Screen.Recording.2025-08-01.at.3.06.05.AM.mov

A problem for another day though...

/fyi @sunag

@mrdoob mrdoob merged commit a0daeb5 into dev Jul 31, 2025
8 checks passed
@mrdoob mrdoob modified the milestones: r180, r179 Jul 31, 2025
@mrdoob mrdoob deleted the examples-materialx branch July 31, 2025 18:47
@mrdoob
Copy link
Owner Author

mrdoob commented Aug 1, 2025

Found a nicer approach using fwidth:
https://madebyevan.com/shaders/grid/

Before After
Screenshot 2025-08-01 at 12 11 57 PM Screenshot 2025-08-01 at 12 12 03 PM

d71fc38

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.

3 participants