Material Node Editor compiles Material but throws error in console

Hello there,
First of all: Awesome work and thank you very much.

I have been playing around with the NME and tried to reproduce some 2d noise from the book of shaders example.

https://nme.babylonjs.com/#XDUFVU#6

both chrome and firefox produce:

BJS - [21:54:27]: Error: FRAGMENT SHADER ERROR: 0:47: ‘cross’ : no matching overloaded function found
ERROR: 0:54: ‘cross’ : no matching overloaded function found

I cannot rule out that i made a mistake in the graph itself.
the editor however shows “Node material build successful”.

Am i doing something wrong?

Cheers
Danny

source shader: The Book of Shaders: Noise

dang…my fault…cross product is not the same as multiply.

working version:
https://nme.babylonjs.com/#XDUFVU#8

Sorry

1 Like

Excellent! I will still fix NME to block you from using floats with cross and dots

1 Like

Hi guys! That’s a big NM flow-sheet, for sure. Maybe the biggest so far. Cool.

I started mousewheeling out to see it all… took forever… not much mousewheel power per-spin. Perhaps it could use a shifted-mousewheel for amplified mousewheeling.

“Zoom to fit” button works ok, too.

I’m thinking… if possible… allow highlight/select of multiple nodes (control-select?)… and then pressing zoom-to-fit… would zoom-to-fit the highlighted nodes-area… only. “Zoom-to-fit selected”. :slight_smile: Probably not an easy-add feature, technically-speaking.

To compliment THAT feature… perhaps we could have a “lasso select” to easily highlight multiple modes… in preparation for zoom-to-fit-selected.

I don’t know if drag-drop of multiple selected nodes… would ever be possible, but maybe. Good for dragging-around entire “sections” of a node-tree/flow-sheet.

Ain’t it cool when average people like me…can invent/apply NME terms (like “flowsheet”)… that MIGHT “stick” (become common)? I love that. It makes me feel like I’m almost somebody. :smiley:

I’m just throwing-out some possible future NME features… mis-using @dannybucksch 's thread, here. (Hey, he didn’t mark it (self-) solved, so that means I can bend it off-topic… now that it’s no longer needed for the actual issue). heh.

Thx for showing us your monster NM “flowsheet” and material, DB… that’s a good one. It’s the current record-holder, I believe. Congrats! :slight_smile: Thanks for finding the cross/dot oddness, too.

And @Deltakosh … thanks for installing a preventative measure for that, as well. Good good good. My dog gave 2 thumbs-up for this thread, and that’s not easy for a dog to do. :slight_smile:

1 Like