Springheel@Posted: Thu Aug 09, 2007 4:50 pm :
Still working on that gui menu....

I am trying to add a blend effect to the object images. What I'd like is something similar to a "hard light" effect in Photoshop.


For some reason, however, when I use blend modes in the material the image is not be transparent. Instead, there are solid black (or white, depending on the blend mode I use) boxes around the image.

The .tga itself is has a transparent background, and f I use blend blend, then the transparency renders properly, but that mode just looks like the object is drawn on top of the parchment--it doesn't actually 'blend' with the parchment at all.


Here's the material I'm using atm:

blend modulate
map guis/assets/hud/inventory_icons/healthpotion_icon.tga
alpha parm3

And this is what it looks like:


Oddly, the black doesn't fill the entire dimensions of the image--it seems to follow the shape of the object in the image.

Any ideas why this might be happening, or what blend mode could produce results similar to the one above?

The Happy Friar@Posted: Thu Aug 09, 2007 5:40 pm :
i haven't used blend modes in a while but would it be easier to save a copy of the blended image from photoshop?

For the second one it looks like those were selection boxes drug about & weren't part of the alpha.

rich_is_bored@Posted: Fri Aug 10, 2007 5:39 am :
You guys seem to be missing the point.

The whole idea behind transparency and blend modes is to spare the artist from having to bother with compositing images. It affords you the luxury of being able to move elements around without having to re-composite the images.

I suggest sticking with "blend blend" and trying to incorporate "translucent". Alternatively, you might be able to adjust the opacity of the GUI element itself instead of relying solely on the material shader.

The Happy Friar@Posted: Fri Aug 10, 2007 8:49 pm :
i get the point but if the object isn't going to move at all why tax the renderer (even if it is slightly) any extra? Keep it as simple as possible, less change for issues down the road.

what I would do, just for reference, is make a different material file for each blend mode on the object & place each one in the GUI. use the text tool to label each blend mode. Save. Then you have a reference for later use to see how they work.

rich_is_bored@Posted: Sat Aug 11, 2007 5:31 am :
Content in The Dark Mod must be reusable to aid third parties in creating their own missions. Compositing images is an option but ideally it should be a last resort.