mapbox / mapbox/mapbox-maps-ios

Adding MapBox camera properties Field of View (and Depth of Field)

Open
#967 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged feature :green_apple:
Dominant language
Swift
Stars
601
Forks
196
PR merge metrics
No merged PRs in 30d

Description

Feature request: For the MapBox's CameraOptions, it would be great to have an additional property for FOV (Field of View). In case of my application, I'd like to have just a very slightly wider field of view. Secondary, also having the ability to set Depth of Field would be great, but this may impact rendering performance of course.

I think it may be relatively easy to add these, because Apple already provides them. For instance, Apples SceneKit has these properties for SCNCamera as "fieldOfView". In case of Depth of field, the properties are "wantsDepthOfField", with its accompanying properties "focusDistance", fStop", "apertureBladeCount" and "focalBlurSampleCount".

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating CameraOptions and the camera-rendering integration in the Mapbox iOS codebase, then compare its API with SceneKit's SCNCamera properties named in the issue. Define the scope for Field of View and Depth of Field, including the requested focus and aperture settings, and verify that the resulting behavior and rendering-performance impact are acceptable.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
computer-graphics, mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.