was working on updating my primitive manipulation using glsl advanced and was looking at the updated Peter sistrum examples. I think there is an error as of Overview.947.toe.
at the start of the for loops should be TDInputVertsStartIndex()
TDInputPrimVertsStartIndex()
Hello @davispolito
Are you referring to /PeterSistrom/extruding_with_fields/extruding_with_fields/glsladv2?
TDInputVertsStartIndex() returns the index of the first input vertex for the current primitive batch. There’s only one input and one primitive type and the dispatch mode is set to Per Primitive Batch. It seems valid to me.
right, but as I understand it TDInputVertsStartIndex()
is actually always just grabbing the first primitives Vert Start Index. If you check out this
manipulateprims.32139.toe (4.9 KB)
example in 32139 which I built from the extruding_with_fields you can see all the faces move independently as expected.
translating that to 32374
manipulateprims.32374.toe (7.7 KB)
you can see that when using TDInputVertsStartIndex()
only one vertex ever changes but when using TDInputPrimVertsStartIndex()
all 4 faces move.
This would appear to be the desired effect in the extruding_with_field example
You’re right! Thanks for pointing out the error. I’ll update the example.
2 Likes