Commit graph

8 commits

Author SHA1 Message Date
Yann Lanthony
cc4a24f5f3 [ui] 3D Viewer: Alembic support
* optional and only available if AlembicEntity QML plugin is in QML import path
* 3D viewer can load a 3D model and an Alembic file at the same time
* add contextual menu options to unload model/Alembic
2018-01-09 18:58:27 +01:00
Yann Lanthony
b8f61bf033 [ui] display output 3D files when double clicking on a node
* iterate over output attributes to find an "obj" file
* make default material brighter
2018-01-05 12:14:32 +01:00
Yann Lanthony
8d1d3fcba8 [ui] Viewer3D: minor clean
fix whitespaces/indentation/old comments
2017-12-14 19:17:37 +01:00
Yann Lanthony
2b8fc5bde2 [ui] Viewer3D: models textures can now be toggled
* remove DiffuseMapMaterial automatically created by the SceneLoader
* use MaterialSwitchers to create and dynamically switch materials on loaded Entities
* add a "Textures" checkbox to perform the toggle
2017-12-12 19:21:54 +01:00
Yann Lanthony
ecc376e3b6 [ui] Viewer3D: DefaultCameraController + better double click handling
* add DefaultCameraController: 
   * mouse-only navigation
   * keyboard modifiers fallbacks for view re-centering (Ctrl+LeftClick) and fast zooming (Alt+RightClick)
* improved double click handling for 3D Object Picking
  * moved logic/Timer to the CameraController
  * always use TrianglePicking but only activate the ObjectPicker when necessary
2017-12-12 19:10:18 +01:00
Yann Lanthony
762c3b518d [ui] Viewer3D: simplify model manipulation code
use direct properties rotationX/Y/Z and scale instead of manually creating the transformation matrix
2017-12-01 17:45:04 +01:00
Yann Lanthony
03ca18c312 [ui] improve Viewer3D
* add Rotation/Scale controls
* add controls to disable default items (grid/locator)
* add drop support to load external 3D models
* add "View All" action in contextual menu to fit to scene
* automatically propose to load the reconstructed mesh when available
2017-11-28 22:35:20 +01:00
Yann Lanthony
ae28a5477e [ui] add 3D viewer components 2017-11-17 19:02:24 +01:00