[Closed] Create Icon using 4 layers of images
Hello I need help to create a bitmap for icon.
The main goal is to combine 4 bitmaps into one and just after this to use it as icon
The alpha, multiply and background images I will get from script folder on hard drive, the color bitmap will be generated using bitmap function
colorLayer = bitmap 24 24 color:(color 25 49 78)
here is an example how I want to combine bitmap layers
I tried to use pasteBitmap function but didn’t figured out how to do it
I have attached an archive with source images
Download source images
I will appreciate any help or advice.
Thank you.
I’d probably do something like that with imagemagick, it’s like a command line photoshop and it’s free.
If you want to do it in mxs you could try using compositemap. Something like this:
(
local alph = bitmaptexture filename:"C:\\Documents and Settings\\danb\\My Documents\\Icon\\alpha.bmp"
local clr = bitmaptexture filename:"C:\\Documents and Settings\\danb\\My Documents\\Icon\\color.bmp"
local multi = bitmaptexture filename:"C:\\Documents and Settings\\danb\\My Documents\\Icon\\multiply.bmp"
local bground = bitmaptexture filename:"C:\\Documents and Settings\\danb\\My Documents\\Icon\\background.bmp"
fn compIcon a c m b =
(
d = compositeMap mapList:#(m,c) blendmode:#(0,5)
compositeMap maplist:#(b,d) mask:#(undefined,a)
)
local myIcon = compIcon alph clr multi bground
/*
local myMat = standard diffuseMap:myIcon
medit.PutMtlToMtlEditor myMat 1
*/
)
Thank you Raytracer05,
Script is great
I even can’t imagine how did you get this idea to use composite map :lightbulb
I’d probably do something like that with imagemagick, it’s like a command line photoshop and it’s free.
plastic, I will get a closer look to this program it looks useful, thank you