Skip to content

VIDEO: QTVR: Remove bug in QTVR while changing nodes #6584

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

Merged
merged 1 commit into from
May 1, 2025

Conversation

Malharbdv
Copy link
Contributor

@Malharbdv Malharbdv commented May 1, 2025

The previous pull request (merged) #6548
implemented an upscaled panorama for projection in higher quality.
However, it also introduced a bug where if you change the node
(panorama), the _constructedPano is now the node you changed to
but the _upscaledConstructedPano is still on the previous node
This caused the projectPanorama() function to project the wrong panorama when
in high quality mode.

Fix this bug by resetting the _upscaleLevel to 0 when we're constructing
_constructedPano which implies that we have to
upscale the _constructedPanorama from scratch during projectPanorama()
So whenever the _constructedPano is reconstructed, so will be
_upscaledConstructedPano

Remove a bug in QTVR decoder where _upscaledConstructedPanorama
doesn't stores the previous node (panorama) when you change the current
node, unlike _constructedPano
Reset the value of _upscaleLevel to 0 when constructing _constructedPano
indicating that _upscaledConstructedPanorama holds invalid panorama and
should be reupscaled while projecting in projectPanorama()
@rvanlaar
Copy link
Contributor

rvanlaar commented May 1, 2025

Thank you, this resolved the issue with the old node staying in view.

@rvanlaar rvanlaar closed this May 1, 2025
@rvanlaar
Copy link
Contributor

rvanlaar commented May 1, 2025

Reopening, due to github webinterface being a bit weird.

@rvanlaar rvanlaar reopened this May 1, 2025
@rvanlaar rvanlaar merged commit 465ee2f into scummvm:master May 1, 2025
14 of 15 checks passed
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.

2 participants