NodeMaterial broken with floating origin / large world rendering

Hey there,

I am still working on integrating the new floating origin feature in my projects, and ran into another issue related to node materials (similar to Large world rendering has issues with NME specular lighting I think)

Basically the object disappears when turning on large world rendering:

My own testing hinted at objects with this kind of node material being stuck in camera space, so the camera could be inside the cube, which would explain we don’t see it :thinking:

Maybe you know what’s this coming from @georgie ?

1 Like

For node materials to work with large world rendering, some inputs must have a specific name:

  • world matrix: World
  • view matrix: View
  • view projection matrix: ViewProjection

In your material, the world and view matrices are not correctly capitalized. Once corrected:

2 Likes

cc @georgie to make sure it will be documented

2 Likes

Thank you for reporting! Here is a PR which makes the feature a bit more forgiving and supports lowercase matrix names

[FloatingOrigin] Support lowercase matrix names for node material blocks by georginahalpern · Pull Request #17511 · BabylonJS/Babylon.js

You can see it working in this snapshot :slight_smile: PBR NME Lighting bug with large world rendering | Babylon.js Playground

2 Likes

Ah I didn’t know the name was important :sweat_smile: Thanks for making this PR, I will look forward to the next release :ok_hand:

1 Like