Skip to content

Prevent duplicate textures being loaded in displacement map#177

Merged
srmainwaring merged 1 commit intomasterfrom
prs/pr-fix-duplicate-texture
Jan 2, 2025
Merged

Prevent duplicate textures being loaded in displacement map#177
srmainwaring merged 1 commit intomasterfrom
prs/pr-fix-duplicate-texture

Conversation

@srmainwaring
Copy link
Owner

Fix an issue where the visual plugin attempted to load the height, normal and tangent map textures twice when using displacement map rendering.

There is still an upstream issue in the GzSceneManager (gz-sim/src/gui/plugins/scene_manager) whereby the visual plugin is loaded twice, causing performance issues, but this change prevents the segmentation fault that caused the GUI to crash.

Applies to the ocean_world.sdf model.

Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
@srmainwaring srmainwaring added the bug Something isn't working label Jan 2, 2025
@srmainwaring srmainwaring self-assigned this Jan 2, 2025
@srmainwaring srmainwaring merged commit ca8629d into master Jan 2, 2025
10 checks passed
@srmainwaring srmainwaring deleted the prs/pr-fix-duplicate-texture branch January 2, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant