Editing
Brighter Shores:Color masking
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Example== The process for color masking can be seen by its inputs and outputs, but the exact algorithm is not known. We can make approximations based on the resulting images that we see. Here is an example for [[Coarse Hickory Post]], [[Coarse Oak Post]], and [[Coarse Pine Post]]. Each type of item starts off with two images: a base image, also called a texture, and a colour mask: {| |[[File:Coarse Post Texture.png]] |[[File:Coarse Post Mask.png]] |[[File:Coarse Hickory Post.png]] |[[File:Coarse Oak Post.png]] |[[File:Coarse Pine Post.png]] |- |The texture |The mask |The Hickory result |The Oak result |The Pine result |} The texture image shows the detail of the item. Note that while the texture is not grayscale image ''everwhere'', it ''is'' grayscale in the areas that correspond to the mask. For these posts, that is the whole image, but for Armor dyes, there is color on the non-mask sections of the image. The mask image shows the areas where the color is to be applied. It is also monochrome, but usually not grayscale. In this example it is monochrome red, as there is only one mask to be applied. Some images, most noteable potion Preparations, have a two-color mask with a Red area and a Green area, to show two different areas which get different colors applied to them, for the two ingredients of the preparation. For each pixel in the two input images, there are only two values: the grayscale value of the texture image, <math>K</math>, and the red value of the mask image, <math>M</math>. The output image has a full colour for each of these pixels, so it has a red value, <math>R</math>, a green value, <math>G</math>, and a blue value, <math>B</math>. There exists some color transform functions: :<math>R = f_R (K,M)</math> :<math>G = f_G (K,M)</math> :<math>B = f_B (K,M)</math> To convert the input to the output. It is important to know that '''there is no cache data for what these functions are'''.
Summary:
Please note that all contributions to Brighter Shores Wiki are considered to be released under the CC BY-NC-SA 3.0 (see
Brighter Shores:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Project page
Discussion
British English
Views
Read
Edit source
View history
More
Refresh
Search
Discord
Discord
Navigation
About us
User help
Random page
Recent changes
Malevolent Floor Tentacle
2m
ago
-
Mysticalia
Tightgrip Floor Tentacle
3m
ago
-
Mysticalia
Sharp Snap Floor Tentacle
4m
ago
-
Mysticalia
Darkvein Floor Tentacle
4m
ago
-
Mysticalia
Show more...
Brighter Shores
Professions
Factions
Episodes
Premium Pass
Monsters
Quests
Community
Policies
Tools
What links here
Related changes
Special pages
Page information