Skip to content
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

Test New Controls #1

Open
7 of 11 tasks
AndrewJSchoen opened this issue Oct 10, 2022 · 0 comments
Open
7 of 11 tasks

Test New Controls #1

AndrewJSchoen opened this issue Oct 10, 2022 · 0 comments
Assignees

Comments

@AndrewJSchoen
Copy link
Contributor

AndrewJSchoen commented Oct 10, 2022

  • In the "More Controls" story, work through the logic of how the store is being updated, and how the relationship between the data and visuals produces the observable behavior.

    • Range Input
    • Scalar Input
  • In a code sandbox with react-three/fiber, begin testing and developing the logic for how these types of widgets could be implemented.

    • Range/Scalar Input (mimic the behavior of the more controls example). Specifically we will try to remove the requirement for transform controls and just support direct drag
    • Angle Input Example.
    • Translation/Rotation/Scale Input Example, but we aren't using drei for this

Work out the following bugs/behaviors:

  • Dragging "stuttering" when cursor goes over interactable
  • Refactor to use refs/useFrame where relevant, can use useSpring for indicators
  • Handle zoom interaction with drag (can ask on stack overflow or discord)
  • Parameterize according to a data model like this:
widget1: {
    type: 'scalar', // range, transform, etc.
    frame: 'movingFrame',
    position: { x: 0, y: 1, z: 1 },
    rotation: { w: 1, x: 0, y: 0, z: 0 },
    color: { r: 10, g: 10, b: 255, a: 1 },
    value: 4.2,
    range: [3,6]
}

Other Useful Links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants