seanhouli

Results 6 comments of seanhouli

I needed this functionality as well, I took your demo and got it working: https://codesandbox.io/p/github/vinkovsky/switching-cameras-demo/csb-jzt6zp/draft/gallant-cannon?file=%2Fapp%2Fcamera-view.tsx. I commented out the automatic switching and just bound to 't' to toggle between to...

> @seanhouli Hello! Thanks for your reply. Unfortunately couldn't open your solution :( ![image](https://private-user-images.githubusercontent.com/66293881/327878874-961f433f-fc21-429b-9a27-952a9fdf6019.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTQ3NzA3NjEsIm5iZiI6MTcxNDc3MDQ2MSwicGF0aCI6Ii82NjI5Mzg4MS8zMjc4Nzg4NzQtOTYxZjQzM2YtZmMyMS00MjliLTlhMjctOTUyYTlmZGY2MDE5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTAzVDIxMDc0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI5YjljNzI2MDgxZjJkMDBiODQ4MzRmYTI3MWQ2Y2I5NTMwN2U5YTBiYTAwZDNjNTE2ZDEwNjNmM2FjMzc3MTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.YxgLF38Av6kwesqphQT3CckFionvjp8X9JPAs0e8c28) Can you try again? I have not used codesandbox a ton, but under sharing it does...

All I can do is share the link, which I have done 🤷

@vinkovsky Here are the contents of the camera-view.tsx file if you still cannot use the link. ```ts import { useEffect, useMemo } from "react"; import { useFrame, useThree } from...

@vinkovsky it seems that reverting back to your original version that uses `.position` is actually working better for me, no idea why. Here are the changes I have made ```ts...