MidoriYakumo / learnopengl-qt3d

QML/Qt3D version of http://learnopengl.com samples
251 stars 63 forks source link
learnopengl qml qt3d

learnopengl-qt3d

Qt3D version of LearnOpenGL examples, currently works with Qt5.9. I created this repo aiming to understand how Qt3D works.

Pure QML version, use qmlscene to run with default OpenGL Context:

Try it with Qt5.9+:

    qmlscene -I https://raw.githubusercontent.com/MidoriYakumo/qml-virtualkey/master/ https://raw.githubusercontent.com/MidoriYakumo/learnopengl-qt3d/master/qml/app.qml

Compiled version, context set to GL4.3(Desktop)/GLES3.0(Mobile):

How to launch

learnopengl-qt3d can be launched from either qmlscene or compiled binary file.

Main qml file for qmlscene/binary/QmlCreator:

With one keyword as arguments you can specify the sample to be launched:

Notes

Content

Getting started

  1. Hello Window : works
  2. Hello Triangle : works
  3. Shaders : works
  4. Texture : works
  5. Transformations : works
  6. Coordinate Systems : works
  7. Camera : works

Lighting

  1. Colors : works
  2. Basic Lighting : works
  3. Materials : works
  4. Lighting-maps : works
  5. Light-casters : works