Git Product home page Git Product logo

Comments (8)

kbruneel avatar kbruneel commented on May 3, 2024

Same problem for me.

from node-gles.

kbruneel avatar kbruneel commented on May 3, 2024

This does work:

const nodeGles = require('node-gles');
const gl = nodeGles.binding.createWebGLRenderingContext();

from node-gles.

nkreeger avatar nkreeger commented on May 3, 2024

@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.

kbruneel avatar kbruneel commented on May 3, 2024

node v8.9.1
npm 5.5.1
OS X 10.14.3

from node-gles.

kbruneel avatar kbruneel commented on May 3, 2024

@nkreeger .binding. is also missing in readme.md

from node-gles.

nkreeger avatar nkreeger commented on May 3, 2024

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.

kbruneel avatar kbruneel commented on May 3, 2024
> [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.

kbruneel avatar kbruneel commented on May 3, 2024
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)

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.