https://github.com/ghrik/cube3d
3D rendering script via OpenGL
https://github.com/ghrik/cube3d
3d-rendering golang opengl
Last synced: about 2 months ago
JSON representation
3D rendering script via OpenGL
- Host: GitHub
- URL: https://github.com/ghrik/cube3d
- Owner: GHRik
- Created: 2020-02-12T11:16:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-12T12:20:21.000Z (over 6 years ago)
- Last Synced: 2024-04-16T19:36:08.583Z (about 2 years ago)
- Topics: 3d-rendering, golang, opengl
- Language: Go
- Homepage:
- Size: 3.47 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cube 3D( via openGL for GoLang )
This script rendering via [openGL](https://www.opengl.org/) / [OpenGL for GoLang](https://github.com/go-gl) rotaiting 3D Cube
## Quick Start
```sh
git clone https://github.com/GHRik/Cube3D.git
cd Cube3D
go run cube.go
```
## Requirements
To properly run script you have to gave instaled and **ready to use**:
* Gcc compiler ( for example [MiniGW 64](http://mingw-w64.org/doku.php/download) )
* [Golang for windows](https://golang.org/doc/install)
After install GoLang you have to **go get** a module:
```sh
go get github.com/go-gl/gl/v4.1-core/gl
go get github.com/go-gl/glfw/v3.3/glfw
go get github.com/go-gl/mathgl/mgl32
```
## Dir structure

* cube.go - file with script
* demo_vide - directory with video which is on youtube
* images - directory with image necessary to use in README
* square.png - texture which is on rotaiting cube)
## Demo vid
[](https://youtu.be/mngblAU54EA)
## Reference links
* [OpenGL](https://www.opengl.org/)
* [GoLang openGL](https://github.com/go-gl)
* [GoLang GLFW](https://github.com/go-gl/glfw)
* [GoLang Math](https://github.com/go-gl/mathgl)
* [GoLang Glow](https://github.com/go-gl/glow)
* [GoLang Windows](https://golang.org/doc/install)
* [MiniGW 64bit Windows](http://mingw-w64.org/doku.php/download)
* [Gcc, the GNU Compiler](https://gcc.gnu.org/)
* [GoLang doc](https://golang.org/doc/)