Skip to content

Fix meshlet materials#15755

Merged
alice-i-cecile merged 2 commits intobevyengine:mainfrom
Jondolf:fix-lil-meshy-bunny-not-showing-up
Oct 9, 2024
Merged

Fix meshlet materials#15755
alice-i-cecile merged 2 commits intobevyengine:mainfrom
Jondolf:fix-lil-meshy-bunny-not-showing-up

Conversation

@Jondolf
Copy link
Copy Markdown
Contributor

@Jondolf Jondolf commented Oct 9, 2024

Objective

After #15524, there are these bunny-shaped holes in rendering in the meshlet example!

broken

This is because (1) they're using a raw asset handle instead of MeshMaterial3d, and (2) the system that extracts mesh materials into the render world has an unnecessary With<Mesh3d> filter, which makes it not account for meshlets.

Solution

Remove the redundant filter and use MeshMaterial3d. The bunnies got some paint!

fixed

@Jondolf Jondolf added C-Bug An unexpected or incorrect behavior D-Trivial Nice and easy! A great choice to get started with Bevy A-Rendering Drawing game state to the screen S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Oct 9, 2024
@Jondolf Jondolf added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Oct 9, 2024
@JMS55
Copy link
Copy Markdown
Contributor

JMS55 commented Oct 9, 2024

We also need to make sure ResourceManager::previous_depth_pyramids is working properly. It should not be recreating a texture every frame for each views.

@alice-i-cecile alice-i-cecile added this pull request to the merge queue Oct 9, 2024
Merged via the queue into bevyengine:main with commit a2b53d4 Oct 9, 2024
@Jondolf Jondolf deleted the fix-lil-meshy-bunny-not-showing-up branch October 9, 2024 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants