https://github.com/v3ssel/simple3dviewer
A simple program for viewing wireframe models from .obj files
https://github.com/v3ssel/simple3dviewer
3d-graphics c cmake cpp macos opengl qt
Last synced: 3 months ago
JSON representation
A simple program for viewing wireframe models from .obj files
- Host: GitHub
- URL: https://github.com/v3ssel/simple3dviewer
- Owner: v3ssel
- License: mit
- Created: 2022-10-15T17:38:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-24T18:49:07.000Z (over 3 years ago)
- Last Synced: 2025-06-22T08:46:45.874Z (about 1 year ago)
- Topics: 3d-graphics, c, cmake, cpp, macos, opengl, qt
- Language: C
- Homepage:
- Size: 1.03 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple 3DViewer
## Info
A simple program for viewing wireframe models from .obj files
Created with Qt + OpenGL, QtGifImage is taken from [here](https://github.com/dbzhang800/QtGifImage)
## Dependencies
1. Qt6.2 + QtOpenGLWidgets + OpenGL
2. gcc + g++
3. Make and CMake
## Install
1. Download the repository
2. cd to src folder
3. Type `make install`
4. Go to Desktop and run program **3DViewer**
## Uninstall
Go to src folder and type `make uninstall` or just delete app icon
## Usage
* To open a *.obj file, go to File -> Open or Press **⌘1** and open the desired file.
* To close a file, go to the tab File -> Close or Press **⌘2** and the object will be deleted.
* To see information about the object, you need to go to the tab File -> Info or Press **I**, after which the information about the current object will be displayed.
* To hide the side window, go to Settings -> Hide/Show or Press **⌘3**, then the side window will be closed or opened if it was closed.
* To change the projection type, go to Settings -> (Press **O**)Orthographic/Perspective(Press **P**), then the projection type will be changed.
* To make a screenshot, go to the Create -> Image tab, then select the format of the screenshot and save it.
* To make a gif-animation, you need to go to the tab Create -> GIF, after which the main window shows a red frame, indicating that the recording is in progress. After 5 seconds, the recording will be saved(10fps).
* To set the color of the lines, click the **Set Lines Color** button and select the desired color.
* To change the thickness of the lines, move the **Line Width** slider to the right to increase and to the left to decrease.
* To draw a line with dashed lines, click the **Dashed** button, and to draw a solid line, click the **Solid** button.
* To change the color of the vertices, click the **Set Vertex Color** button and select the desired color.
* To change the size of the vertices, slide the **Vertex Size** slider to the right to increase and to the left to decrease.
* To remove the display of vertices, click the **None** button.
* To draw the vertices as a circle, click the **Circle** button.
* To draw the vertices as a square, click the **Square** button.
* To rotate the figure relative to the X, Y, Z axes, hover over the desired coordinate in the **Rotate** section and change it with the mouse wheel.
* To move the figure relative to the X, Y, Z axes, hover over the desired coordinate in the **Move** section and change it with the mouse wheel.
* To resize the shape, move the **Scale** slider to the right to zoom in, or hover the mouse over the spinbox to zoom out.
* To change the background color, click the **Set Background Color** button, select the desired color, and then the background will change.

## Created and tested on MacOS by v3ssel and crackedg in 2022