Open bkwhite opened 8 months ago
Hey, thanks! I'll check this out tomorrow, see if I can reproduce and figure a fix if possible.
Hey, thanks! I'll check this out tomorrow, see if I can reproduce and figure a fix if possible.
awesome! thanks, this crate is really helpful I wanna keep using it!
I can add you to my repo for the rest of my game's code if needed!
👋 I was able to reproduce it, though I'm not sure how I should solve it. So, it seems like the issue is with orthographic projection. I don't know if I can modify the matrix multiplication in a way so it works for both cases or if I should add another pipeline key for orthographic case.
Glad it was reproducible, but unfortunate it sounds complicated. Both of these ideas so solve this sound over my head at the moment.
Has orthographic stuff required a different pipeline keep for anything else?
My understanding of graphics programming, especially the maths part of it, is pretty weak. I've only implemented a basic orthographic projection for my own engine and haven't used bevy seriously for more than half a year. So I don't really know if this is the norm or not. I'll probably try the second option as that feels like the easiest at the moment. Though I still need to figure a formula that plays nice with orthographic.
Billboard textures seem to have weird behavior when the camera is rotated on the y-axis. The weirdness happens after a sprite is scaled. (Scaling
translation.x
when the bullet hits the hitbox)Initialing camera with Y rotation
Spawning Billboard Sprite
Weird behavior (video)
https://github.com/kulkalkul/bevy_mod_billboard/assets/1873332/081e2600-b74d-4add-b581-415b62d47c3d