Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add React three offscreen to the nextjs example #127

Open
ThimoDEV opened this issue Apr 21, 2023 · 6 comments
Open

[Feature] Add React three offscreen to the nextjs example #127

ThimoDEV opened this issue Apr 21, 2023 · 6 comments

Comments

@ThimoDEV
Copy link

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?

@drcmda
Copy link
Member

drcmda commented Apr 21, 2023

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

@ThimoDEV
Copy link
Author

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

@RenaudRohlinger
Copy link
Member

RenaudRohlinger commented Apr 22, 2023

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) ?

@drcmda
Copy link
Member

drcmda commented Apr 22, 2023

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

@ThimoDEV
Copy link
Author

That would be unfortunate :(

@ThimoDEV
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants