Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/go4orward/gowebgl

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/go4orward/gowebgl

  • v0.0.0-20210512114821-be50a85863a8
  • Source
  • Go
  • Socket score

Version published
Created
Source

GoWebGL : Interactive Graphics in Go

Interactive 2D & 3D Graphics Library using Go + WebAssembly + WebGL

=========================================================
THIS PROJECT WAS MOVED TO A NEW REPOSITORY GIGL (May 9, 2021),
WHICH ALREADY INCLUDES SIGNIFICANT IMPROVEMENTS.
NO FURTHER DEVELOPMENT WILL BE MADE TO THIS PROJECT. =========================================================

How to Build & Run

Simplest example:   (for explaining how WebGL works)

$ make                  # source : 'webgl1st_example.go'
$ ./wasm_test_server    # open your browser, and visit http://localhost:8080

webgl1st_example result

2D example:   (with animation & user interactions)

$ make 2d               # source : 'webgl2d_example.go'
$ ./wasm_test_server    # open your browser, and visit http://localhost:8080
or
$ make 2dui             # source : 'webgl2dui_example.go'
$ ./wasm_test_server    # open your browser, and visit http://localhost:8080

webgl2d_example result

3D example:   (with perspective & orthographic camera)

$ make 3d               # source : 'webgl3d_example.go'
$ ./wasm_test_server    # open your browser, and visit http://localhost:8080

webgl3d_example result

Globe example:   (with perspective & orthographic camera)

$ make globe            # source : 'webglglobe_example.go'
$ ./wasm_test_server    # open your browser, and visit http://localhost:8080

webglglobe_example result

ToDo List

  • overlay (marker/label) layers for Globe
  • user selection using collision detection with a ray from camera
  • graticules on the globe
  • coast lines and country border lines on the world map
  • support for world map projections (Mercator, Stereographic, etc)
  • 'webglgalaxy' maybe? :)

Thanks

I hope this project can help many people to learn WebGL and to build awesome 2D & 3D graphics applications.
Many thanks to Richard Musiol, for his vision and contributions for GopherJS and WebAssembly for Go. If you hava a feedback or suggestion, contact go4orward.

Resources taken from:

FAQs

Package last updated on 12 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc