Giter Club home page Giter Club logo

examples's People

Contributors

mewmew avatar slimsag avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

examples's Issues

Resolve asset paths using $GOPATH

Many are complaining about examples having to be run inside the $GOPATH directory. We could simply resolve them relative to the system's $GOPATH environment variable and it would solve a lot of these complaints.

Only use gfx.New methods.

We should use gfx.NewMesh, gfx.NewTexture, etc instead of allocating them ourselves. This is the best practice.

azul3d tutorial

Is there any tutorial for this 3D engine available in order to become better familiar with all its capabilities?

Regards

Clean up shaders

We declare shaders in the examples as []byte in the Go source code -- which is semi confusing for people reading over it (mixing between Go->GLSL->Go etc). We should instead declare these in seperate .vert and .frag files in the example's directory (and comment them well).

See azul3d-legacy/gfx-gl2#1

Examples give X error: BadValue

I'm just playing with things, and I thought I'd start off by building the examples on go1.5 (and subsequently I tried 1.4.2, too).

I can't get the examples to work at all though. I'm on Ubuntu 14.04, but I've also tried building with 15.04 with the same result.

$ go install -v azul3d.org/examples.v1/...
$ azul3d_triangle 
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  16 (X_GLXVendorPrivate)
  Value in failed request:  0x340000a
  Serial number of failed request:  189
  Current serial number in output stream:  190
$ glxinfo
name of display: :0
display: :0  screen: 0
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
client glx vendor string: NVIDIA Corporation
client glx version string: 1.4
GLX version: 1.4
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 560 Ti/PCIe/SSE2
OpenGL version string: 2.1.2 NVIDIA 331.113
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler

I've succeeded at getting github.com/go-gl/examples/glfw31-gl21-cube to run, but it runs extremely slowly (takes several seconds to start, then achieves a few FPS) and causes the window manager to freeze for seconds at a time. github.com/go-gl/examples/glfw31-gl41core-cube gives (which I don't understand because I believe my GPU supports 4.1):

$ glfw31-gl41core-cube 
panic: VersionUnavailable: GLX: Failed to create context: BadAlloc (insufficient resources for operation)

goroutine 1 [running, locked to thread]:
main.main()
    /home/pwaller/.local/src/github.com/go-gl/examples/glfw31-gl41core-cube/cube.go:45 +0x297

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
    /usr/local/go/src/runtime/asm_amd64.s:2232 +0x1

Mandelbrot example not working

It might just be my fault since I am new to GO but when I clone the mandelbrot example and go run azul3d_mandel.go it crashes with ./azul3d_mandel.go:72: undefined: Mandelbrot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.