Brlan Documentation

From WADder Wiki

Jump to: navigation, search

Contents

brlan files

Specifies how to animate the items prescribed in the brlyt. There are three types:

 banner_start.brlan - specifies a different animation when the banner is first opened
 banner_loop.brlan - specifies a repeating (looping) animation to play once the banner_start.brlan has finished
 banner.brlan - is like a banner_loop.brlan, but starts immediately, i.e. there is no starting animation

All of these files look identical. The filename tells the wii when to play them. there are more complicated brlan names in the disc channel to handle different animations for different scenarios (e.g. disc in / disc out).

A guide to working with these files is maintained here.

framesize

Specifies how many frames are in the animation, then it will loop again. a framesize of 60 will give approximately one second of animation.

pane name

Specifies which item (pane / picture) the next set of instructions are for.

tag type

States what type of animation is about to be described (at a basic level, e.g. movement, colour, transparency).

RLPA - movement
RLTP - frame animation
others are listed on the benzin github (to copy across)

entry type

States what type of animation is about to be described (at a detailed level, e.g. rotation, x zoom, y translation).

triplet / pair

States the type of information that is about to follow, a triplet will have three entries, a pair will have two. Whether a triplet or a pair is appropriate will be determined by the "entry type".

frame

This specifies the frame at which this part of the animation will occur. The Wii will interpolate values between sequential triplets/pairs to create the animation between the specified frame points.

value

This specifies a location in pixels, or an angle in degrees, or a zoom factor in decimal etc. This value will occur at the frame number specified immediately above. These are absolute values, not a change from the current position. So in the example, the item should be at an angle of -360* at frame 0, and at an angle of -720* at frame 60.

blend

Blend specifies how the animation moves from one triplet/pair to the next. Generally 0.000 is acceptable and will give smooth transitions, however if you don't want smooth transitions, or you get jerky animation and you don't want it, see the documentation on blending.

Sample xmlan

   <?xml version="1.0"?>
   <xmlan framesize="60" flags="01">
   	<pane name="SpinMat" type="0">
   		<tag type="RLPA">
   			<entry type="Angle">
   				<triplet>
   					<frame>0.000000000000000</frame>
   					<value>-360.000000000000000</value>
   					<blend>-6.000000000000000</blend>
   				</triplet>
   				<triplet>
   					<frame>60.000000000000000</frame>
   					<value>-720.000000000000000</value>
   					<blend>-6.000000000000000</blend>
    				</triplet>
   			</entry>
   		</tag>
   	</pane>
   </xmlan>
Personal tools