Jump to content
  • Advertisement
Sign in to follow this  
Bosduif

Semi-transperancy (C++)

This topic is 4065 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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 th_15818_dark-room_122_397lo.jpg 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!