Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-46288

Add-on Bug, "facing_camera_mode" for minecraft:particle_appearance_billboard being ignored and causing particle to always be facing camera

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • 1.11.1, 1.11.2
    • None
    • Unconfirmed
    • Windows

      Despite the given example particle files and wiki documentation, it appears "facing_camera_mode" is being fully ignored, if you set it to "direction", it does not behave as documented, you cannot set a particle in a specific direction, its always camera facing, how "lookat_xyz", the default, functions.

      Also note the wiki says it should be called "face_camera_mode", I made sure to try both but neither worked.

       

      Expected behavior:

      Setting "facing_camera_mode" to "direction" makes the particle point in a specific direction provided by

      "direction": [1, 0, 0]
      

      Actual behavior:

      Particle always faces the camera, as if set to "lookat_xyz"

       

      Examples:

      Here are 2 example json files that demonstrate the issue. The first one is an adapted example provided by a developer in the discord, but his example was for 1.8.0-beta1, no longer working as intended in 1.10.0

       

      Example 1:

      {
        "format_version": "1.10.0",
        "particle_effect": {
          "description": {
            "identifier": "test:kira",
            "basic_render_parameters": {
              "material": "particles_alpha",
              "texture": "textures/particle/particles"
            }
          },
      
          "components": {
            "minecraft:emitter_rate_steady": {
              "spawn_rate": 10,
              "max_particles": 1
            },
      
            "minecraft:emitter_shape_point": {
              "offset": [0, 0, 0],
              "direction": [1, 0, 0]
            },
      
            "minecraft:emitter_lifetime_looping": {
              "active_time": 1.0
            },
      
            "minecraft:particle_lifetime_expression": {
              "max_lifetime": "Math.random(100.0, 100.0)"
            },
      
            "minecraft:particle_appearance_billboard": {
              "size": [ 3.6, 3.6 ],
              "facing_camera_mode": "direction"
            },
      
            "minecraft:particle_appearance_tinting": {
            }
          }
        }
      }
      
      

      Example 2:

      {
          "format_version": "1.10.0",
          "particle_effect": {
              "description": {
                  "identifier": "mzo:lightning_floor",
                  "basic_render_parameters": {
                      "material": "particles_alpha",
                      "texture": "textures/entity/lightning2x8"
                  }
              },
              "components": {
                  "minecraft:emitter_rate_steady": {
                      "spawn_rate": "math.random(300, 600)",
                      "max_particles": 100
                  },
                  "minecraft:emitter_lifetime_expression": {
                      "activation_expression": 1
                  },
                  "minecraft:emitter_shape_custom": {
                      "offset": [ "Math.sin(variable.particle_random_1 * 360) * variable.particle_random_2 * 3"
                      , 0.1
                      , "Math.cos(variable.particle_random_1 * 360) * variable.particle_random_2 * 3" ],
                      "direction": [ 1, 0, 0 ]
                  },
                  "minecraft:particle_initial_speed": 0.0,
                  "minecraft:particle_initialization": {
                      "per_render_expression": "variable.size = (variable.particle_random_1*0.05 + 0.05) * variable.entity_scale * 5;"
                  },
                  "minecraft:particle_appearance_billboard": {
                      "size": ["variable.size", "variable.size"],
                      "facing_camera_mode": "direction",
                      "uv": {
                          "texture_width": 128,
                          "texture_height": 16,
                          "flipbook": {
                              "base_UV": [ 0, 0] ,
                              "size_UV": [ 16, 16 ],
                              "step_UV": [ 16, 0 ],
                              "max_frame": 8,
                              "stretch_to_lifetime": true
                          }
                      }
                  },
                  "minecraft:particle_lifetime_expression": {
                      "max_lifetime": "0.4"
                  }
              }
          }
      }
        
      

            corosus Kevin Gagnon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: