gl-transitions/gl-transitions

throw new Error("GL validation context could not be created");

akashdexati opened this issue · 0 comments

@gre @gltransitions @gunrot
I have followed below steps

sudo apt-get update && sudo apt-get -y upgrade
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
npm -v
npm i -g gl-transition-scripts
sudo npm i -g data-uri-to-buffer jpeg-js mime-types ndarray ndarray-pack node-bitmap omggif parse-data-uri pngjs request through
sudo npm i -g bindings bit-twiddle glsl-tokenizer nan node-gyp prebuild-install
sudo npm i -g ndarray ndarray-ops typedarray-pool
sudo npm i -g gl-shader
sudo npm i -g gl-shader gl-texture2d glsl-parser glsl-token-string glsl-tokenizer ndarray performance-now
sudo npm i -g iota-array is-buffer
sudo npm i -g contentstream gif-encoder jpeg-js ndarray ndarray-ops pngjs-nozlib through
sudo npm i -g commander get-pixels gl gl-texture2d gl-transition gl-transition-utils ndarray save-pixels

On running
gl-transition-render -t CrossZoom.glsl -i test.png -w 480 -h 480 -out out

I am getting

/usr/lib/node_modules/gl-transition-scripts/lib/gl-transition-render.js:81
if (!gl) throw new Error("GL validation context could not be created");

Do I need to explicitly set the GL libraries ? Is there any documentation for steps to do this setup for CLI(specifically on machine without any graphics support)?

Thanks
Akash