Open fand opened 6 years ago
I suggest potential gLTF integration after obj https://github.com/KhronosGroup/glTF
sounds good!
thinking 'bout adding MODEL
instead of OBJ
so that we can use other models like .fbx
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
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
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:
vertexMode
, vertexCount
in PASSES
fs
vs
TARGET
in PASSES
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:
alt-.
with ctrl-.
, but it's already used for veda:stop-watching
.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.
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 Awesome work, truly.
Is there any way to record the output to video?, that'd be amazing.
@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
TODO
[ ] Rewrite vedajs in pure WebGL.obj