decentraland / creator-hub

MIT License
1 stars 2 forks source link

AvatarShape not working in Explorer 2.0 #270

Open nearnshaw opened 1 month ago

nearnshaw commented 1 month ago

I'm unable to render an AvatarShape in the new explorer. I tried with several variations and nothing appears.

For example:

Variation1: (No properties, all default values)

  const avatarTest = engine.addEntity()

  Transform.create(avatarTest, { position: Vector3.create(12, 1, 8) })

  AvatarShape.create(avatarTest)

Nothing rendered in E@

In web explorer:

Image

Variation 2: (values only on required fields)

  const avatarTest = engine.addEntity()

  Transform.create(avatarTest, { position: Vector3.create(12, 1, 8) })

  AvatarShape.create(avatarTest, {
    id: 'avatarShape', wearables: ["urn:decentraland:off-chain:base-avatars:f_eyes_00",
      "urn:decentraland:off-chain:base-avatars:f_eyebrows_00",
      "urn:decentraland:off-chain:base-avatars:f_mouth_00",
      "urn:decentraland:off-chain:base-avatars:standard_hair",
      "urn:decentraland:off-chain:base-avatars:f_simple_yellow_tshirt",
      "urn:decentraland:off-chain:base-avatars:f_brown_trousers",
      "urn:decentraland:off-chain:base-avatars:bun_shoes"], emotes: []
  })

Nothing rendered in E@

In web explorer same as previous screenshot

Variation3: (values for all properties, except emotes and emote-related)


  const avatarTest = engine.addEntity()

  Transform.create(avatarTest, { position: Vector3.create(12, 1, 8) })

  AvatarShape.create(avatarTest, {
    id: 'avatarShape', bodyShape: "urn:decentraland:off-chain:base-avatars:BaseFemale", eyeColor: Color4.Green(), hairColor: Color4.Black(), skinColor: Color4.Yellow(), talking: false, name: "Test girl", wearables: ["urn:decentraland:off-chain:base-avatars:f_eyes_00",
      "urn:decentraland:off-chain:base-avatars:f_eyebrows_00",
      "urn:decentraland:off-chain:base-avatars:f_mouth_00",
      "urn:decentraland:off-chain:base-avatars:standard_hair",
      "urn:decentraland:off-chain:base-avatars:f_simple_yellow_tshirt",
      "urn:decentraland:off-chain:base-avatars:f_brown_trousers",
      "urn:decentraland:off-chain:base-avatars:bun_shoes"], emotes: []
  })

Nothing rendered in E@

In web explorer: Image

According to Pravus, this feature worked well in E@ a few months back. Some change must have broken it.