Viewport
Main 3D rendering canvas for real-time scene interaction and visualization
Under Construction
This documentation is currently being developed and will be available soon.
Overview#
The Viewport is the main 3D rendering canvas where you interact with and visualize the scene in real-time. Built with Three.js and React Three Fiber, it features PBR (Physically Based Rendering) with environment reflections, IBL lighting, and smooth orbital camera controls.
3D Rendering#
- Ambient light for base illumination
- Directional light for shadows
- IBL (Image-Based Lighting) using environment.exr
- PBR materials with environment reflections
Mouse Controls#
Camera Navigation#
| Action | Description |
|---|---|
| Right Click + Drag | Rotate camera |
| Middle Mouse + Drag | Pan camera |
| Scroll | Zoom in/out |
| Double Click | Focus on selected object |
Object Manipulation#
| Action | Description |
|---|---|
| Left Click | Select objects |
| Ctrl + Click | Multi-select |
| Delete | Remove selected objects |
Gizmo Controls#
Transform Modes#
| Mode | Description |
|---|---|
| Translate | Move objects in 3D space |
| Rotate | Rotate around axes |
| Scale | Resize objects |
Tip
Hold Shift for snapping transforms to grid for precision. Toggle between Local/World Space coordinate systems.
Drag & Drop#
- Mesh Files: Drop
.obj,.ply,.stlfiles to import - Texture Files: Drop images onto objects for textures
- Objects: Drag from Hierarchy to reposition
Keyboard Shortcuts#
| Shortcut | Action |
|---|---|
Delete | Delete selected objects |
Ctrl + D | Duplicate selected |
F | Focus on selected |
G | Toggle grid |
W | Translate gizmo |
E | Rotate gizmo |
R | Scale gizmo |
Space | Toggle gizmo |
Ctrl + Z | Undo |
Ctrl + Y | Redo |
Context Menu#
Right-click in the viewport to access:
- Create primitive objects
- Duplicate selected
- Delete selected
- Focus on object
- Reset camera