Skip to content

orbitControl() Compatibility with imageLight() #6688

@perminder-17

Description

@perminder-17

Increasing Access

The current implementation of orbitControl() does not seamlessly work with the imageLight() function, resulting in unexpected behavior. When using a 360-degree image and adding a sphere with imageLight(), the use of orbitControl() does not provide the expected interaction. It appears as though the sphere is static, while only the image responds to orbitControl().

However when we use texture() we can achieve the possible result but without other functions such as shininess().

20240102222110.mp4

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build Process
  • Unit Testing
  • Internalization
  • Friendly Errors
  • Other (specify if possible)

Feature enhancement details

Expected Behavior:
The orbitControl() should seamlessly interact with the imageLight() function. When a sphere with an imageLight() is present, the orbitControl should behave as if the image is fully embedded in the sphere. This enhancement would significantly improve user experience, especially when working with 360-degree images.

After the implementation it should work similar to this.

treejs.feature.360.mp4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions