Skip to content

[Feature Request] 2D overlays #34

Closed

Description

@dreamsinmotion

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, ...

Activity

  1. marcofugaro commented on Apr 21, 2022

    @marcofugaro
    Contributor

    Do you maybe have an example of what you wish to accomplish?

  2. dreamsinmotion commented on Apr 21, 2022

    @dreamsinmotion
    Author

    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/

  3. superguigui commented on May 4, 2022

    @superguigui
    Contributor

    @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 :)

  4. locked and limited conversation to collaborators on May 4, 2022
  5. converted this issue into a discussion #36 on May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions