Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGPURenderer: MaterialX #27294

Merged
merged 15 commits into from Dec 7, 2023
Merged

WebGPURenderer: MaterialX #27294

merged 15 commits into from Dec 7, 2023

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Dec 2, 2023

Related issue: #24707, closes #24958

Introduction

This PR introduces the first version of the MaterialX library for WebGPURenderer, compatible with WebGLRenderer too using TSL.

We were successful in converting mx_noise to TSL using the Three.js Transpiler, making future updates easier.

MaterialX Loader Example

MaterialX Noise Nodes

Description

@sunag sunag added this to the r160 milestone Dec 2, 2023
@sunag sunag marked this pull request as ready for review December 4, 2023 22:20
@sunag
Copy link
Collaborator Author

sunag commented Dec 7, 2023

Could this E2E error have something to do with this PR?

Error: Error happened while loading file webgl_points_waves: TimeoutError: Navigation timeout of 300000 ms exceeded, another attempt...
Error: Error happened while loading file webgl_portal: TimeoutError: Navigation timeout of 300000 ms exceeded, another attempt...

@Mugen87
Copy link
Collaborator

Mugen87 commented Dec 7, 2023

I'm not sure why but the error "TimeoutError: Navigation timeout of 300000 ms exceeded" seems to happen with random examples and then the run fails. It also seems to happen just in the (macos-latest,2) job.

@Mugen87
Copy link
Collaborator

Mugen87 commented Dec 7, 2023

Did another test run and now the timeout happens with webgl_points_waves. Something else must block or allocate too much resources and then the subsequent tests fails.

@sunag sunag merged commit 2d38c5d into mrdoob:dev Dec 7, 2023
11 checks passed
@sunag sunag deleted the dev-material-x branch December 7, 2023 19:21
AdaRoseCannon pushed a commit to AdaRoseCannon/three.js that referenced this pull request Jan 15, 2024
* MathNode: Add `bitcast()`

* WGSLNodeBuilder: Add `greaterThan` for vec3

* WGSLNodeBuilder: XOR

* NodeBuilder: .buildFunctionNode() and getFunctionOperator()

* TSL: Function Overloading

* SplitNode: Fix expected output if used uvec or ivec

* TSL Transpiler: Improvements and fixes

* TSL: Fix expected output if used a.assign( b ), returns a

* FIX & TODO: Check reasons

* Fix clearcoat op sequence

* WebGPURenderer: MaterialX Support

* add webgpu materialx examples

* fix backend name

* unknown diff screenshot problem

* testing e2e response
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.

None yet

2 participants