Qt3D Creating cubical box With real points.
Zee_07 last edited by
Qt3d already has example to create 3d triangular structure through custom mesh and by taking the reference of it I successfully create some other 3d structure but only with floating points. For example Cuboid with these vertex co-ordinates:-
QVector3D v1(+1.0f,-1.0f, 0);
QVector3D v2(+1.0f,+1.0f, 0);
QVector3D v5(+1.0f,-1.0f, 0.2f);
QVector3D v6(+1.0f,+1.0f, 0.2f);
QVector3D v7(-1.0f,+1.0f,0.2f); (Drawn successfully)
but if I want to create same cuboid with some real points like this :
QVector3D v2(612,0, 0);
QVector3D v6(612,0, 2);
then output is a distorted image with same configuration (camera position,screen position,etc ).
These are my vertices sequence to create cuboid in BOTH CASES:
Please help me out to create 3D structure with real points on screen because I have simple 2D structure info like vertices and its thickness only I have to render it in 3D.
And also let me know if you want any other info .
Qt3D being currently a tech preview, I'd recommend posting this question on the interest mailing list You'll find there Qt3D developers/maintainers (this forum is more user oriented)