Skip to content

cumus/QT-3D-Model-Viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QT 3D Model Viewer

Authors: Daniel Triviño and Rubén Sardón

What does it do?

The program loads a skyboxes and a sample model by default and dumps them to a scene with a camera the user can move. The way models render can be changed using the menu's tools.

How to load/edit models

Load Model Menu

By default Patrick model is loaded. To add another model to the scene just select a file in the explorer and it will load together with its diffuse and specular texture if has any.

Inspector

All loaded models in the scene have a transform component through wich the model's position, rotation and size can be changed. The model can also toggle its Active check be drawn or discarded in the rendering process.

How to enable / disable the implemented techniques

Shaders Menu

The way the models prints can be changed using the upper "Shaders" panel. From the list of options you can choose wich mode the shader will use to render the model. The 8 first options just draw the imported model data information. The next 2 will render the model either reflecting and refracting the skybox. Refraction index can be set for each model. Selected meshes will be marked using an orange border. Border drawing can be toggled on/off at the same menu. Skyboxes Menu

By deafault, 2 different skyboxes load and it can be toggled wich one shows.

Keyboard Controls

  • WASD: move camera
  • Q/E: move camera down/up
  • Mouse Drag: pan camera
  • Mouse Drag + Alt: orbit selected Model
  • Mouse Wheel: zoom
  • F: focus selected model

Deferred mode light controls

  • R: toggle camera light on/off
  • T: toggle camera light follow/stay
  • C: reset lights (turn all off)
  • Space: drop light at camera position (up to 32 lights including camera's)

Screenshots

Deferred Light Shading Deferred Shader Reflection Reflection Refraction Refraction Borders Draw Borders Secondary Skybox Skybox Vertex Position Position Vertex Normal Normal Vertex Texture Coord Texture Coord Vertex Bitangent Bitangents Vertex Tangents Tangents Depth Depth Linear Depth Linear Depth