You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, it would be nice to be able to create 2D overlays using objects or null objects as the base reference relative to the camera perspective. For example button components, text, ...
@dreamsinmotion in theory you can already access objects in camera and achieve this. But an easier way would probably be to use the new three.js or react-three-fiber exports that allows more control over the scenegraph (but also shift more responsabilities your way.
TLDR: react-spline is a simple player that will display your spline scene as it was in Spline, the r3f and three.js exports are only loading geometries and materials and letting you do what you want with it.
Activity
marcofugaro commentedon Apr 21, 2022
Do you maybe have an example of what you wish to accomplish?
dreamsinmotion commentedon Apr 21, 2022
Something like this ThreeJs example, where you can get the coordinates of objects with a projection of the current camera:
https://r105.threejsfundamentals.org/threejs/lessons/threejs-align-html-elements-to-3d.html
https://jsfiddle.net/oy7hqbpf/
superguigui commentedon May 4, 2022
@dreamsinmotion in theory you can already access objects in camera and achieve this. But an easier way would probably be to use the new three.js or react-three-fiber exports that allows more control over the scenegraph (but also shift more responsabilities your way.
TLDR: react-spline is a simple player that will display your spline scene as it was in Spline, the r3f and three.js exports are only loading geometries and materials and letting you do what you want with it.
Moving this into discussions :)