addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramlinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

WebGL, WebCL, GLFW and GYP in Node.js

Mikael Bourges-Sevenier of Motorola-Mobility will be talking on three WebGL and WebCL modules that he’s written for Node, and Nathan Rajlich of LearnBoost will be talking on node-gyp. Ryan Dahl (@ryah) had requested, Nathan give the presentation at nodeconf, but after running out of time, Nathan has offered to present at BayNode instead!

Will be hosting BayNode at RedRobot this month.

Red Robot Labs is a mobile gaming start-up developing and publishing games that leverage consumers' location around the globe. Its location-based mobile crime game, Life Is Crime for Android and iOS was named by Entertainment Weekly as one of the top 10 Apps of 2011. Investors include Social+Capital Partnership, Shasta Ventures, Rick Thompson co-founder of Playdom and Mitch Lasky, general partner, Benchmark Capital. Red Robot Labs was founded in January 2011 by a team of industry veterans who are passionate about creating innovative, highly-polished social, mobile, location based games.


node-webcl (GitHub: Motorola-Mobility / node-webcl, License: BSD, npm:node-webcl) from Motorola Mobility is an implementation of the Khronos WebCL working draft using Node. It has been tested on Mac OS X 10.7 and Linux. It should also work on Windows 7. Its only dependency is node-webgl, another Node module that implements the WebGL standard.

The module contains various tests and sample applications to help developers leverage multiple CPU and GPU cores. It is also used as a tool to develop experimental features that may or may not be in the WebCL standard.

Installing node-webcl with npm will fetch node-webgl and node-glfw. Since they rely on native libraries, make sure they’re available:

There are more details in the project’s readme. Intel’s OpenCL SDK can also be installed as a pure WebCL implementation, and be sure to check you’ve got the latest drivers installed for your graphics card.


node-webgl (GitHub: mikeseven / node-webgl, License: BSD, npm: node-webgl) is an implementation of the Khronos WebGL specification. This is a fork of Tim Caswell’s WebGL project that started life as Blue GPU Lava at Node Knockout.

This module allows WebGL applications originally created for browsers to run using Node on the desktop without modification. It provides support for DOM methods commonly used to create WebGL content.

Like node-webcl, this module has been tested with Mac OS X and Linux. It relies on GLEW, GLFW, and AntTweakBar. Lots of samples have been included – some show how to use AntTweakBar to create a compelling GUI.


Finally, node-glfw (GitHub: mikeseven / node-glfw, License: BSD, npm: node-glfw) is a JavaScript wrapper around GLFW. This provides implementations, where possible, of WebGL methods on top of desktop OpenGL as well as a browser compliant event model.

Although this module will run on Node 0.6, at least 0.7.5 is recommended for the typed array support. This module is intended as a platform-level binding – node-webgl should be used to create OpenGL applications.


From Github:

Node.js native addon build tool

node-gyp is a cross-platform command-line tool written in Node.js for compiling native addon modules for Node.js, which takes away the pain of dealing with the various differences in build platforms. It is the replacement to the node-waf program which is removed for node v0.8.


  • Easy to use, consistent interface
  • Same commands to build your module on every platform
  • Supports multiple target versions of Node

Join or login to comment.

  • Viktor S.

    The speakers were excellent. I learned quite a bit about WebGL, and WebCL

    September 9, 2012

  • A former member
    A former member

    Fantastic speakers! Nathan and Mikael were great and I learned a lot.

    September 7, 2012

  • A former member
    A former member

    Great presentations, node-gyp something I use daily without even realizing it, node-webcl (gl, image, glfw) - can't wait to unleash the power of the GPU for my node apps.

    September 7, 2012

  • A former member
    A former member

    Great talks and attendance.

    September 7, 2012

51 went

Our Sponsors

  • StrongLoop

    An IBM company helps build node.js & APIs made for cloud.

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy