Skip to content

Fix FOV slider default value in LOD streaming example#8510

Merged
mvaligursky merged 1 commit intomainfrom
mv-fix-fov-slider-default
Mar 6, 2026
Merged

Fix FOV slider default value in LOD streaming example#8510
mvaligursky merged 1 commit intomainfrom
mv-fix-fov-slider-default

Conversation

@mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Mar 6, 2026

Initialize the cameraFov observer value to match the actual camera FOV of 75 in the LOD streaming example.

Changes:

  • Add data.set('cameraFov', 75) so the UI slider displays the correct initial value instead of defaulting to the slider minimum of 10

…streaming example

The FOV slider defaulted to its minimum (10) because the cameraFov observer
value was never set, while the camera was created with fov: 75.

Made-with: Cursor
@mvaligursky mvaligursky self-assigned this Mar 6, 2026
@mvaligursky mvaligursky merged commit b7faacc into main Mar 6, 2026
8 checks passed
@mvaligursky mvaligursky deleted the mv-fix-fov-slider-default branch March 6, 2026 15:39
mvaligursky added a commit that referenced this pull request Mar 6, 2026
…streaming example (#8510)

The FOV slider defaulted to its minimum (10) because the cameraFov observer
value was never set, while the camera was created with fov: 75.

Made-with: Cursor

Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
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

Successfully merging this pull request may close these issues.

1 participant