akosgarai / go_opengl_playground

learn glfw & gl
3 stars 1 forks source link
3d-game-engine 3d-graphics golang opengl shaders

Opengl Playground

Just for fun. How to implement 3d applications in golang. The 3D engine used to be in this repo, but it was difficult to manage everything inside one repository, so i decided to move the engine to a separate repo.

Now this repo contains only the example application that i have written with the engine. The gifs under the examples directory were made with peek application.

About the applications

In the main directory run the following command, after you replaced the directory name with a valid one.

go run examples/directory-name/app.go

Sample gif from outer space

Possible issues ubuntu.

For using this app,the following packagees needs to be installed: libgl1-mesa-dev, xorg-dev, mesa-utils. It some of them missing, run the following command:

sudo apt-get install libgl1-mesa-dev xorg-dev mesa-util

The applications are using the opengl 4.1 package. If your version is same or higher, the appliactions should run without issues. To check your opengl version just run the following command in terminal (based on this):

glxinfo | grep "OpenGL core profile version string"

The output is something like: OpenGL core profile version string: 4.6.0 NVIDIA 440.100.