Hi I have a fractured geometry with a bunch of pieces. I want to apply a triplanar material with random offset per piece. However there is no offset input for the vray triplanar node like in other render engines where I can plug an ID or something. I see that there is a random mode for User attribute. However I am unable to get that to work at all. Is there a solution in Vray to do this? thanks
Announcement
Collapse
No announcement yet.
random offset in triplanar
Collapse
X
-
Hi Adrian,
The Triplanar node has the option to make random offsets built into it, and those can be driven by a custom attribute if necessary.
https://docs.chaosgroup.com/display/...-Ray+Triplanar
Check the type of randomization that you need and then you can set the "Random Mode" to "user attribute".
Best,
David.David Anastácio // Accenture Song - VFX
https://www.accenture.com/us-en/serv...visual-effects
-
Hi again Adrian,
It appears (I tested in VFH 4.3 with latest stable build) that this is not working as expected like you just pointed out.
Gosho.Genchev, I think this was flagged as being an issue with the triplanar some time ago but I think it was forgotten or assumed to be fixed already, probably needs a look at.
Best,
David.David Anastácio // Accenture Song - VFX
https://www.accenture.com/us-en/serv...visual-effects
Comment
-
Hey, is it a lot of offsets that you are trying to get? If you're ok with just a few, you could at least for now use a multi I'd texture that cycles through different triplanar projections that have different offsets
Alternatively you could also try 2 more approaches (this is just from the top of my mind, could test it out tomorrow);
- use the attribute to offset the U or V coordinates in the image bode (this needs to be tested for when the model has no uvs).
-i noticed that the projection node has a triplanar mode, so in theory we could just offset the "uvw" data/output with a simple math operation using your attribute.
Best,
David.David Anastácio // Accenture Song - VFX
https://www.accenture.com/us-en/serv...visual-effects
- Likes 1
Comment
-
Originally posted by adrian_camarena View PostPlugging in my user ID attribute into a random, and then into the offset u, and offset v of the image file seems to work okay for what I need. ThanksDavid Anastácio // Accenture Song - VFX
https://www.accenture.com/us-en/serv...visual-effects
- Likes 1
Comment
Comment