How to create basic custom 3D triangle with Qt 3D?
-
Hello everyone. It is 2021 and I thought maybe there is more documentation and examples for Qt 3D, but looks like nothing has changed. Anyway, I plan to start digging through this black box. Does anyone know how to create basic custom 3D triangle or plane with C++/Python ? That would help me quite a bit
-
Hi
You probably know more about the module than me but i was wondering if you mean like this ?
https://forum.qt.io/topic/69701/how-to-render-a-triangle-using-qt3d
(last post) -
@Rayterex said in How to create basic custom 3D triangle with Qt 3D?:
Does anyone know how to create basic custom 3D triangle or plane with C++/Python ?
Yes. Fill an
QAttribute
with the vertices, add it to aQGeometry
instance (typically it's your own subclass). Set the geometry you created to aQGeometryRenderer
instance, which you can use as a component for anQEntity
.