Commit graph

4 commits

Author SHA1 Message Date
Yann Lanthony
74e80e70b5 [ui][3d] introduce Wireframe render mode
* add WireframeMaterial from Qt 3D example
* MaterialSwitcher now has 3 render modes: Solid, Wireframe, Textured
* Remove NodeInstantiator; always create the material and modify entity's components (avoid rendering issues when switching between materials)
* use DiffuseSpecularMaterial for Solid and Textured mode
* create a MaterialSwitcher for all types of meshes (with/without textures)
* add a render settings panel as part of 3D viewport overlay and remove "Textures" entry from outliner
2018-03-23 11:17:10 +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
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