Upgrade to bevy 0.17#27
Conversation
| opaque_phase.add(Opaque3d { | ||
| // TODO: https://github.com/bevyengine/bevy/pull/11671/files | ||
| asset_id: AssetId::invalid(), | ||
| // asset_id: CUBE_INDICES_HANDLE.into(), | ||
| // distance: inverse_view_row_2.dot(entry.position.extend(1.0)), | ||
| pipeline, | ||
| entity, | ||
| distance: inverse_view_row_2.dot(entry.position.extend(1.0)), |
There was a problem hiding this comment.
@Elabajaba since you wrote bevyengine/bevy#11671, how is an app like this that uses a simple index buffer and "generates"/computes vertex positions "on the fly" in the vertex shader supposed to provide an AssetId<Mesh>? Looks like we can't get the original sorting based on distance.
There was a problem hiding this comment.
I'm not sure tbh. I didn't realize anyone was doing vertex pulling with bevy's standard opaque3d pipeline.
I opened a PR on your fork (MarijnS95#1) that re-implements bevy's old Opaque3d pass as a custom pass to get this working, but I'm not sure if it's the best solution.
There was a problem hiding this comment.
@Elabajaba that sounds unfortunate.
Thanks for the ping. Looks like creating forks via the gh CLI doesn't automatically set myself as watching my own repo, so I didn't receive any other notification for you opening a PR there.
I'll take a closer look later but already see some drive-by fixes that you ought to better submit separately :)
| ) in cuboids.iter() | ||
| { | ||
| for (entity, cuboids, transform, materials_id, maybe_visibility) in &cuboids { | ||
| let instance_buffer_needs_update = cuboids.is_added() || cuboids.is_changed(); |
There was a problem hiding this comment.
Following the docs there's an is_added() etc now, as I no longer seem to be able to use the Added/Changed traits to get a boolean value out of the query. Something about ReadOnlyQueryData not being implemented, and I'm not familiar enough with bevy internals to debug that further.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
- Updated dependency to use PR Traverse-Research#27 (commit 146889a) - Restored examples to use real bevy-aabb-instancing instead of placeholders - Added glam version conversion (0.24 to 0.30) for compatibility - Both examples now compile and are ready to use The PR is work-in-progress but functional for development. Track progress at: fslabs/bevy_aabb_instancing#27
No description provided.