react-three-gui icon indicating copy to clipboard operation
react-three-gui copied to clipboard

working with other targets

Open brianzinn opened this issue 5 years ago • 3 comments

There are react-spring targets other than three.js (https://github.com/react-spring/react-spring/tree/master/src/targets) like konva and babylonjs that I think would work really well with your GUI controls.

I forked your repo and got it working with BabylonJS (works on a new react-babylonjs branch only for now). babylonjs-gui

So, curious if you were interested to remove target dependencies to make more generic or if you intentionally have it as three.js only. Great library and especially like the xypad!!

brianzinn avatar Sep 02 '20 06:09 brianzinn

That would be great, I do plan to make the library multi-target. Can you make a PR with it working for babylon so I can see the changes needed and plan for re-architecture for that?

birkir avatar Sep 03 '20 19:09 birkir

I'll make a PR - will have examples for three and babylon. I will first put out a new version of react-babylonjs that handles the "spring value" type to ie: rotation-x. I need a few days. Cheers.

brianzinn avatar Sep 03 '20 19:09 brianzinn

the loader prop I just found. that's a hard dep on three, so will need to consider how that fits into the API.

brianzinn avatar Sep 03 '20 19:09 brianzinn