Open sashankaryal opened 1 week ago
The recent updates to the looker-3d
package include enhancing the state management by introducing a new atom for camera positions, cameraPositionAtom
. This atom is used to handle user-defined camera positions within the MediaTypeFo3dComponent
. These changes improve the flexibility of camera position calculations based on user inputs.
Files | Change Summary |
---|---|
.../fo3d/MediaTypeFo3d.tsx |
Added cameraPositionAtom import, introduced overridenCameraPosition , and updated camera position calculation logic. |
...looker-3d/src/state.ts |
Introduced the cameraPositionAtom export to manage camera positions, defined as a tuple of three numbers with a default of null . |
In virtual realms where cameras roam,
A new position finds its home. 📸
With atoms fresh and state so grand,
Users shift views across the land. 🌍
Looker-3D now takes the lead,
In rendering scenes with graceful speed. 🌟
[!TIP]
AI model upgrade
## `gpt-4o` model for reviews and chat is now live OpenAI claims that this model is better at understanding and generating code than the previous models. Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide any feedback or to report any issues.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This PR exposes camera position as a recoil atom so that operators can write to it dynamically and change camera pose. I tested it with a simple built-in JS operator (not part of the PR).
Summary by CodeRabbit