mojira.dev
MC-46445

Spectator mode particles and sounds computed from where you have been before

If you are in spectator mode, click an entity to spectate it, and then move your mouse around, you see that Flames of Torches where computed from where you have been first (where your field of view is). Also it seems that sounds are computed the same way. If i am spectating an entity and moving my mouse around, the sound is sometimes on the right of my headset and sometimes on the left.

Easy way to reproduce the bug: Spectate an enderman and move the mouse, you will see the particles rotating.

EDIT: As stated in the title it not only depends on the rotation, but also on the location where the player started spectating the entity.

An example: I set up a sound source (note block with a clock) and placed an entity next to it (armor stand). I started spectating the entity and while moving the mouse, the sound rotated around me (as stated above). Then I added the levitation effect to the armor stand. The volume of the sound didn't decrease as I moved away from the source of the sound. When leaving the spectated entity the sound stopped immediately as I was to far away from the note block.


Assumption by @unknown can be found in this comment.
Explanation by @unknown can be found in this comment

Related issues

MC-46581 Spectator Torch Bug MC-46618 Sounds are calculated from original position while possessing entities MC-46792 [Spectator Mode] No Sound when spectating any mob MC-46947 Particles look strange when spectating a mob view MC-48022 Destroy and particles in general change direction in spectator mode MC-48469 Sound location is misplaced when spectating a mob. MC-51408 No sound while spectating a mob in Spectator Mode. MC-52607 Spectating in an enderman that teleports away causes sound issues MC-53152 Weird particle rendering in spectator mode MC-54869 Particles Not Showing When inside Item Frame in Gamemode 3 MC-70038 Smoke particle rendering horizontally in spectator mode while spectating as wolf MC-76321 Spectator sound location MC-85651 Shulker - Gamemode 3 - Torch Particle Bug MC-89615 Spectator Mode Sound Bug MC-95010 No sound while spectating a player MC-95319 Particles in Gamemode 3 in another character do not look at you MC-95642 Gamemode 3 - Particle Error MC-98804 Spectator mode particles orientation bug. MC-105144 Spectating entity loses sound when it walks far away MC-118114 Spectator Mode Bug MC-125072 2D sprites stuck when I'm in spectator mode in an other player's view MC-130436 Particles stays in one direction MC-135745 Particles have wrong direction when in spectator mode MC-137000 Sound scope doesn't follow an entity being spectated MC-143858 yo mojang this has to do with the campfire particle effect. when you spectate a creeper and its viewing the campfire the texture of the particles is a bit off wack. MC-61802 In a mobs view in spectator mode moves around particles

Attachments

Comments

migrated
[media]
kumasasa

Confirmed.

migrated

I'm recording a video on this. I'll put up a link when it's done.

migrated

It'll be up tomorrow.

migrated

Confirmed in 14w06b. Also tried with activated redstone - same problem.

migrated

How do I add affects version

kumasasa

Only the creator of this ticket and the mods can do.
Added 14w11b

migrated

Added picture from MC-61802 showing the bug.

migrated

confirmed for 14w29b

marcono1234

Confirmed for

  • 14w31a You can see it also very good when spectating a wither boss

migrated

Confirmed for 14w34b

Bentroen

Confirmed for 1.8-pre1.

migrated

Still affects the 1.8 release.

I think the summary should be edited, changing all the capital letters except the first letter to lowercase and replacing "Torch Flames" with "particles" (as this affects all particles).

EDIT: Thanks, @unknown.

migrated

Confirmed. It's like you are in an Enderman with the particles around it, and you are in it moving your view left to right, but the Enderman is keeping you still in your view. It's like possession in 50/50.

migrated

Confirmed for 1.8.7. The player's hand also appears to have a similar problem if spectating is invoked via a camera packet versus actual spectate mode.

migrated

Confirmed for 15w51b.

marcono1234

Confirmed for

  • 16w02a

The following text is an assumption, after writing it I noticed that it is kind of strange anyways...

The problem is very likely that the client still "rotates" the screen while you spectate an entity. So please change the title to "Client allows rotating player while spectating entity" or something similar.
The reason why the player still looks in the same direction but is differently rotated is probably because in the net.minecraft.client.Minecraft class (MCP 1.8 names) the spectated entity is stored as private Entity field_175622_Z whereas the player is stored as public EntityPlayerSP thePlayer. When the player is not spectating any mob, the spectated entity is the player.
Apperently for particles and sound the data of the player is used whereas for normal rendering the data of the spectated entity.

The reason why you are still able to rotate is that the public void updateCameraAndRender(float p_78480_1_) method of the net.minecraft.client.renderer.EntityRenderer class does not test if the player is in spectator mode and spectating a mob and thus should not rotate.

SunCat

Confirmed for 1.9

migrated

for me it moves the particles around themselves when i try to look around, i can make the fire dance

marcono1234

Please link to this assumption

migrated

Still in 1.10.2

migrated

Still in 17w14a

migrated

Still active in 1.12.

The problem is with the handling of the Camera Packet. When handling the packet, the client doesn't set the player's spectating entity, instead it sets the client's render view entity. This then causes the player's game tick to skip a few logic updates tasks, e.g. updating position and rotation. Thus, causing the player to be out of sync (only on the client), producing both visual and audible issues.

Victor_sueca

Still an issue in 1.12.2.

Reproduced it while spectating a player in a multiplayer server.

migrated

Is this still an issue in 18w21a?

Victor_sueca

It seems so.

I just tested it in 18w21a with the following setup:

  • Placed a note block with a redstone clock that played it repeatedly

  • Spawned a bat near the note block

  • Went into spectator mode and spectated bat's point of view by clicking on it

The bat moving around didn't seem to change the stereo location of the note block and it moving away didn't seem to fade away the sound. Moving the cursor though, does change the stereo location of sound sources and the orientation of certain partices as if the player was rotating, though it doesn't because it's specating an entity.

Conclussion: Still reproduces in 18w21a

CreeperMagnet_

Affects 1.13-pre6. Please keep the issue updated accordingly.

migrated

Confirmed for 1.13.1.

muzikbike

Appears to be fixed as of 19w14b. I predict this was actually fixed in 19w11a along with MC-926.

muzikbike

Still fixed in 1.14 prerelease 4, can this be marked as such?

migrated

(Unassigned)

Confirmed

(Unassigned)

particle

Minecraft 14w05a, Minecraft 14w06b, Minecraft 14w07a, Minecraft 14w11b, Minecraft 14w25a, ..., Minecraft 18w22a, Minecraft 1.13-pre1, Minecraft 1.13-pre6, Minecraft 1.13, Minecraft 1.13.1

Minecraft 19w11a

Retrieved