Scaling control for MTLX Triplanar Projection

   3898   7   1
User Avatar
Member
11 posts
Joined: Jan. 2021
Offline
Hi all,

I'm trying to create a material using Triplanar Projection in Material X (MTLX).

I create an MTLX Standard Surface and pipe in my texture using a MTLX Triplanar Projection node plugged into my Base Input. The same texture is applied to all three planes. All is good. However, I'd like to change the scaling of the tiles but can't seem to figure out how to do it? There doesn't seem to be a Size/Scale in the MTLX Triplanar Projection node to allow me to do that and I'm new to Houdini.

Any ideas?
User Avatar
Staff
469 posts
Joined: May 2019
Offline
Simply multiply the input position by a constant value.
See screenshots + attached .hip example

Attachments:
triplanar_matx.JPG (139.5 KB)
triplanar_matx.hip (171.0 KB)

User Avatar
Member
11 posts
Joined: Jan. 2021
Offline
Worked. Thank you so much!
User Avatar
Member
11 posts
Joined: Jan. 2021
Offline
Hi guys,

From Brian's response above, I know I can use MTLX Position/Multiply to change the tile scaling of a Triplanar texture. Does anything know how I can change the offset? I have the tiles the size I want them by I need to offset them.

Thanks!
User Avatar
Member
1738 posts
Joined: May 2006
Online
Just stick an mtlxadd in.

Attachments:
mtlx_offset.PNG (11.2 KB)

http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
11 posts
Joined: Jan. 2021
Offline
Worked a treat! Thanks so much
User Avatar
Member
1 posts
Joined: Oct. 2020
Offline
nice!!!..thanks a lot...and for rotate the triplanar?
User Avatar
Member
7770 posts
Joined: Sept. 2011
Offline
azes33
nice!!!..thanks a lot...and for rotate the triplanar?

There's a few different ways

chain a mtlxrotate3d for each axis of a euler rotation, or just one if you know the arbitrary axis you want.

mtlxtransformmatrix--3x3 signature is broken for me, but a 4x4 works. It's a pain to set the values from a euler though.

Define a space using a USD Coordys relationship and reference the space on the mtlxposition node.
  • Quick Links