Piledriver
July 31, 2022 14:40:40
Hi, i have troubles to understand how work triplanarmap with materialx in karma how it work?like scaling the texture or rotate it, inside 19.5, pevious there was a node called materialx usd uv transform to do that but in 19.5 there isn't anymore
jsmack
July 31, 2022 16:11:25
The USD Coordsys can be used to place 3d or 2d textures, which can also be used with the triplanar projection node. The triplanar projection node doesn't allow for a different projection for each texture though, so this may not be what you are after.
Piledriver
July 31, 2022 22:16:19
this coordinate system node work only for cpu
Piledriver
July 31, 2022 22:43:54
i open the scene but i don't understand why don't work i create the new one USD Coordys node
jsmack
July 31, 2022 23:36:47
Piledriver
i open the scene but i don't understand why don't work i create the new one USD Coordys node
It's pretty picky about hierarchy, I had to experiment a bit. Check out the help and example file under the coordsys node.
Piledriver
this coordinate system node work only for cpu
Oh, bummer. I forgot about that limitation. For XPU, there's always multiply and add nodes.
Piledriver
Aug. 1, 2022 04:17:36
i tried to check the help if you mean the doc its not so clear.... hope in future sidefx implement better this triplanar because in other render engines and also with principled shader its a lot simpler
jsmack
Aug. 1, 2022 11:44:22
Piledriver
i tried to check the help if you mean the doc its not so clear.... hope in future sidefx implement better this triplanar because in other render engines and also with principled shader its a lot simpler
what are you having trouble with? The coordsys or the triplanar texture? The coordsys is by no means required for the triplanar texture, it's just a convenient way to transform it. As for enriching the features of the node itself, since it comes from MaterialX, it would be up to them to adopt a more complex node. Alternatively, sidefx could implement a karma-specific node, but there would have to be significant demand for that.
It's also not impossible to just build your own triplanar projection yourself based on the math used by the mantra version.
Piledriver
Aug. 1, 2022 16:53:56
the coordsys it's my issue now i don't just unrderstand how name the attribute to make the scale work to triplanar node, i mean at the staart of this conversation the issue itself it was about the fact that i can't scale or rotate the texture for triplanar, about rotating i solved that putting a mtlxrotate node but for the scale there isn't a node to allow that, but just i give up because i'm tired, so just i don't use materialx for triplanar mapping. maybe in future when this are done better i could do that but i don't want become crazy to make something where other render engine just do in a easier way
jsmack
Aug. 1, 2022 16:56:46
Piledriver
the coordsys it's my issue now i don't just unrderstand how name the attribute to make the scale work to triplanar node, i mean at the staart of this conversation the issue itself it was about the fact that i can't scale or rotate the texture for triplanar, about rotating i solved that putting a mtlxrotate node but for the scale there isn't a node to allow that, but just i give up because i'm tired, so just i don't use materialx for triplanar mapping. maybe in future when this are done better i could do that but i don't want become crazy to make something where other render engine just do in a easier way
scale is even easier, just use the multiply node. Same as with Mantra shaders.
Piledriver
Aug. 1, 2022 17:05:06
what i need to multiply with? i never used mantra but with the triplanar node withprincipel shader its just easier to do that
jsmack
Aug. 1, 2022 18:20:56
Piledriver
what i need to multiply with? i never used mantra but with the triplanar node withprincipel shader its just easier to do that
the amount you want to scale it by. Scale = multiply
Piledriver
Aug. 1, 2022 19:05:50
i don't have any scale node with triplanar
jsmack
Aug. 1, 2022 19:34:27
Piledriver
i don't have any scale node with triplanar
what are you talking about? There is no scale node. read my posts, use a multiply node to scale the position space. this is really just basic shader building. position multiplied by 2 is twice as many repeats of the pattern per unit of space.
tamte
Aug. 1, 2022 22:28:17
I understand the frustration
I don't really get how MtlX is missing so many basic nodes, it feels like a proof of concept, but hopefully with more adoption the development will accelerate
there is Place2D node which has nice transform controls, especially Pivot which can be tedious to manage with just simple math nodes especially without full matrix math library
but Place3D is nowhere to be found, one shouldn't have to resort to external coordsys relationship or building their own math libraries for relatively basic functionality
Piledriver
Aug. 2, 2022 03:33:14
what talking about??? maybe you don't understand one thing, its not because i'm using houdini i'm a technical guy that building shadings all day... i just asking a basic thing that in other rendering its just easy stop... change tones with me ok?
Fabazo
Aug. 15, 2023 16:26:46
I'm also trying to get the whole triplanar thing to work on my end. And through reading everything above I can replicate everything except for properly rotating each side of the triplanar individually.
I inserted a mtlxrotate3d node and rotated the X-axis 90 degrees, which does work for the X-axis's side, but for the rest of the sides my texture just becomes warped (see image).
Am i inserting the mtlxrotate3d node in the right place or what's going on? I basically want my texture to be rotated so that all sides display the grunge flowing in the same direction. I also tried splitting the "vectors" individually and tried to scale them through that, but no luck there.