{"id":238,"date":"2015-12-31T02:14:50","date_gmt":"2015-12-31T07:14:50","guid":{"rendered":"http:\/\/eastfist.com\/qt_tutorials\/?p=238"},"modified":"2017-08-26T03:31:14","modified_gmt":"2017-08-26T09:31:14","slug":"real-3d-in-qt-4-8-7-without-third-party-3d-library-opengldirectxqtransform","status":"publish","type":"post","link":"https:\/\/eastfist.com\/qt_tutorials\/real-3d-in-qt-4-8-7-without-third-party-3d-library-opengldirectxqtransform\/","title":{"rendered":"Real 3D in Qt 4.8.7 Without Third Party 3D Library OpenGL\/DirectX\/QTransform"},"content":{"rendered":"<p><iframe loading=\"lazy\" title=\"Real 3D in Qt 4.8.7 No DirectX No OpenGL\" width=\"525\" height=\"295\" src=\"https:\/\/www.youtube.com\/embed\/vgbyegFJQg8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>Here&#8217;s a demo of &#8220;real&#8221; 3D in pure Qt. It doesn&#8217;t rely on third party 3D libraries like OpenGL, DirectX, or even Qt&#8217;s own convenience class QTransform. It&#8217;s actually very simple. It uses a very simple trigonometry function for rotating a point you can get off of Wikipedia. Everything else has to be calculated manually, but it works. The geometry is accurate. But so far this is only a work-in-progress and I haven&#8217;t quite figured out the texture mapping. But the fact that the faces can have textures mapped to them, yes with QTransform, means it&#8217;s ready for Mode 7 if you just want to put up single plane &#8220;sprites&#8221; as obstacles in an F-Zero or Mario Kart-like game. But I want to have full 3D boxes or buildings or platforms.<\/p>\n<p>So we&#8217;ll see. It&#8217;s all a learning process for me.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a demo of &#8220;real&#8221; 3D in pure Qt. It doesn&#8217;t rely on third party 3D libraries like OpenGL, DirectX, or even Qt&#8217;s own convenience class QTransform. It&#8217;s actually very simple. It uses a very simple trigonometry function for rotating a point you can get off of Wikipedia. Everything else has to be calculated manually, &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/eastfist.com\/qt_tutorials\/real-3d-in-qt-4-8-7-without-third-party-3d-library-opengldirectxqtransform\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Real 3D in Qt 4.8.7 Without Third Party 3D Library OpenGL\/DirectX\/QTransform&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-238","post","type-post","status-publish","format-standard","hentry","category-qt-2"],"_links":{"self":[{"href":"https:\/\/eastfist.com\/qt_tutorials\/wp-json\/wp\/v2\/posts\/238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eastfist.com\/qt_tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eastfist.com\/qt_tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eastfist.com\/qt_tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eastfist.com\/qt_tutorials\/wp-json\/wp\/v2\/comments?post=238"}],"version-history":[{"count":1,"href":"https:\/\/eastfist.com\/qt_tutorials\/wp-json\/wp\/v2\/posts\/238\/revisions"}],"predecessor-version":[{"id":239,"href":"https:\/\/eastfist.com\/qt_tutorials\/wp-json\/wp\/v2\/posts\/238\/revisions\/239"}],"wp:attachment":[{"href":"https:\/\/eastfist.com\/qt_tutorials\/wp-json\/wp\/v2\/media?parent=238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eastfist.com\/qt_tutorials\/wp-json\/wp\/v2\/categories?post=238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eastfist.com\/qt_tutorials\/wp-json\/wp\/v2\/tags?post=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}