Jump to content

Images alpha


Krom

Recommended Posts

Posted

Hello, topic says it all. Imagine a black square with white circle inside - a simple png. Can I make that circle to be not the white one, but fully transparent, like you could see what's below the black square through this circle window. Of course I need this while in-Game..

Any suggestions are more than welcome.

Posted

For as far as I know you can only do that with an image editing program. I don't think there's a MTA command for it, and I also don't think it should be necessary.

Posted
Hello, topic says it all. Imagine a black square with white circle inside - a simple png. Can I make that circle to be not the white one, but fully transparent, like you could see what's below the black square through this circle window. Of course I need this while in-Game..

Any suggestions are more than welcome.

In image editing software you can save .png with transparency. That transparency is used in CEGUI (gui library used in MTA) too, so you can do that. In Photoshop you can just cut out that circle and it should be transparent (white and grey squares) when you save it.

Posted

50p, thankyou. Exactly, I was only interested does MTA "understand" the transparency of images and is able to display them correctly.

Posted

They are supported but in some images you will see a "white border" in places of transparency.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...