teaconmc / SlideShow

Simple slide show projector in Minecraft.
BSD 3-Clause "New" or "Revised" License
42 stars 27 forks source link

Add an option to make slide rotate with player's sight #3

Open SihenZhang opened 4 years ago

SihenZhang commented 4 years ago

Sometimes, I need to make the slide show in the sky as a sign mark. Just like below.

But in another view, the slide will be mirror-flipped.

So, I want to add an option in the Projecter which can make the slide rotate with the player's sight.

FledgeXu commented 4 years ago

Maybe we should enable culling here. https://github.com/teaconmc/SlideShow/blob/48fdfb5e96eca1e717e8df5af7a81d67a0ee47a3/src/main/java/org/teacon/slides/ProjectorData.java#L63 And, draw the picture twice in here: one is clockwise and another is anticlockwise https://github.com/teaconmc/SlideShow/blob/48fdfb5e96eca1e717e8df5af7a81d67a0ee47a3/src/main/java/org/teacon/slides/ProjectorRenderer.java#L38 These can avoid the mirror-flipped issue.