×
Namespaces

Variants
Actions
(Difference between revisions)

Qt3D

From Nokia Developer Wiki
Jump to: navigation, search
teemup (Talk | contribs)
(Teemup -)
hamishwillee (Talk | contribs)
m (Text replace - "Category:MeeGo" to "Category:MeeGo Harmattan")
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
[[Category:Qt]][[Category:Symbian]][[Category:MeeGo]]
+
[[Category:Qt]][[Category:Symbian]][[Category:MeeGo Harmattan]][[Category:3D]]
Qt3D is a set of extension classes for the Qt OpenGL module to enhance the use of OpenGL in Qt 4.7 and higher.
+
{{Abstract|This article provides an overview of Qt3D, a set of extension classes for the Qt OpenGL module to enhance the use of OpenGL in Qt 4.7 and higher.}}
  
Currently Qt3D is in preview state and might not be suitable for professional use.
+
{{ArticleMetaData <!-- v1.2 -->
With Qt3D it is easy to create 3D scenes and games with both C++ and QML.
+
|sourcecode= <!-- Link to example source code e.g. [[Media:The Code Example ZIP.zip]] -->
Read more about Qt3D from http://doc.qt.nokia.com/qt3d-snapshot/.
+
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
 +
|devices= <!-- Devices tested against - e.g. ''devices=Nokia 6131 NFC, Nokia C7-00'') -->
 +
|sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Qt SDK 1.1.4]) -->
 +
|platform= <!-- Compatible platforms - e.g. Symbian^1 and later, Qt 4.6 and later -->
 +
|devicecompatability= <!-- Compatible devices e.g.: All* (must have internal GPS) -->
 +
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
 +
|signing= <!-- Signing requirements - empty or one of: Self-Signed, DevCert, Manufacturer -->
 +
|capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. -->
 +
|keywords= <!-- APIs, classes and methods (e.g. QSystemScreenSaver, QList, CBase -->
 +
|language= <!-- Language category code for non-English topics - e.g. Lang-Chinese -->
 +
|translated-by= <!-- [[User:XXXX]] -->
 +
|translated-from-title= <!-- Title only -->
 +
|translated-from-id= <!-- Id of translated revision -->
 +
|review-by= <!-- After re-review: [[User:username]] -->
 +
|review-timestamp= <!-- After re-review: YYYYMMDD -->
 +
|update-by= <!-- After significant update: [[User:username]]-->
 +
|update-timestamp= <!-- After significant update: YYYYMMDD -->
 +
|creationdate= 20111027
 +
|author= [[User:Teemup]]
 +
}}
 +
 
 +
Currently Qt3D is in preview state and might not be suitable for professional use. With Qt3D it is easy to create 3D scenes and games with both C++ and QML. Read more about Qt3D from http://doc.qt.nokia.com/qt3d-snapshot/.
  
 
==Building for desktop==
 
==Building for desktop==
Line 10: Line 31:
  
 
For this you need to do the following steps.   
 
For this you need to do the following steps.   
 
 
#Install latest Qt SDK from http://www.developer.nokia.com/Develop/Qt/
 
#Install latest Qt SDK from http://www.developer.nokia.com/Develop/Qt/
 
#Install Visual C++ 2008 Express Edition with SP1 from http://www.microsoft.com/visualstudio/en-us/products/2008-editions/express (This comes with MSVC toolchain needed to build with the techpreview version of Qt3D).
 
#Install Visual C++ 2008 Express Edition with SP1 from http://www.microsoft.com/visualstudio/en-us/products/2008-editions/express (This comes with MSVC toolchain needed to build with the techpreview version of Qt3D).
Line 19: Line 39:
 
#Open Qt Creator, and go to Tools->Options, and select "Qt4". If you don't have Qt 4.7.4, located in the path you installed in step 3, you have to Add it manually. Locate the c:\qt\4.7.4\bin\qmake.exe
 
#Open Qt Creator, and go to Tools->Options, and select "Qt4". If you don't have Qt 4.7.4, located in the path you installed in step 3, you have to Add it manually. Locate the c:\qt\4.7.4\bin\qmake.exe
 
#Load up the example .pro file. Select "Desktop" as target.
 
#Load up the example .pro file. Select "Desktop" as target.
#Verify in Project settings that the "Qt 4.7.4" is selected 10. Hit "Run".
+
#Verify in Project settings that the "Qt 4.7.4" is selected 10. Hit "Run".
  
  
 
==Further reading==
 
==Further reading==
 
Spaceblok game example in Developer Nokia Projects was made utilizing Qt3D. You can read more about Qt3D and download the source code from http://projects.developer.nokia.com/spaceblokqt/wiki.
 
Spaceblok game example in Developer Nokia Projects was made utilizing Qt3D. You can read more about Qt3D and download the source code from http://projects.developer.nokia.com/spaceblokqt/wiki.

Revision as of 13:57, 13 June 2012

This article provides an overview of Qt3D, a set of extension classes for the Qt OpenGL module to enhance the use of OpenGL in Qt 4.7 and higher.

Article Metadata
Compatibility
Platform(s):
Symbian
Article
Created: teemup (27 Oct 2011)
Last edited: hamishwillee (13 Jun 2012)

Currently Qt3D is in preview state and might not be suitable for professional use. With Qt3D it is easy to create 3D scenes and games with both C++ and QML. Read more about Qt3D from http://doc.qt.nokia.com/qt3d-snapshot/.

Building for desktop

It is possible to test out the technology though. Easiest way to test out the possibilities is building example projects for Desktop.

For this you need to do the following steps.

  1. Install latest Qt SDK from http://www.developer.nokia.com/Develop/Qt/
  2. Install Visual C++ 2008 Express Edition with SP1 from http://www.microsoft.com/visualstudio/en-us/products/2008-editions/express (This comes with MSVC toolchain needed to build with the techpreview version of Qt3D).
  3. Install Qt for Open Source C++ development on Windows (VS2008) from http://qt.nokia.com/downloads/windows-cpp-vs2008 Install it to location that you will remember (default is mostly good).
  4. Install latest Qt3D desktop build from FTP: ftp://ftp.trolltech.com/qt3d/win/
  5. Restart your computer
  6. Browse to C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ in your computer and run vcvarsall.bat This sets environment variables to point to VS2008.
  7. Open Qt Creator, and go to Tools->Options, and select "Qt4". If you don't have Qt 4.7.4, located in the path you installed in step 3, you have to Add it manually. Locate the c:\qt\4.7.4\bin\qmake.exe
  8. Load up the example .pro file. Select "Desktop" as target.
  9. Verify in Project settings that the "Qt 4.7.4" is selected 10. Hit "Run".


Further reading

Spaceblok game example in Developer Nokia Projects was made utilizing Qt3D. You can read more about Qt3D and download the source code from http://projects.developer.nokia.com/spaceblokqt/wiki.

85 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×