Hello,
please may I ask whether there is some automatic way of copying template attributes to output geometry when using GLSL Copy POP?
I am working with 25 point attributes which I would like to copy to output primitives. Setting all of this manually on Create Attributes page and then writing custom prim compute shader is quite tedious. (Especially when changing attributes / adding new ones - it is necessary to always go to GLSL Copy POP and do the changes also there.)
I have noticed there is Template Attributes page on standard Copy POP (having exactly this functionality), and I was wondering whether there is some way of doing this kind of thing also with GLSL Copy POP? Thanks.
Hello @monty_python,
Thank you for the feedback, Indeed, there is no way to automate copying other template attributes at the moment with the Copy GLSL POP.
We could add something similar to the Copy POP and do an extra compute shader dispatch. Or more efficient, automate it with a predefined GLSL function, and automate attributes creation. I’ll log it internally for review.
In the mean time, a workaround would be to use a regular Copy POP to easily copy all the template attributes you’re interested in and then use attribute combine POP to add them to the geo from the GLSL Copy POP.
A little bit of extra work would happen (even removing all source geo attributes with a select POP the topology is still copied, but that’s all), but not much. The attribute combine POP doesn’t do any copy when inputs length match.
edit: actually using a convert POP to remove the primitives avoids copying the topology, see updated toe.
See attached.
CopyGLSLOtherAttribs.3.toe (6.0 KB)
Hello @vincentDev,
thank you very much for info.
This sounds great 
Oh, you are right, that workaround is very straight forward and fast - I will use that. Thank you very much.
1 Like