In this recipe, we will learn how to render 3D images using Qt 5.
3D canvas in QML
How to do it...
Let's learn how to use a 3D canvas in QML by following this example:
- Let's start this example by creating a new project in Qt Creator. This time around, we will go for Qt Quick Application—Canvas 3D and not the other options that we chose in the previous examples:
- After that, Qt Creator will ask you whether to create a project that is based on the three.js JavaScript library. Check the Create a three.js based application option and press the Next button to proceed:
- Once the project is created, you will notice that there are some JavaScript (.js) files already in to your project's resources. This is...