Libmii/Rendering Miis: Difference between revisions

From WiiBrew
Jump to navigation Jump to search
Mdbrim (talk | contribs)
Mdbrim (talk | contribs)
Line 7: Line 7:


=== Face Shape ===
=== Face Shape ===
* '''Image File:''' mii_heads.png contains the 8 different face shapes used by the Miis.
* '''Image File:''' mii_heads.png (contains the 8 different face shapes used by the Miis)
** ''Image Notes:'' image is 480x240 with 8 tiles of 120 x 120 each.
* '''Variable from libmii:''' mii.faceShape
* '''Variable from libmii:''' mii.faceShape
* '''Possible Values:''' 0 - 7
* '''Possible Values:''' 0 - 7 (corresponds to the order of tiles in mii_heads.png)
 
* '''


=== Hair ===
=== Hair ===

Revision as of 03:04, 6 April 2010

This page is for describing how to use libmii to draw your Miis. The goal will be to eventually have instructions and directions for use with each of the popular graphics library and a raw example not requiring a library.

I'll also post the standard basic arrangement of each sprite so that users can easily create the commands for the graphics library of choice.

Body Parts

The following discusses each of the body parts and how to arrange each sprite as far as location, size, and rotation and where the anchor fix for each sprite should be in order to scale and rotate around the correct coordinates. The sprite files can be found (insert sprite link here)

Face Shape

  • Image File: mii_heads.png (contains the 8 different face shapes used by the Miis)
    • Image Notes: image is 480x240 with 8 tiles of 120 x 120 each.
  • Variable from libmii: mii.faceShape
  • Possible Values: 0 - 7 (corresponds to the order of tiles in mii_heads.png)

Hair

Eye Brows

Eyes

Noses

Mouth

Beard

Mustache

Glasses

Facial Features

Mole

Layers

Putting it all together

Example