1.1.2 Bitmap Explorer
In addition to setting metaverse-related attributes, Bitmap Explorer-related resource inscriptions also have custom application settings, which are located in the attribute block.
The Bitmap Explorer protocol is still evolving and undergoing updates. The following examples do not represent the final protocol.
Example:
We will assign specific attributes to the cute dog mentioned in the previous two chapters, making it compatible with Bitmap Explorer applications.
In theory, applications or games (appdata) should have default loading settings for generic resources, as the basic attributes are already sufficient for applications and games to reference. However, some attributes are not universal. If an application wants to support more related resources, it should align its default loading settings for more generalized handling. It should provide default values for some attributes so that when resources don't have these settings, they will be loaded in a default manner.
base
Attributes that exist in the attribute block are specific to Bitmap Explorer.
In Metaverse Resources Inscription, the attributes under the appdata section are customizable. We recommend not to conflict with HTML attribute names to avoid errors during web loading. For instance, here we use "bitmap-explorer" as the attribute block name for appdata.
The size of a plot in Bitmap Explorer is strictly defined, set as unit 1, which defaults to 10 meters. If your resource is set to 1m x 1m, then you must set the collision shaperange or graphic display size (size) to a reference size of 0.1. This setting is unrelated to the original image resource size; it can be understood as stretching your original resource image to fit within the 0.1x0.1 area. Therefore, getting the aspect ratio right is critical.
animation
animation contains configuration information for animations within BitmapExplorer. It is intended for matching animations within BitmapExplorer. When we receive relevant animation resource information from the metaverse, we need to match that animation with the corresponding one.
Sits in its attribute block, <animation ... />. Keys are as follows:
Appendix
Optimizations are made for directional animations. If your resource has limited animations, like only an idle and a move-left, you can just map these, and other directions will auto-align. Make sure to match the directions correctly; otherwise, you will get a reversed display.
Animation Function Keywords Table:
Note: The custom animations like idle-down, idle-up are specific and should be considered when setting 2-way, 4-way, or 8-way directional animations.
Last updated