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.

<metaverse
	...
>
	...
</metaverse>

<bitmap-explorer
	category="owner"
	type="pet"
	usable="1"
	shape="rect"
	shaperange="[0.1, 0.1]"
	pivot="[0.5, 1.0]"
	size="[0.1, 0.1]"
	height="0.06"
	speed="1.5"
>
	<animation name="idle-down" srcname="idle1" perframespeed="0.1" loop="true"/>
	<animation name="idle-up" srcname="idle2" perframespeed="0.1" loop="true"/>
	<animation name="idle-right" srcname="idle3" perframespeed="0.1" loop="true"/>
	<animation name="idle-left" srcname="idle4" perframespeed="0.1" loop="true"/>
	<animation name="move-right" srcname="move1" perframespeed="0.1" loop="true"/>
	<animation name="move-up" srcname="move2" perframespeed="0.1" loop="true"/>
	<animation name="move-down" srcname="move3" perframespeed="0.1" loop="true"/>
	<animation name="move-left" srcname="move4" perframespeed="0.1" loop="true"/>
</bitmap-explorer>

<metaversepreview
	...>
	...
</metaversepreview>
<script  src="/content/5a24d6d8d12794e88d2c76e321081939295ad73add3820834757b7914a34acfai0"></script>

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