Skip to content
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

Fix rendering issues with Panda3D #1559

Merged
merged 12 commits into from
Jan 31, 2025
Merged

Conversation

SamFlt
Copy link
Contributor

@SamFlt SamFlt commented Jan 23, 2025

Despite previous fixes, creating and destroying panda3d renderers still generated some issues (Segmentation faults, wrong data in retrieved images). This PR also improves some of the tests to detect these issues and the tracking tests, which rely on Panda3D.

This PR introduces a singleton class vpPanda3DFramework that manages the Panda3D state. If an application is using Panda3D, it should call ``vpPanda3DFramework::getInstance().exit()` to ensure that the buffers, windows, etc. are correctly released. Otherwise, an exception may be raised. This exception seems to only appear when the program exits.

Copy link

codecov bot commented Jan 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.37%. Comparing base (cae757c) to head (e8e9d37).
Report is 73 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1559      +/-   ##
==========================================
+ Coverage   54.01%   54.37%   +0.36%     
==========================================
  Files         441      442       +1     
  Lines       53865    53468     -397     
==========================================
- Hits        29095    29074      -21     
+ Misses      24770    24394     -376     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

On Ubunto 24.04, with Panda3D 1.11.0 the test lead to the following
Translation error = 0.0023214 m, rotation error = 2.08898 deg
@fspindle fspindle merged commit a5f5bcc into lagadic:master Jan 31, 2025
85 of 90 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