a-painter icon indicating copy to clipboard operation
a-painter copied to clipboard

Tilt Brush import

Open benfoxall opened this issue 7 years ago • 2 comments

via this tweet.

I wrote a script that reads .tilt files: demo/source.

Would it be of interest to use that to allow importing of Tilt Brush sketches into a-painter? I guess it wouldn't have to be baked into this project, but could be a separate 'tiltbrush-to-a-painter' tool where you drop in a .tilt file and get back a file ready for a-painter (maybe with an instant preview).

I'd be happy to build it, though would probably need some pointers on how best to structure the import.

benfoxall avatar Jun 09 '17 19:06 benfoxall

This could be really cool, thanks for proposing it!

You should have to add a new loadTilt() method to the brush system. In https://github.com/aframevr/a-painter/blob/master/src/systems/brush.js#L305 you can find the JSON loader, that will be of great help.

The main issue with this I guess it is how to translate Tilt Brush brushes to those in A-Painter, but I think that using a flat default brush will be ok for a first version.

Thank you!

Edit: I've just seen the json printed to the console in your demo, and the format is almost the same as A-Painter's! it should be quite straightforward.

feiss avatar Jun 09 '17 21:06 feiss

any news on this ?

cutec-chris avatar May 24 '19 18:05 cutec-chris