Hi,
I want to use xyzdist vop in shader. It can't work. Am I wrong?
Thanks!
xyzdist vop in shader
2907 4 1-
- jerry7
- Member
- 680 posts
- Joined: 11月 2013
- オフライン
-
- Konstantin Magnus
- Member
- 721 posts
- Joined: 9月 2013
- オンライン
I am also trying to measure the distance from a shading surface to another object (in this case a wireframe).
In the documentation it says xyzdist can read internal paths like op
obj/etc
It only seems to output the max search distance, though. Any ideas?
Additional question: Whats the most straight forward way to create a custom wireframe shader?
In the documentation it says xyzdist can read internal paths like op
obj/etcIt only seems to output the max search distance, though. Any ideas?
Additional question: Whats the most straight forward way to create a custom wireframe shader?
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
-
- tamte
- Member
- 9417 posts
- Joined: 7月 2007
- オフライン
op: syntax in Mantra can only point to geometry that is defined in IFD
that is any SOP node with render flag that is included in Mantra's objects
of course to make it not renderable you can clear vm_rendervisibility field
so in your specific case you need to create new object that will hold your wireframe geo
see example
to the other question to render just wireframe you can try using Wren ROP, it offers some basic control, but nothing fancy, depends on what you need it for
that is any SOP node with render flag that is included in Mantra's objects
of course to make it not renderable you can clear vm_rendervisibility field
so in your specific case you need to create new object that will hold your wireframe geo
see example
to the other question to render just wireframe you can try using Wren ROP, it offers some basic control, but nothing fancy, depends on what you need it for
Tomas Slancik
CG Supervisor
Framestore, NY
CG Supervisor
Framestore, NY
-
- subscriptions
- Member
- 31 posts
- Joined: 10月 2017
- オフライン
-
- jsmack
- Member
- 8184 posts
- Joined: 9月 2011
- オフライン
-
- Quick Links


