Comments (8)
Same problem for me.
from node-gles.
This does work:
const nodeGles = require('node-gles');
const gl = nodeGles.binding.createWebGLRenderingContext();
from node-gles.
@Somebi you're missing an item (.binding.
):
const gles = require('node-gles');
const gl = gles.binding.createWebGLRenderingContext();
@kbruneel can you check your npm install logs? What platform are you running?
from node-gles.
node v8.9.1
npm 5.5.1
OS X 10.14.3
from node-gles.
@nkreeger .binding.
is also missing in readme.md
from node-gles.
OK I'll need more info. Can you add some more logs or console output? Also try cloning this repo
git clone https://github.com/google/node-gles.git
cd node-gles
npm install
Paste output there - is node-gyp failing? You can also run one of the TypeScript examples:
yarn ts-node src/tests/float_texture_upload_test.ts
from node-gles.
> [email protected] install /Users/karel/git/node-gles
> node scripts/install.js
* Downloading ANGLE
[==============================] 6786860/bps 100% 0.0s
* Building ANGLE bindings
npm notice created a lockfile as package-lock.json. You should commit this file.
added 112 packages in 29.61s
from node-gles.
yarn run v1.16.0
$ /Users/karel/git/node-gles/node_modules/.bin/ts-node src/tests/float_texture_upload_test.ts
VERSION: OpenGL ES 3.0 (ANGLE 2.1.0.9512a0ef062a)
RENDERER: ANGLE (ATI Technologies Inc., AMD Radeon Pro 560 OpenGL Engine, OpenGL 4.1 core)
buffer: Float32Array [ 0.5, 1.5, 2.5, 3.5 ]
✨ Done in 2.39s.
I had to switch to: node v8.16.0 (npm v6.4.1) for this to work
from node-gles.
Related Issues (20)
- Error: Unsupported getParameter() option HOT 10
- Approx date for TFJS support?
- Add integration tests HOT 2
- Error: The platform win32-x64 is not currently supported! HOT 1
- Some bindings are missing HOT 4
- Better build instructions HOT 4
- LF in getProgramInfoLog HOT 1
- glReadPixels only affects first four elements HOT 3
- Error: Argument is not a number! HOT 1
- Testing WebGL with some CI
- Add Windows support HOT 2
- Ubuntu on Windows (WSL) ? HOT 5
- gl.getSupportedExtensions return empty.
- Specified module not found (windows 10) HOT 3
- How can I get the latest version of ANGLE HOT 1
- I can't use it on Windows 10
- Running in Docker HOT 1
- Multiple Textures HOT 1
- Missing function: glTexStorage2D
- PreBuilt Angle binaries no longer work "Error loading EGL entry points."
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-gles.