Issue with VertexDraw #893
-
Hi all, I found an issue, when I want to draw a line strip with VertexDraw. My idea was to get rid of the indices vector, but it doesn't work. With a VertexIndexDraw the result is as expected. This is my code (working config):
Expected result is: Did I miss a setting? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Looks like it. You'll kick yourself, but rather than provide the answer directly I'll link to the relevant code: https://github.com/vsg-dev/VulkanSceneGraph/blob/master/include/vsg/nodes/VertexDraw.h#L36 Note all the = 0 defaults, some are fine as 0, others are not... :-) |
Beta Was this translation helpful? Give feedback.
-
Bingo! vd->vertexCount = numPoints; does the job. Thanks |
Beta Was this translation helpful? Give feedback.
Bingo! vd->vertexCount = numPoints; does the job.
Thanks