[Interest] Qt3D GeometryRenderer TriangleStrip

Sean Harmer sh at theharmers.co.uk
Mon Aug 27 12:56:26 CEST 2018


On 27/08/2018 11:18, Volker Enderlein wrote:
> Am 27/08/2018 um 11:31 schrieb Sean Harmer:
>> On 27/08/2018 07:31, Volker Enderlein wrote:
>>> Hi,
>>>
>>>
>>> does the Qt3D GeometryRenderer class support TriangleStrip 
>>> primitives with restartIndexValue separated Strips?
>>
>> Yes. Set the primitiveType property to LineStrip and you can specify 
>> the restart index value with 
>> https://doc.qt.io/qt-5/qt3drender-qgeometryrenderer.html#restartIndexValue-prop.
>>
>> Cheers,
>>
>> Sean
>>
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>
> Thanks, Shawn.
>
>
> Rereading my question, I think I need to clarify what I'm after.
>
> Is it possible for a single GeometryRenderer with primitiveType 
> `TriangleStrip` to contain multiple indexed TriangleStrips where the 
> indexArray entries of the strips are separated by a 
> `restartIndexValue`? When testing this, I saw some rendering artifacts 
> with Qt 5.10.0.
>
> Apparently (according to my tests) a GeometryRenderer with 
> primitiveType ' Triangles'  does support this, but is it supported for 
> primitiveType `TriangleStrip` too?

It should work, yes. If you have a test case where this doesn't work as 
expected, please file a bug report in jira with the test case.

Cheers,

Sean




More information about the Interest mailing list