PDA

View Full Version : Create Icon using 4 layers of images


Arahnoid
02-17-2012, 05:25 PM
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
http://img831.imageshack.us/img831/5498/iconcr.png (http://imageshack.us/photo/my-images/831/iconcr.png/)

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 (http://dl.dropbox.com/u/1401690/icons.zip)

I will appreciate any help or advice.
Thank you.

plastic
02-17-2012, 08:32 PM
I'd probably do something like that with imagemagick, it's like a command line photoshop and it's free.

Raytracer05
02-20-2012, 11:55 AM
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
*/
)

Arahnoid
02-20-2012, 07:59 PM
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 :beer:

CGTalk Moderation
02-20-2012, 07:59 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.