panel masking

Posted By: Roel

panel masking - 11/02/06 14:22

You know, in photoshop you can add (layer) masks. just like an alpha channel.
you can get an effect like this:

[image]http://tkfiles.storage.msn.com/x1pbglk-vqL4BsOO2twyhWs2IvhExnIJtnMti8QA4BrRohABdKndYp679hSifNcr1xPWGbTA16oVZq3R155Vn24aboKO4RZLgi5s0eQBrjIDzYvQfeN0bCHgs7RRKhfddVw2Iu[/image]
red is visible, black is the image border and white is nothing

this is possible with 3dgs.
with panel masking I mean that only the place where 2 panels overlap is visible.
like this
[image]http://tkfiles.storage.msn.com/x1pbglk-vqL4BsOO2twyhWs2IvhExnIJtnMti8QA4BrRoiyzhQAV1yukHbIKlc0p2C0pZQAVdHlzJSXxpQXr9Seu6gfpAyb4QLblbhOSNdeJxLbixStwjiC1dQc8Sath5g6X86zy[/image]

red is visible, black is the image border and white is nothing, yellow is invisible
this isn't possible with 3dgs
the smaller image is the mask and only the red part of the big image is visible.

maybe the code can look this

//the mask
panel pan1
{
}
//the real panel
panel pan2
{
mask = pan1;
}
Posted By: Roel

Re: panel masking - 11/02/06 14:22

hmm where are the pictures?
© 2024 lite-C Forums