-
Notifications
You must be signed in to change notification settings - Fork 36
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
react-three-fiber + expo-three-orbit-controls example? #8
Comments
You might end up using Anyway, just let me know if you found how to make |
I did a mistake and wrapped |
@ProPanek In my case, I end up using E.g.,
It's really hard to implement an interchangeable Three.js canvas with Next.js and Expo. Three.js is really build FOR WEB. I guess |
For anyone trying to get it to work along with react-three-fiber:
Only issue i'm facing now, is that the Canvas is not receiving touch/click events anymore. |
Thanks @dmegue your example was super helpful. I was able to get this working in a more concise way with: const Test = () => {
const [camera, setCamera] = useState<Camera | null>(null);
return(
<View style={{ flex: 1 }}>
<OrbitControlsView style={{ flex: 1 }} camera={camera}>
<Canvas onCreated={({ camera }) => setCamera(camera)}></Canvas>
</OrbitControlsView>
</View>
)
} |
i have found another library that manages to fix orbit controls for RN with r3f https://github.com/TiagoCavalcante/r3f-native-orbitcontrols ive tested this and it seems to do the trick, without deafening the gesture events |
I also tried the r3f-native-orbitcontrols, but my functions at onChange are to expensive to be executed on every render during touch. How can i mimick a onrelease event in r3f-native-orbitcontrols? |
Hi! Is there even a way to make it work with the
Canvas
component thatreact-three-fiber
is providing? I was trying to wrapCanvas
with your component but it doesn't seem to work like that.The text was updated successfully, but these errors were encountered: