Re: [clutter] How to mask two texture
Rakesh Kumar wrote: Hi Samuel, Sorry for late reply I was on vacation. You have asked for two images dummy.png and dummy1.jpg. So for your reference I am attaching two images and Also I am attaching the final out put. Please comment on this. RK. Your dummy.png is quite wholly transparent, that's why the resulting image is also transparent. Here is how it works: the two images are *combined* together, so the RGBA value of the composed image is the 'multiplication' of the two images. (the two images are not displayed one *over* the other). It means that the final image gets the transparency of dummy.png. dummy.png should be a mask : white where your want to see dummy1.png, fully transparent where you want to see the background. (and half-transparent where you want to *add* transparency to dummy1.png) Do you understand ? (my english is not very good...) -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
RE: [clutter] How to mask two texture
Thanks for your quick reply.I have just given a thought We are modulating the two images so any way it will get Color of both image.I have tried alpha test also but its not worked. I think I should try some different method. Rakesh Kumar wrote: Hi Samuel, Sorry for late reply I was on vacation. You have asked for two images dummy.png and dummy1.jpg. So for your reference I am attaching two images and Also I am attaching the final out put. Please comment on this. RK. Your dummy.png is quite wholly transparent, that's why the resulting image is also transparent. Here is how it works: the two images are *combined* together, so the RGBA value of the composed image is the 'multiplication' of the two images. (the two images are not displayed one *over* the other). It means that the final image gets the transparency of dummy.png. dummy.png should be a mask : white where your want to see dummy1.png, fully transparent where you want to see the background. (and half-transparent where you want to *add* transparency to dummy1.png) These four lines I didn't understand. Do you understand ? (my english is not very good...) -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
Re: [clutter] How to mask two texture
Rakesh Kumar wrote: Thanks for your quick reply.I have just given a thought We are modulating the two images so any way it will get Color of both image.I have tried alpha test also but its not worked. I think I should try some different method. I think you need 3 layers : - the basic image - composed with a second layer to add 'lightning' - composed with a 'scissor' mask Rakesh Kumar wrote: Hi Samuel, Sorry for late reply I was on vacation. You have asked for two images dummy.png and dummy1.jpg. So for your reference I am attaching two images and Also I am attaching the final out put. Please comment on this. RK. Your dummy.png is quite wholly transparent, that's why the resulting image is also transparent. Here is how it works: the two images are *combined* together, so the RGBA value of the composed image is the 'multiplication' of the two images. (the two images are not displayed one *over* the other). It means that the final image gets the transparency of dummy.png. dummy.png should be a mask : white where your want to see dummy1.png, fully transparent where you want to see the background. (and half-transparent where you want to *add* transparency to dummy1.png) These four lines I didn't understand. Do you understand ? (my english is not very good...) -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com