Commit graph

114 commits

Author SHA1 Message Date
Yann Lanthony
04973fbf63 [ui] move sfm/mesh unloading to visibility control panel 2018-01-15 15:18:39 +01:00
Yann Lanthony
b9ceb47677 [ui] improve 3D Viewer
* rename Model > Mesh, Alembic > SfM
* add checkbox to control Mesh and SfM visibility
* transparentize visibility checkboxes that do not have a direct impact on the current scene (i.e: 'Textures' when the loaded mesh has no texture)
* move 3D content unloading into a contextual submenu
2018-01-09 20:22:52 +01:00
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
d0a0f4491c [ui] Viewer2D: keep previous image displayed when source changes
* cache last loaded image and display it while the main Image is loading to avoid empty screen
* fix the BusyIndicator by dynamically creating a binding on the running property (Qt bug ?)
2017-12-14 16:39:29 +01:00
Yann Lanthony
3b10fd6200 [ui] MaterialSwitcher: fix diffuseColor property type
vector3d -> color
2017-12-12 20:17:24 +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
298526adcb [ui] improve ImageGallery
* new footer that displays the number of images / allow to change thumbnail size
* smaller sourceSize for thumbnails (faster to load)
* avoid Nan scales in Viewer2D when no image is loaded
2017-11-28 22:35:38 +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
Yann Lanthony
c190f418b7 [ui] wip: add ImageGallery + Viewer2D to main layout
* ImageGallery displays images from CameraInit.viewpoints
* support drag&drop of images
* Viewer2D displays and allows basic manipulation of currently selected image
2017-11-14 18:14:44 +01:00