What the difference between $VTX and @vtxnum?

   3178   2   0
User Avatar
Member
45 posts
Joined: 2月 2008
Offline
What the difference between $VTX and @vtxnum?
Using $VTX with the point-old node gives 0,1,2,3,0,1,2,3,0,1,2,3 etc
Using @vtxnum in the wrangle node gives 0,1,2,3,4,5,6,7,8,9,10,11…
Edited by envil - 2019年2月18日 06:03:54
User Avatar
Member
8839 posts
Joined: 7月 2007
Offline
$VTX used to return vertex number within a primitive
@vtxnum returns linear vertex number across the whole geo

to get the same result as with $VTX you can use vertexprimindex(0, @vtxnum);
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
45 posts
Joined: 2月 2008
Offline
Thank you, Now it is clear!
  • Quick Links