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 visual debugging for entities #193

Merged
merged 1 commit into from
Dec 15, 2024
Merged

Conversation

kokosha
Copy link
Contributor

@kokosha kokosha commented Dec 14, 2024

  • Display rectangles and bounding boxes for the sprites of each entity.
  • Highlight the center of each bounding box and create an axis to facilitate alignment verification.
  • Implement a mode where billboards always faces the current camera.
  • Reduce the billboard size for the player entity.
  • Refactor the code to reuse existing functions.
  • Convert sRGB to linear color inside AABB/Circle/Rectangle pipeline.

@hasenbanck
Copy link
Collaborator

hasenbanck commented Dec 14, 2024

The shader looks like it's a general purpose "rectangle" shader, like the AABB and circle shader. We could then use it the same way we already use the other two debug shader.

@kokosha kokosha force-pushed the entity-billbox branch 2 times, most recently from 64948b4 to a42b71d Compare December 15, 2024 02:44
@kokosha kokosha marked this pull request as ready for review December 15, 2024 02:45
korangar/src/graphics/passes/forward/rectangle.rs Outdated Show resolved Hide resolved
korangar/src/loaders/animation/mod.rs Outdated Show resolved Hide resolved
korangar/src/main.rs Show resolved Hide resolved
korangar/src/world/animation/mod.rs Outdated Show resolved Hide resolved
@hasenbanck hasenbanck changed the title Add visual debug to entity Add visual debugging for entities Dec 15, 2024
@hasenbanck
Copy link
Collaborator

Please squash, rebase and use the updated title of the issue for the commit message once you are finished!

@kokosha
Copy link
Contributor Author

kokosha commented Dec 15, 2024

I change the variable naming also for better readability and will rebase on top of it.

@kokosha kokosha force-pushed the entity-billbox branch 2 times, most recently from 8334b3b to 13f7d3b Compare December 15, 2024 12:22
- Display rectangles and bounding boxes for the sprites of each entity.
- Highlight the center of each bounding box and create an axis to facilitate alignment verification.
- Implement a mode where billboards always faces the current camera.
- Reduce the billboard size for the player entity.
- Refactor the code to reuse existing functions.
- Convert sRGB to linear color inside AABB/Circle/Rectangle pipeline.
@hasenbanck
Copy link
Collaborator

LGTM

@hasenbanck hasenbanck self-requested a review December 15, 2024 12:47
@hasenbanck hasenbanck merged commit 11fb85e into vE5li:main Dec 15, 2024
3 checks passed
@kokosha kokosha deleted the entity-billbox branch December 15, 2024 13:25
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