Skip to content

Conversation

@MarijnS95
Copy link
Member

Supersedes #61

@MarijnS95
Copy link
Member Author

MarijnS95 commented Dec 25, 2023

Looks like we need to bump bevy as well (once they merge and release bevyengine/bevy#11082...) to get the examples to compile... But bevy_aabb_instancing hasn't updated yet.

@MarijnS95 MarijnS95 mentioned this pull request Jul 7, 2024
@MarijnS95 MarijnS95 changed the title Bump glam upper bound to <= 0.25 Bump glam upper bound to <= 0.30\ Oct 30, 2025
@MarijnS95 MarijnS95 changed the title Bump glam upper bound to <= 0.30\ Bump glam upper bound to <= 0.30 Oct 30, 2025
Comment on lines 235 to -240
fn local_coord_to_offset(&self, xyz: LocalCoord) -> Index {
Index(
(((xyz.0[0] & (Self::DIM - 1)) >> Self::TOTAL) << (2 * Self::LOG_2_DIM))
+ (((xyz.0[1] & (Self::DIM - 1)) >> Self::TOTAL) << Self::LOG_2_DIM)
+ ((xyz.0[2] & (Self::DIM - 1)) >> Self::TOTAL),
)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jasperdewinther can you double-check this? It seems surprising that going from local coordinates shifts right by Self::TOTAL, but going from offset to local coordinates below does not. That is only performed in offset_to_global_coord(). Perhaps it is in the wrong place?

Comment on lines -35 to -39
[dev-dependencies]
bevy = { version = "0.11", default-features = false, features = ["bevy_pbr"] }
bevy-aabb-instancing = "0.10"
bevy_egui = "0.22"
smooth-bevy-cameras = "0.9"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tried but failed (thus far) to push the dependency updates through to these crates. Will try again but we might just delete the samples as it's preventing us from bumping an entire dependency stack.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trying in ForesightMiningSoftwareCorporation/bevy_aabb_instancing#27 again but Bevy internals are incredibly complex, especially when never using it and jumping straight into deep custom rendering implementations and upgrading it from 0.11 to 0.17 with many new/changed abstractions.

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