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

[Feature] Add React three offscreen to the nextjs example

Open ThimoDEV opened this issue 1 year ago • 6 comments

I just saw this launched: https://github.com/pmndrs/react-three-offscreen

However I couldn't find how to make it fit with this stack that i'm using. Would it be something that can be added as an example?

ThimoDEV avatar Apr 21 '23 19:04 ThimoDEV

it would work ootb, see https://twitter.com/cdebotton/status/1649524147838668800

drcmda avatar Apr 21 '23 21:04 drcmda

it would work ootb, see https://twitter.com/cdebotton/status/1649524147838668800

Is there a specific way I need to setup offscreen to make it work in this repo? Since Scene and canvas are a bit different compared to the original example

ThimoDEV avatar Apr 22 '23 09:04 ThimoDEV

I can make it run next but seems like View and tunnel-rat lost the track of the DOM with react-three-offscreen. it does seems that @drcmda you're already working on something related to that matter (https://codesandbox.io/s/view-tracking-forked-f5wnde?file=/src/drei-future/View.tsx) ?

RenaudRohlinger avatar Apr 22 '23 11:04 RenaudRohlinger

ah yes, offscreen in next is probably easy but tied to view, i don't think it can be feasible.

drcmda avatar Apr 22 '23 22:04 drcmda

That would be unfortunate :(

ThimoDEV avatar Apr 23 '23 09:04 ThimoDEV

Would a separate canvas setup with offscreen be something to add to this repo? So users can choose to opt in using three offscreen.

ThimoDEV avatar Apr 29 '23 12:04 ThimoDEV