azul3d / examples Goto Github PK
View Code? Open in Web Editor NEWAzul3D examples
License: Other
Azul3D examples
License: Other
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.
We should use gfx.NewMesh, gfx.NewTexture, etc instead of allocating them ourselves. This is the best practice.
Is there any tutorial for this 3D engine available in order to become better familiar with all its capabilities?
Regards
examples/azul3d_mandel/azul3d_mandel.go
Line 72 in 39fa3be
When build this example, a build error raised: ".\azul3d_mandel.go:72: undefined: Mandelbrot".
azul3d_info
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).
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
Run the example, move the mouse or hold down a key, notice the frame rate become jittery/slow.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.