[Interest] How to combine glLineWidth call with Qt3D in QML?
Björn Breitmeyer
bjoern.breitmeyer at kdab.com
Wed Sep 9 10:17:13 CEST 2015
Hi,
you shouldn't rely on glLineWidth at all. It works only for a very limited
amount of values, if at all. Its a deprecated feature, if you want thick lines
you will need to create a triangle strip.
Best regards
Björn Breitmeyer
--
Björn Breitmeyer | bjoern.breitmeyer at kdab.com | Senior Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Germany: +49-30-521325470, Sweden (HQ): +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
Am Mittwoch, 9. September 2015, 03:39:10 schrieb Bin Chen:
> Hi, Guys,
>
> I am evaluating Qt3D with a new project. I wrote a customised Qt3D object
> for loading and displaying triangle mesh lines in 3d scene and wondering
> where I can put in glLineWidth to change the line width.
> What I am doing is inheriting from Qt3D::QAbstractMesh, and providing a
> Qt3D::QAbstractMeshFunctorPtr to return Qt3D::QMeshData constructed with
> Qt3D::QMeshData::Lines.
> I can’t find anywhere I can specify the line width in any Qt3D QML objects.
>
> I know I can achieve that by shaders but I think using glLineWidth is a
> simpler way to do it.
> Does Qt3D allow me to specify any OpenGL function calls during rendering for
> a particular object?
> Thanks very much!
>
> Bin Chen
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5920 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150909/7b4cf2fd/attachment.bin>
More information about the Interest
mailing list