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

Bevy 0.15 #70

Merged
Merged

Conversation

Bendzae
Copy link
Contributor

@Bendzae Bendzae commented Dec 22, 2024

Pretty straight forward upgrade. Notable changes that impact this project are:

  • Handle is not a component anymore so I needed to introduce wrapper components
  • Have to use RenderEntity in extaction now
  • RenderVisibleEntities to get visible RenderEntitiy MainEntity pairs
  • Examples now all use required component approach instead of bundles

Everything seems to work but I tried to keep the effort as small as possible.
Should probably migrate to required components instead of bundles.

Let me know if you would like any changes :)

Copy link

fslabs-bot bot commented Dec 22, 2024

Welcome @Bendzae! It looks like this is your first PR to ForesightMiningSoftwareCorporation/bevy_polyline 🎉

@fslabs-bot fslabs-bot bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 22, 2024
@nsabovic
Copy link

I have no authority on the topic but it would be easier to use if the API mimics Mesh3d and Mesh3dMaterial:

#[require(Transform, Visibility)]
pub struct Mesh3d(pub Handle<Mesh>);

So just PolylineHandle would require Transform and Visibility which would produce GlobalTransform, InheritedVisibility and ViewVisibility.

Mesh3d does not require Mesh3dMaterials but won't render unless it has a material, so that's probably what PolylineMaterialHandle should copy.

@Bendzae
Copy link
Contributor Author

Bendzae commented Dec 24, 2024

I have no authority on the topic but it would be easier to use if the API mimics Mesh3d and Mesh3dMaterial:

#[require(Transform, Visibility)]
pub struct Mesh3d(pub Handle<Mesh>);

So just PolylineHandle would require Transform and Visibility which would produce GlobalTransform, InheritedVisibility and ViewVisibility.

Mesh3d does not require Mesh3dMaterials but won't render unless it has a material, so that's probably what PolylineMaterialHandle should copy.

I agree but I wanted to keep the changes as minimal as possible because I don't know if the authors might want to keep the bundle worklfow. Happy to implement the required component approach once I know if it is preferred.

@IceSentry
Copy link
Contributor

Hey, sorry for keeping you waiting so long. Everything looks good to me and yeah I prefer keeping it like this for now.

Copy link

fslabs-bot bot commented Jan 9, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: IceSentry

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@IceSentry IceSentry merged commit 9dac92e into ForesightMiningSoftwareCorporation:main Jan 9, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants