Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.56 KB

README.md

File metadata and controls

41 lines (26 loc) · 1.56 KB

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

  • Dependencies are handled with gomod.
  • How to run the example apps?

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.

  • Missing dependencies

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
  • Opengl version mismatch.

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.