fand / veda

⚡VJ / Live Coding on Atom⚡
http://veda.gl/
MIT License
509 stars 34 forks source link

alternative #257

Open irmakoz1 opened 2 years ago

irmakoz1 commented 2 years ago

Is there an alternative platform for veda? As I see Atom is not being able to used anymore.

sertonix commented 1 year ago

You can try Pulsar. It is a fork of Atom and has seen a lot of fixes.

anpin commented 1 year ago

hi! has anyone had any success with pulsar? For me veda only loads audio shaders, but for the rest the background never changes. There are some deprecation warnings too. image

confused-Techie commented 1 year ago

So @anpin I'm unfamiliar with this repo, and GLSL as a whole. But gave it a shot with the code you posted (partially, I had to exclude the bits cut off on the edge of the tab)

So I used:

precision mediump float;
uniform float time;
uniform vec2 mouse;
uniform vec2 resolution;

void main(void) {
  vec2 position = (gl_FragCoord.xy / resolution.xy) + mouse / 4.0;

  float color = 0.0;

  color += sin(position.x * cos(time / 15.0) * 80.0) + cos(position.y * cos(time / 15.0));
  color += sin(position.y * sin(time / 10.0) * 40.0) + cos(position.x * sin(time / 25.0));
  color += sin(position.x * sin(time / 5.0) * 10.0) + since(position.y * sin(time / 35.0));
  color *= sin(time / 10.0) * 5.0;

  gl_FragColor = vec4(vec3(color, color * 5.0, sin(color + time / 3.0) * 0.75), 1.0);
}

And running veda:toggle I get this:

image

Which is in fact animated.

The only actually error I see in the console is:

THREE.JSONLoader has been removed.
JSONLoader @ C:\Users\<user>\.pulsar\packages\veda\node_modules\vedajs\node_modules\three\build\three.js:47283
ModelLoader @ C:\Users\<user>\.pulsar\packages\veda\node_modules\vedajs\lib\model-loader.js:30
Veda @ C:\Users\<user>\.pulsar\packages\veda\node_modules\vedajs\lib\veda.js:131
Player @ C:\Users\<user>\.pulsar\packages\veda\lib\player.js:68
App @ C:\Users\<user>\.pulsar\packages\veda\lib\app.js:81
Wrapper @ C:\Users\<user>\.pulsar\packages\veda\lib\wrapper.js:22
_activate @ C:\Users\<user>\.pulsar\packages\veda\lib\index.js:89
(anonymous) @ C:\Users\<user>\.pulsar\packages\veda\lib\index.js:86
Promise.then (async)
activate @ C:\Users\<user>\.pulsar\packages\veda\lib\index.js:86
activateNow @ C:\Users\<user>\AppData\Local\Programs\pulsar\resources\app.asar\src\package.js:242
(anonymous) @ C:\Users\a<user>\AppData\Local\Programs\pulsar\resources\app.asar\src\package.js:1046
simpleDispatch @ VM202 C:\Users\<user>\AppData\Local\Programs\pulsar\resources\app.asar\node_modules\event-kit\dist\emitter.js:64
emit @ VM202 C:\Users\<user>\AppData\Local\Programs\pulsar\resources\app.asar\node_modules\event-kit\dist\emitter.js:257
handleCommandEvent @ C:\Users\a<user>\AppData\Local\Programs\pulsar\resources\app.asar\src\command-registry.js:379
didConfirmSelection @ command-palette-view.js:77
confirmSelection @ VM609 C:\Users\<user>\AppData\Local\Programs\pulsar\resources\app.asar\node_modules\bookmarks\node_modules\atom-select-list\src\select-list-view.js:400
didClickItem @ VM609 C:\Users\<user>\AppData\Local\Programs\pulsar\resources\app.asar\node_modules\bookmarks\node_modules\atom-select-list\src\select-list-view.js:286
onclick @ VM609 C:\Users\<user>\AppData\Local\Programs\pulsar\resources\app.asar\node_modules\bookmarks\node_modules\atom-select-list\src\select-list-view.js:221
didClick @ VM609 C:\Users\<user>\AppData\Local\Programs\pulsar\resources\app.asar\node_modules\bookmarks\node_modules\atom-select-list\src\select-list-view.js:448

This is one Windows 10 22H2 Pulsar 1.103.0

Is the animated aspect what you're expecting to see? Could you try it with just the code I posted above? Or otherwise what OS and Pulsar version

confused-Techie commented 1 year ago

Also thought I should mention, the warnings you are seeing shouldn't effect the functioning of this package, as far as I can tell.

Also I see it showing nix in your path. I want to warn you that the Nix distribution being released is managed by a community member, and not officially maintained, so this may be an issue related to how they've packaged it, rather than with Pulsar itself.

anpin commented 1 year ago

Hi @confused-Techie! The code from my screenshot comes from the veda guide. Indeed the issue is nix related, I'm getting this in the log

[1594662:0320/112725.163250:INFO:CONSOLE(269)] "Error: Command failed with ENOENT: /home/a/.pulsar/packages/veda/node_modules/glslang-validator-prebuilt/bin/glslangValidator /tmp/tmp-1594745-gx8uNcrj6QHZ-.frag
spawn /home/a/.pulsar/packages/veda/node_modules/glslang-validator-prebuilt/bin/glslangValidator ENOENT", source: /home/a/.pulsar/packages/veda/lib/app.js (269)

Which suggests I have to make nix wrapper for the plugin or patch the binary manually. Thank you for your input!

confused-Techie commented 1 year ago

Ahh I see @anpin. Maybe it'd be a good idea to raise an issue with the maintainer of the Nix binary to help them arrive at a solution so this doesn't happen to everyone else that decides to use that version. But glad we could narrow down what's causing the issue

anpin commented 1 year ago

sure this have to be done, but would be quite involved as there are no process for wrapping atom/pulsar extensions at the moment