Source

This page was generated with Wiki Builder. Do not change the format!

Info

Only really useful if you're attempting to render the character's current appearance in 3D, this returns a bare minimum of information, pre-aggregated, that you'll need to perform that rendering. Note that you need to combine this with other 3D assets and data from our servers. Examine the Javascript returned by https://bungie.net/sharedbundle/spasm to see how we use this data, but be warned: the rabbit hole goes pretty deep.

Schema

  • Schema Type: Class
  • Type: object
  • Component Type Dependency: CharacterRenderData

Properties

Name Type Description
customDyes DyeReference[] Custom dyes, calculated by iterating over the character's equipped items. Useful for pre-fetching all of the dye data needed from our server.
customization DestinyCharacterCustomization This is actually something that Spasm.js doesn't do right now, and that we don't return assets for yet. This is the data about what character customization options you picked. You can combine this with DestinyCharacterCustomizationOptionDefinition to show some cool info, and hopefully someday to actually render a user's face in 3D. We'll see if we ever end up with time for that.
peerView DestinyCharacterPeerView A minimal view of: - Equipped items - The rendering-related custom options on those equipped items Combined, that should be enough to render all of the items on the equipped character.

Example

{
    // Type: DyeReference[]
    "customDyes": [
       // Type: DyeReference
        {
            // Type: integer:uint32
            "channelHash": 0,
            // Type: integer:uint32
            "dyeHash": 0
        }
    ],
    // Type: DestinyCharacterCustomization
    "customization": {},
    // Type: DestinyCharacterPeerView
    "peerView": {}
}

References

  1. https://bungie-net.github.io/multi/schema_Destiny-Entities-Characters-DestinyCharacterRenderComponent.html#schema_Destiny-Entities-Characters-DestinyCharacterRenderComponent