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

Add Decals example #347

Merged
merged 6 commits into from
Apr 25, 2023
Merged

Add Decals example #347

merged 6 commits into from
Apr 25, 2023

Conversation

kevzettler
Copy link
Contributor

Hello I need feedback and code review on this PR. This addresses #292 I added a new decal_from_url component per @FredrikNoren suggestion at:
https://discord.com/channels/894505972289134632/1078283561540530216/1096581219925377195

The example seems to render okay:
image

I suspect this can be cleaned up or migrated. I left the old decal component in the code because there were other crates that were dependent on it like the prefab. Not sure how to decouple or migrate the other crates. Please offer some guidance.

Copy link
Contributor

@FredrikNoren FredrikNoren left a comment

Choose a reason for hiding this comment

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

Awesome work! Yeah leaving the decal component as is makes sense.

I can see that there's some issue with decal rendering in general though; it should only be visible inside of the green box. But I think that's a separate issue from just exposing the functionality to the guest side, so we can merge this and then create a separate issue for fixing decals in general. (I also see that the problem exists in the native decal example).

Copy link
Contributor

Choose a reason for hiding this comment

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

This file isn't used right?

Copy link
Contributor Author

@kevzettler kevzettler Apr 25, 2023

Choose a reason for hiding this comment

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

This is used for the example at crates/decals/examples/decals.rs and was missing

@FredrikNoren
Copy link
Contributor

Created an issue for the rendering issue here: #352

@FredrikNoren FredrikNoren merged commit 6cbb57d into AmbientRun:main Apr 25, 2023
philpax pushed a commit that referenced this pull request May 23, 2023
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