veda icon indicating copy to clipboard operation
veda copied to clipboard

VEDA v3

Open fand opened this issue 6 years ago • 9 comments

TODO

  • [ ] Sound Shader
  • [ ] Refactor Configs
  • [ ] Rewrite vedajs in pure WebGL
  • [ ] Support model files like .obj

fand avatar Mar 16 '18 15:03 fand

I suggest potential gLTF integration after obj https://github.com/KhronosGroup/glTF

MacroMachines avatar Mar 30 '18 05:03 MacroMachines

sounds good! thinking 'bout adding MODEL instead of OBJ so that we can use other models like .fbx

fand avatar Mar 30 '18 05:03 fand

Three.js will support WebGL2 soon so we don't need to replace it with pure WebGL code 😸 https://github.com/mrdoob/three.js/pull/13717#issuecomment-378181220

fand avatar Apr 08 '18 08:04 fand

They have added support for posting gLTF files on facebook. sketchfab.com is a good example, everything you see on there is gLTF. It has PBR materials by default and can support extensions for custom shaders, and is all based on JSON and webGL compatibility. https://www.npmjs.com/package/three-gltf2-loader

MacroMachines avatar Apr 10 '18 20:04 MacroMachines

Config

First I thought I should refactor Config.ts so that vedajs parses the config objects and returns the object to VEDA. But I found VEDA have to parse config objects bacause it has to rewrite paths in IMPORTED and OBJ referring the project root and localhost, so removing configs parser from VEDA doesn't make sense.

In refactoring branch I'll just do these refactoring:

  • Accept vertexMode, vertexCount in PASSES
  • Test fs vs TARGET in PASSES

fand avatar Apr 18 '18 02:04 fand

Sound Shader

Sound shader is released as an experimental feature. It's because I felt a bit unsophisticated that we have to hit alt-enter and when we hit ctrl-enter it throws an error. To improve the experience I thought about adding sound: true to the config. Otherwise, we can implement buffers like Shadertoy and assign buffer: "sound" to sound shaders.

However, these solution causes another problems:

  • How can we stop sound shaders?
    • For example we can replace alt-. with ctrl-., but it's already used for veda:stop-watching.
  • Are buffers really needed?
    • We already have PASSES for multipass rendering so it can be confusing.

Now I think I should leave sound shaders as it is, and proceed developments after research and talking with users more.

fand avatar Apr 18 '18 08:04 fand

Three.js examples for loaders:

https://github.com/mrdoob/three.js/blob/master/examples/webgl_loader_json_blender.html https://github.com/mrdoob/three.js/blob/master/examples/webgl_loader_collada_skinning.html https://github.com/mrdoob/three.js/blob/master/examples/webgl_loader_fbx.html https://github.com/mrdoob/three.js/blob/master/examples/webgl_loader_3ds.html

fand avatar Apr 23 '18 01:04 fand

@fand Awesome work, truly.

Is there any way to record the output to video?, that'd be amazing.

mangelajo avatar Dec 14 '18 19:12 mangelajo

@mangelajo thx 😸 Currently VEDA can't output videos, I tried to implement GIF output once but it was a bit difficult so I postponed it... Here's a online converter I created during the research https://gmork.in/vedajs-capture/ I also use GIF Brewery3 for daily sketches

fand avatar Dec 15 '18 03:12 fand