How to draw more compicated wireframe ?
-
Hi, i have a question i use this code to draw a triangle :
QRectF rect = QRectF(-10, -10, 15, 15); QPainterPath path; path.moveTo(rect.left() + (rect.width() / 2), rect.top()); path.lineTo(rect.bottomLeft()); path.lineTo(rect.bottomRight()); path.lineTo(rect.left() + (rect.width() / 2), rect.top());
and i want to make a more complicated wireframe, i want to draw something like an airplane, do you have a suggestion to me ? How can i use an other program to be more useful and more efficiency?
-
Hi,
Do you want to draw it in 2D or 3D ?
-
This post is deleted! -
@SGaist
Hi, sorry for the delay, i want in 2D, 3D is also a good idea but i think it is very complicated. -
What's currently done for 3D is that you have your objects models stored in defined formats and you load these files at run time to easily create these objects (take a look at Qt3D if interested) You could do something similar for your 2D elements.
Hope it helps
-
@SGaist
I think i did not understand, how can i draw a 2d model with a program? cause programmatically it is very very difficult. -
You need to parse the model and build the instructions to draw it based on that. Or just have an image of what you want to render. Depending on your goal you should take a look at e.g. V-Play
-
do you know http://www.flightradar24.com ? i would like a plane like the planes from this websites.