Hey guys.
I have gradient mask on a grid that's is perfectly aligned in z. How do I achieve the same mask when the geo is not aligned to any axis?
Thanks.
gradient mask on rotated geo
1313 5 0- nelpiper73
- Member
- 66 posts
- Joined: May 2017
- Offline
- tamte
- Member
- 8551 posts
- Joined: July 2007
- Offline
- align it to the axis, compute your mask and copy back to original
or
- align it to axis, store bbox or relbbox() as an attrib and copy back, then you can make as many masks as you want based on that attrib
to align you can either:
- transform manually
or
- compute transform based on aligned geo using extract transform
or
- compute transform based on 3 points
or
- if your source is packed and has packedfulltransform intrinsic, that may contain transform you need
or
- if your geo has v@rest thats aligned you can temporarily restore it
or
- align it to axis, store bbox or relbbox() as an attrib and copy back, then you can make as many masks as you want based on that attrib
to align you can either:
- transform manually
or
- compute transform based on aligned geo using extract transform
or
- compute transform based on 3 points
or
- if your source is packed and has packedfulltransform intrinsic, that may contain transform you need
or
- if your geo has v@rest thats aligned you can temporarily restore it
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- tamte
- Member
- 8551 posts
- Joined: July 2007
- Offline
if you don't need it to be procedurally fitted to bbox or relbbox along that axis you dont need to align first and can maybe just use
- Mask From Target
Target: Plane
and align the Direction and Origin
set Radius and tweak Ramp
or
- Attribute Adjust Color
Pattern Type: Line
and tweak start and end position or viewport handles and ramp
- Mask From Target
Target: Plane
and align the Direction and Origin
set Radius and tweak Ramp
or
- Attribute Adjust Color
Pattern Type: Line
and tweak start and end position or viewport handles and ramp
Edited by tamte - Feb. 3, 2023 00:50:12
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- nelpiper73
- Member
- 66 posts
- Joined: May 2017
- Offline
- tamte
- Member
- 8551 posts
- Joined: July 2007
- Offline
nelpiper73if you want to use bounding box functions yes
So it's better to transform things to origin, do stuff and translate back into place?
but also in general working on axis aligned rest geo may be much easier and intuitive
then either transform back or copy attributes
if it's packed and the rest transform is axis aligned, you can also just Unpack without applying transform modify and Inject back as a new geo
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- nelpiper73
- Member
- 66 posts
- Joined: May 2017
- Offline
-
- Quick Links