Skip to content

Added unit test for bounding sphere updates on text geometry changes#5312

Merged
dmarcos merged 3 commits into
aframevr:masterfrom
mrxz:text-bounding-sphere-test
Jul 5, 2023
Merged

Added unit test for bounding sphere updates on text geometry changes#5312
dmarcos merged 3 commits into
aframevr:masterfrom
mrxz:text-bounding-sphere-test

Conversation

@mrxz
Copy link
Copy Markdown
Contributor

@mrxz mrxz commented Jun 16, 2023

Description:
As described in #5311 the bounding sphere of the text geometry wasn't being recomputed when the geometry changed. This could lead to incorrect frustum culling. The actual fix should be inside three-bmfont-text, but this PR serves to both bump that dependency and introducing a unit test to avoid regressions.

Marked draft as the dependency now points to a fork until dmarcos/three-bmfont-text#2 is merged (or an alternative fix)

Changes proposed:

  • Change the three-bmfont-text version in package.json to one including a fix
  • Introduce a unit test verifying that changing the text geometry recomputes the bounding sphere

@dmarcos
Copy link
Copy Markdown
Member

dmarcos commented Jul 5, 2023

Thanks so much for this. I just merged the changes and moved the dependency back.

@dmarcos dmarcos merged commit e8b7e43 into aframevr:master Jul 5, 2023
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