Qt3D Creating cubical box With real points.
-
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 v0(-1.0f,-1.0f,0);
QVector3D v1(+1.0f,-1.0f, 0);
QVector3D v2(+1.0f,+1.0f, 0);
QVector3D v3(-1.0f,+1.0f,0);QVector3D v4(-1.0f,-1.0f,0.2f);
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 v0(0,0,0);
QVector3D v1(612,-612,0);
QVector3D v2(612,0, 0);
QVector3D v3(0,-612,0);
QVector3D v4(0,0,2);
QVector3D v5(612,-612,2);
QVector3D v6(612,0, 2);
QVector3D v7(0,-612,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:
Bottom
0,2,1
2,0,3
Front
4,5,6
4,6,7
left
3,0,4
7,3,4
right
5,1,2
5,2,6
up
2,3,7
6,2,7
down
4,0,1
4,1,5Please 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 .Ty.
-
Hi,
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)