GithubHelp home page GithubHelp logo

shilinwong / learnopengl-qt3d Goto Github PK

View Code? Open in Web Editor NEW

This project forked from midoriyakumo/learnopengl-qt3d

0.0 1.0 0.0 11.63 MB

QML/Qt3D version of http://learnopengl.com samples

QML 68.15% QMake 0.70% C++ 0.48% GLSL 24.00% JavaScript 6.48% Shell 0.09% Batchfile 0.10%

learnopengl-qt3d's Introduction

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:

  • app.qml: main window with line chart FPS display

  • main.qml: QuickItem as root + text FPS display

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

  • qmlscene skybox app.qml
  • ./learnopengl-qt3d geometry

Notes

  • Some large assets from the website is downloaded by qmake script(*nix only), connection is required at the first build or after updated. Use CONFIG += no_assets to skip and enable local filesystem routing(may lead to crash). See main.cpp, assets.pri, Resources.qml for details.

  • leanopengl uses a little different lighting model from Qt3D default model, to rendering models for a better result, please slightly modify the ka, kd in mtl files

  • run qmltestrunner under qml/tests to perform unit tests or to generate screenshots.

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

learnopengl-qt3d's People

Contributors

midoriyakumo avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.