Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Canvas3D with WebGL, three.js and physics engine e.g. Physijs, Cannon

Canvas3D with WebGL, three.js and physics engine e.g. Physijs, Cannon

Scheduled Pinned Locked Moved QML and Qt Quick
canvas3dphysicsengineammophysijsthree.jscannon
2 Posts 2 Posters 1.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dante
    wrote on 27 Jul 2015, 12:57 last edited by
    #1

    Hi,

    is it possible to use any physics engine e.g. Physijs, ammo.js, Cannon.js with Canvas3D and WebGL in QML project. Does Qt support this. Does anyone try to do this? I was looking for some example program, but I did not find anything. Maybe someone did this.

    P 1 Reply Last reply 28 Jul 2015, 10:31
    0
    • D dante
      27 Jul 2015, 12:57

      Hi,

      is it possible to use any physics engine e.g. Physijs, ammo.js, Cannon.js with Canvas3D and WebGL in QML project. Does Qt support this. Does anyone try to do this? I was looking for some example program, but I did not find anything. Maybe someone did this.

      P Offline
      P Offline
      p3c0
      Moderators
      wrote on 28 Jul 2015, 10:31 last edited by
      #2

      @dante I doubt that it will work readily with QML. Javascript support in QML is very restricted as compared to that of Web-Browsers. It lacks of certain objects which are mostly used in these web-browsers supported Javascripts.
      You can find more info here:
      http://doc.qt.io/qt-5/qtqml-javascript-hostenvironment.html
      http://doc.qt.io/qt-5/qtqml-javascript-expressions.html
      http://doc.qt.io/qt-5/qtqml-javascript-hostenvironment.html#javascript-environment-restrictions
      You will need to create you own port of it without those restrictions.
      For eg. here is a blog post for porting-three-js-code-to-canvas3d. Something similar will be needed for the rest too.

      157

      1 Reply Last reply
      2

      1/2

      27 Jul 2015, 12:57

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved