Sign in to follow this  
Bosduif

Semi-transperancy (C++)

Recommended Posts

Hi For the people here this will probably be easy I'm making a little point & click game/application, my background is a pre-rendered 3D room used in C++ as a bitmap background The room is dark and the player should be able to look around like with a flashlight [URL=http://img171.imagevenue.com/img.php?image=15818_dark-room_122_397lo.jpg][IMG]http://img171.imagevenue.com/loc397/th_15818_dark-room_122_397lo.jpg[/IMG][/URL] This is what I mean, little example The flashlight circle should be around the mouse pointer. What would be the best way to make the outer edges of the circle less transparant so it looks a bit more realistic

Share this post


Link to post
Share on other sites
What you're looking for is anti-aliasing.
I'm no expert on the subject, but if you Google it, you might turn up a few tutorials that could help you.

Share this post


Link to post
Share on other sites
It's called feathering. Most image editing tools can do it.
Here's a transparent 500x500 using a white feathered circled with a scratch texture. Looks better on black.
However did you just want an image or code to perform this effect?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this