Line 492:
Line 492:
* I'll just give the raw data which can then be translated to your library of choice (all tests were done with GRRLIB so some tweaking may be needed)
* I'll just give the raw data which can then be translated to your library of choice (all tests were done with GRRLIB so some tweaking may be needed)
−
−
* We'll be drawing these in the proper order too.
* Because all of these individual parts have different anchor points, we would be unable to properly scale and rotate our final mii because each piece would scale and rotate around its individual anchor point. THEREFORE you should build up your mii, and store the resulting parts into it's OWN image file and then you can do whatever you want with your newly drawn mii image.
* Because all of these individual parts have different anchor points, we would be unable to properly scale and rotate our final mii because each piece would scale and rotate around its individual anchor point. THEREFORE you should build up your mii, and store the resulting parts into it's OWN image file and then you can do whatever you want with your newly drawn mii image.
Line 499:
Line 497:
** Because of this technique, the X,Y coordinates you will see in my example below are just onto the screen so that the above Compo commands can capture the image... you could then display the resulting image wherever you wanted afterwards.
** Because of this technique, the X,Y coordinates you will see in my example below are just onto the screen so that the above Compo commands can capture the image... you could then display the resulting image wherever you wanted afterwards.
+
+
* We'll be drawing these in the proper order too.
+
* REMEMBER TO DEFINE YOUR ANCHOR POINTS. Otherwise these positions, scales, and rotations will be all off!
=== Hair BG ===
=== Hair BG ===
Line 508:
Line 509:
*Color: haircol[mii.hairColor]
*Color: haircol[mii.hairColor]
*Tile Number: hairbg[hairfg[mii.hairType]]
*Tile Number: hairbg[hairfg[mii.hairType]]
+
+
=== Head ===
+
*X Pos: 230
+
*Y Pos: 200
+
*Image File: mii_heads.png
+
*Rotation: 0
+
*Scale: 1
+
*Color: skincol[mii.skinColor]
+
*Tile Number: mii.faceShape
+
+
=== Facial Feature ===
+
*X Pos: 230
+
*Y Pos: 200
+
*Image File: mii_features.png
+
*Rotation: 0
+
*Scale: 1
+
*Color: skincol[mii.skinColor]
+
*Tile Number: if(feature=2) then tile number is tile 32 and 2... else tile number = feature.
+
+
=== Beard ===
+
*X Pos: 230
+
*Y Pos: 200
+
*Image File: mii_beards.png
+
*Rotation: 0
+
*Scale: 1
+
*Color: haircol[mii.facialHairColor]
+
*Tile Number: ((mii.beardType-1)*8)+mii.faceShape
+
+
=== Mole ===
+
*X Pos: 252+(4*mii.moleHorizPos)
+
*Y Pos: 212+(2.8*mii.moleVertPos)
+
*Image File: mii_mole.png
+
*Rotation: 0
+
*Scale: .2+(mii.moleSize*0.1)
+
*Color: N/A
+
*Tile Number: N/A
+
+
=== Eyes ===
+
*X Pos Left Eye: 272+(2.6*mii.eyeHorizSpacing)
+
*X Pos Right Eye: 254-(2.6*mii.eyeHorizSpacing)
+
*Y Pos Both Eyes: 184+(2.8*mii.eyeVertPos)
+
*Image File: mii_eyes1(2)(3).png
+
*Rotation Left Eye: 11.25*(7-mii.eyeRotation)
+
*Rotation Right Eye: -11.25*(7-mii.eyeRotation)
+
*Scale: .3+(mii.eyeSize*0.1)
+
*Color for mii_eyes1 and eyes3: N/A
+
*Color for mii_eyes2: eyecol[mii.eyeColor]
+
*Tile Number Left Eye: eyes[mii.eyeType]
+
*Tile Number Right Eye: 95-eyes[mii.eyeType]
+
+
=== Eyes Brows ===
+
*X Pos Left Eye: 288+(2.6*mii.eyebrowHorizSpacing)
+
*X Pos Right Eye: 256-(2.6*mii.eyebrowHorizSpacing)
+
*Y Pos Both Eyes: 166+(2.8*mii.eyebrowVertPos)
+
*Image File: mii_eyebrows.png
+
*Rotation Left Eye: 11.25*(11-mii.eyebrowRotation)
+
*Rotation Right Eye: -11.25*(11-mii.eyebrowRotation)
+
*Scale: .3+(mii.eyebrowSize*0.1)
+
*Color: haircol[mii.eyebrowColor]
+
*Tile Number Left Eye: eyebrows[mii.eyebrowType]
+
*Tile Number Right Eye: 53-eyebrows[mii.eyebrowType]
+
+
+
=== Mouth ===
+
*X Pos: 260
+
*Y Pos: 220+(2.6*mii.lipVertPos)
+
*Image File: mii_lips.png
+
*Rotation: 0
+
*Scale: .2+(mii.lipSize*0.1)
+
*Color: if(lips[mii.lipType]==1 or 6 or 11 or 17 or 19 then: lipcol[mii.lipColor]
+
*Color: else: N/A
+
*Tile Number: lips[mii.lipType]
+
+
+
=== Mustache ===
+
*X Pos: 260
+
*Y Pos: 244+(2.9*mii.mustacheVertPos)
+
*Image File: mii_mustache.png
+
*Rotation: 0
+
*Scale: .2+(mii.mustacheSize*0.1)
+
*Color: haircol[mii.facialHairColor]
+
*Tile Number: mii.mustacheType-1
+
+
+
=== Nose ===
+
*X Pos: 265
+
*Y Pos: 220+(2.6*mii.noseVertPos)
+
*Image File: mii_noses.png
+
*Rotation: 0
+
*Scale: .2+(mii.noseSize*0.1)
+
*Color: skincol[mii.skinColor]
+
*Tile Number: noses[mii.noseType]
+
+
+
=== Hair FG ===
+
*X Pos: 230
+
*Y Pos: 190
+
*Image File: mii_hairs1(2).png
+
*Rotation: 0
+
*Scale: 1 (Horizontal scale set to -1 for reverse part)
+
*Color: haircol[mii.HairColor]
+
*Tile Number: if(hairfg[mii.hairType]<56) then: hairfg[mii.hairType] on mii_hairs1.png
+
*Tile Number: else: hairfg[mii.hairType]-56 on mii_hairs2.png
+
+
+
=== Glasses ===
+
*X Pos: 200
+
*Y Pos: 195+(2.6*mii.glassesVertPos)
+
*Image File: mii_glasses.png
+
*Rotation: 0
+
*Scale: .1+(mii.glassesSize*0.1)
+
*Color: FOR mii.glassesType < 6: glassescol[mii.glassesColor]
+
*Color: FOR mii.glassesType => 6: the glasses are color N/A and the lenses are color glassescol[mii.glassesColor]
+
*Tile Number: For mii.glassesType < 6: mii.glassesType-1
+
*Tile Number: For mii.glassesType => 6: the glasses are tile mii.glassesType-1 and the lenses are tile mii.glassesType+2
+
*Tile Number: noses[mii.noseType]
== Example ==
== Example ==