Palettes

From wiki
Jump to: navigation, search


Introduction to Palettes

Stelumi uses a robust palette system for all the colors in the game. Palettes aren't used much these days, but they let you have lots of recolor and customization options for very little overhead. Stelumi uses the VOX format from Magicavoxel for art (mostly. It does understand QB files too, but they aren't optimal.) It also uses VOX files as palettes. The colors you see when you open a chair or tile in Magica are not the colors that Stelumi uses for that object in game. Stelumi looks at the object's drawable file to see what palette it should be using, and it looks in the prop or tile file to see what PalettePool the object is in. Stelumi then opens that palette's VOX file and uses the colors and material settings there to draw the object in game.


Colors

A stelumi palette has 256 colors. The very last color has to be pure black (x000000) and is reseved for the "transparent" color. You can't select or change this color in Magicavoxel (but if you decide to edit a palette PNG in another program and then load that file into magica if that last color isn't black things will break.) You basically select this color when you erase a voxel. So there are 255 colors total for you to use when creating a vox file. (If you need more see prop#layers.)

Stelumi's palettes are organized by material type. There's a wood material, a stone material, and so on. You don't have to use these categories, but if you do use them you can automatically hook the object you're creating into the palette system and have 10 variations of it instantly.

The top half (or the right side if you're looking at a PNG) is static. These colors will never change. They will always be there for you to use, and if you change them in a vox file or a palette that change won't register. These colors are defined in the Static palette. Leave that file alone when modding.

Static Palette
0 1 2 3 4 5 6 7
248 Plaster Ceiling Missing Black Transparent
240 Wood Trim Black Metal Mortar
232 Gold Jewels
224 Silver Jewels
216 Temple Rock Glass
208 Rock Glass
200 Bone Temple Rock
192 Gravilite Rust
184 Red Orange
176 Yellow Green
168 Dk Green Blue
160 Indigo Violet
152 Pink Peach
144 Dk Red Brown
136 Coffee Grey
128 Dk Grey Black
Light Temple Rock forms a gradient
0 1 2 3 4 5 6 7
248 8 6 4 3 1
240
232 7 5 2

This effectively means you have 128 colors to play with. This is the standard scheme that most of the basic color palettes follow:

Basic Color Palettes
0 1 2 3 4 5 6 7
120 Stained Wood
112 Brick
104 Stone
96 Leaf
88 Grass Lush Grass
80 Carpet/Tile
72 Painted Wood
64 Variable
56 Variable2
48 Water Light
40 Light
32 Fire Moss/Snow
24 Tile Trim Nail Detail1 Detail2
16 Dirt Roof
8 Natural Wood/Bark
0 Raw Wood White Paint/Metal Mortar Variable

You will find that as you move away from the color palettes this scheme breaks down more and more, especially into the Supplemental palettes. That's fine. When creating a new palette, your best bet is to ask yourself if there's an object already in game that exists and has colors that you want to use or add more options to. Make a copy of that asset and see where the colors it uses are in the palette. Reserve those spaces in your new custom palette for that purpose.

Materials

Note: There is a minor bug in Magicavoxel. Magica won't load the new material settings until you change palette colors after loading a file. To be certain you're seeing the correct material settings: Open the palette you want to work on in a new instance of Magica (Double click to open the file, don't open the program and open the file from there.) Once the file is open select a palette color. Now select a different palette color. The proper material settings should now be visible in Magica.

While Stelumi uses Magica's controls to set material settings, it does not use them in the same way. Don't assume that what you see in magica's render mode will look anything like stelumi's effects. Your best bet for understanding how a material will look is to find a block in game that behaves the way you like, then to check that block in magica to see which color is being used, check the prop or drawable for the correct palette, and then load the correct pallette vox into magica and check the material settings of the palette color you're interested in.

While magica limits certain materials to be combined with eachother (like emissive and metalic properties can't be applied to the same object.) This is not the case with Stelumi. All four used properties can be combined, so you can get an iridescent light for instance.

What follows are suggested min/max settings for each material type that stelumi uses.

Emission: This goes from 0 to 100. This does not affect how strongly the light of this object will affect other tiles or props. This only affects how bright the object itself will look. 50 is a good value for a fairly bright looking light. 100 will basically look like you're trying to stare into the sun. 5 or 10 are good choices for materials like gemstones or glass. Most of your lighting should probably be between 5 and 50.

Roughness: This goes from 0 to 100. 0 roughness is the shiniest most polished surface you can imagine. 100 roughness is matte and has no shine at all. By itself this setting isn't particularly interesting. You'll mostly use this to refine the metalic and IOR settings.

IOR: This is effectively iridescence. It's what gives the gemstones, glass, and water that faintly rainbow look. Iridescene only kicks in at 1.48 or higher. Setting it from 0.01-1.47 will in theory make it look metalic, but it can cause some slightly odd behavior. Either set this to 0 or 1.48 or higher. Note that IOR is very powerful and when set to 3.0 it will effectively block out any hint of the actual color in the palette. Use this effect sparingly. Most uses of it in Stelumi are 1.48, and the most extreme use is 1.6 for gemstones. This effect looks best on surfaces that have a lot of physical texture. If you're applying it to a large flat surface, 1.48 is highly suggested.

Metalic: This is the property that also makes something look shiny, but it's shiny in that metalic way where things also reflect off the metal and it isn't just a bright white glint. It's suggested that you pick a value of 50 or less. You can go up to 100, but like with emission that looks a bit like the metal is a step away from being molten. IOR will override this value.

Tips for Modders

  • Try to keep your palettes as compact as possible. Players will add more mods as they go and Stelumi's palette count does have a maximum limit.
  • While the game does handle QB files, all palette management and material settings pretty much have to be handled in Magicavoxel.
  • Magica loads palettes from left to right, bottom to top. The first pixel in Magica is the leftmost pixel in the PNG.
  • The PNG files are not used by the game, they only exist for the sake of your sanity while working in Magica. The Voxel Manager will export all the in-game palettes as they currently are so you can work with them in other editors or swap between them in magica to see how the palettes will apply to your model.
  • The rightmost pixel in the PNG (the upper right color in magica's palette) MUST BE BLACK. This is the transparency color. You cannot select it or use it in magica. It's alright to have another color in the palette be pure black. It won't cause issues.
  • If you're using a QB file: the game checks the palette in order. If you have a pure black color in the QB it will be assigned to the earliest identical color in the palette. If you aren't using pure black elsewhere it will be assiged to 254.
  • QB files won't always map the way you expect them to. Especially if a palette uses a color twice.) If you're having problems getting your QB to behave, use the Voxel Manager to convert it to VOX and edit any palette issues in magica.
  • When setting material settings Stelumi handles them differently than Magica does. Magica makes it look like an object can only be metalic OR emissive. It will save both values to the file though, even if you can only see one or the other at a time. If you're getting strange results you might have set a material setting in a different material set than the one that's visible.