FraserLee / bevy_sprite3d

Use sprites in a 3d bevy scene.
MIT License
145 stars 23 forks source link

Using look_at or look_to to make a sprite face directly up makes that sprite dissapear. #7

Closed Cassumbra closed 1 year ago

Cassumbra commented 1 year ago

Rotating the sprite straight up manually seems to work fine, but using look_at or look_to seems to cause odd behavior.

FraserLee commented 1 year ago

That's interesting. What odd behaviour are you seeing specifically, and is the thing you're trying to look_at the camera?

FraserLee commented 1 year ago

If the sprite is disappearing entirely, the two most likely things to mind would be either if you're looking at it edge-on, or if you're looking from behind and double_sided is disabled. Possibly also if the pivot is in a weird place, the rotation could be "translating" it to somewhere you can't see - though that's less likely.

Cassumbra commented 1 year ago

I don't think its a looking at it edge-on problem. I'm also fairly certain it isnt due to double_sided being disabled, since its enabled by default, and I didn't change it. I believe I also checked the underside of the sprites, as well. It could be pivot oddness. I'm not sure. I didn't mess with the pivot, though.

EDIT: I was curious if bevy_infinite_grid was causing the problem, because it did seem to be causing an issue with partially transparent sprites. It doesn't seem that bevy_infinite_grid is the culprit in this case, though. Disabling its plugin doesn't stop the issue.

FraserLee commented 1 year ago

Huh that is strange. Do you think you could post a minimum reproducible sample?

Cassumbra commented 1 year ago

yeah, okay so basically make a project as simple as possible that causes the issue?

FraserLee commented 1 year ago

Yep, exactly

FraserLee commented 1 year ago

Closing as inactive. Feel free to reopen if this happens again!