Marcel Weiler
2014-06-04 08:57:57 UTC
Hi all,
for instanced rendering I want to give the instanced Geometry core an
attribute that represents a per-instance position offset. I know how to
set the usual indices and positions, but how do I add custom vertex
attributes?
I tried setting the property to binding location 1 using Snippet
geo->setProperty(offsets, 1) but this causes the following warning:
Snippet
WARNING: GeoVectorProperty::activate: Non-Generic attribute nr. 1 unknown!
and this approach does not work (the instances are not rendered with an
offset).
I also tried misusing the colors property, but even though I set its
divisor to 1 it seemed to be advancing per vertex, not per instance.
Am I even on the right track here? Or do I have to set some properties
in the GeoInstancer?
Kind regards,
Marcel
---
Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz ist aktiv.
http://www.avast.com
for instanced rendering I want to give the instanced Geometry core an
attribute that represents a per-instance position offset. I know how to
set the usual indices and positions, but how do I add custom vertex
attributes?
I tried setting the property to binding location 1 using Snippet
geo->setProperty(offsets, 1) but this causes the following warning:
Snippet
WARNING: GeoVectorProperty::activate: Non-Generic attribute nr. 1 unknown!
and this approach does not work (the instances are not rendered with an
offset).
I also tried misusing the colors property, but even though I set its
divisor to 1 it seemed to be advancing per vertex, not per instance.
Am I even on the right track here? Or do I have to set some properties
in the GeoInstancer?
Kind regards,
Marcel
---
Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz ist aktiv.
http://www.avast.com