How to dynamically edit mesh edge lines?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I'm needing some help regarding mesh edge lines.
My goal is to be able to view in the viewport the edge lines of all meshes in the scene with two conditions:
1) The farther a mesh is from the origin, the thicker its edge lines should be. Then, I need to export these lines in a black and white texture. I was able to accomplish this with the sfxToon and the Transfer Maps tool, but I need the feature from point 2 as well, which is...
2) The edges being hit by the directional light would be colored white, and the ones not being hit should be colored black. So the same mesh should have edge lines of two colors. I have still not been able to do this, but I'm thinking of exporting yet another texture to save the color info of the edges.
I tried doing these with aiToon shader by connecting a few nodes (remap, ramp, etc.), and despite the width and color parameters changing in the attribute editor, they don't change in the viewport nor in the render view... I somehow think Arnold might not support this kind of dynamic changes in the meshes, but want to confirm it with someone. If there is a better way of doing this, I would appreciate if someone could tell me!
I think this Flair tool does what I need, but it is an extremely expensive purchase for commercial purposes... https://www.youtube.com/watch?v=nkUpS4kAw5Y
Being able to add noise to the edge lines width to give them an artistic paint touch would be a plus.
Thank you in advance for any help!