Jump to content
Sign in to follow this  
Balschoiw

Transparent ressource file whole screen

Recommended Posts

Is it possible to create a screencovering transparent ressource file ?

I want to achieve a colour filter effect with this.

Any experiences, ideas or knowlege on that ?

Share this post


Link to post
Share on other sites

If you need the color filter at day and night, try it at night also.

Even with opacity 0.185 an orange color filter I've created, still adds slightly higher contrast/nightvision to the picture.

Share this post


Link to post
Share on other sites

Additional question:

As the OFP colour determination is done the additive way like it´s used for monitors I now want to now if anyone has compiled a list for the settings needed to get a certain set of colours ?

The format is:

colorBackground[] = {0, 0, 0, 0.45};

where the first number is for red, the second for green, the third for blue and the last one is aplha transparency.

So does anyone have a set of numbers ready that represents mixed colours like brown, grey, etc ?

I checked the Internet for a mixing table but found nothing really informative that determines the accurate mixing settings for colours like the ones mentioned above.

Can anyone help ?

BIS maybe ?

Share this post


Link to post
Share on other sites

Ok....

After some search on english pages I came up with this table that represents the mix colours in percentage settings which should be good enough to achieve good results:

Percent Color Codes

This table shows a large variety of colours that can be mixed with different RGB settings and delivers percentage numbers of the RGB values for the colours.

The values are listed like this:

sepia rgb(37%, 15%, 7%)

Where sepia is the name of the color and the percentage settings go for red, green and blue

To transport the settings into OFP you only need to take the percentage numbers and insert them into your code like this:

colorBackground[] = {0.37, 0.15, 0.07, 0.45};

This will get you a transparent resource with the colour tone "sepia". Play around with the transparancy factor at the end of the values to adjust the visual impression.

Almost every colour is present in the linked table. A good ressource.

Maybe something for Mission Editing FAQ ?

Share this post


Link to post
Share on other sites

Glad to help you, Balschoiw.

And the color codes you've found out it just what I need to avoid to get mad every time I work with description related stuffs!

Klavan.

Share this post


Link to post
Share on other sites

If you want to compose your own color, just do it with the color selection of paint or any other programm.

Then do some maths and you've got the right values:

Quote[/b] ]

R: 125 G: 93 B: 214

125 * 100 / 256 = 48,8%

93 * 100 / 256 = 36,3%

214 * 100 / 256 = 83,6%

colorBackground[] = {0.488, 0.363, 0.836, 1};

If you remove *100, you will get the right number at once.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×