Skip to content

Models below surface clipped at certain camera angles  #81

Description

@jonshutt

Great library. I've been playing with adding models that go below the sea surface.

When viewed at an angle - it renders the model - this is fine, we can apply a transparent 'surface' at sea level
When the move the camera and view it more top down, the model gets clipped.

I'm wondering if it's some depth/distance clipping in the mapbox camera?

below.sea.level.mp4

Activity

  1. RodrigoHamuy commented on Nov 17, 2023

    @RodrigoHamuy
    Owner

    Is a tricky one. At the moment the Camera.far attribute is calculated based on the projection matrix we receive from Mapbox/Libre, so not sure how to approach this problem. I could try decreasing Camera.near and see if that helps?

    Do you have a sandbox to play on? Thanks!

    https://github.com/RodrigoHamuy/react-three-map/blob/main/src/core/sync-camera.ts#L30

  2. Repository owner locked and limited conversation to collaborators on Mar 12, 2024
  3. converted this issue into a discussion #98 on Mar 12, 2024
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

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions