I have a subdivided mesh cube, so I need to decrease its freestyle lines' alpha in one direction of its Object Space, for example, along cube X. I've used the 'Distance from Object' freestyle modifier, but it operates with XYZ distances. In my case, I need to control the lines' opacity only in one direction.
$\begingroup$
$\endgroup$
2
-
$\begingroup$ 'One Direction' in what space? The cube's space? World space? UV space? $\endgroup$– Robin Betts ♦Commented Apr 17 at 8:10
-
$\begingroup$ @RobinBetts The cube's space, and thank you for your reply $\endgroup$– AlecDevCommented Apr 17 at 22:32
Add a comment
|
1 Answer
$\begingroup$
$\endgroup$
2
For simplicity, you could modify stroke alpha with Distance from Object , and parent the target object to the cube. The further away the target is from the cube, the closer the mapping will be to orthographic..
Here, an Empty is parented to the cube 10m away along the cube's X from its near face, and the Min and Max set to 10m and 16m, via the optional curve-mapping in the modifier.
-
1$\begingroup$ Yes, I moved the target away from the cube as you suggested, and it works perfectly! Thank you. $\endgroup$– AlecDevCommented Apr 18 at 17:59
-
1$\begingroup$ Hi, @AlecDev! You could vary by material, too, I think, but that would mean setting up separate passes.. We might have missed something better.. $\endgroup$– Robin Betts ♦Commented Apr 18 at 18:18