Black textures as hit faders appear as transparent.

Everything about development and the OpenMW source code.
Post Reply
mattwla
Posts: 59
Joined: 17 Jul 2017, 14:45

Black textures as hit faders appear as transparent.

Post by mattwla »

Hi,

I am trying to change the hitfader texture for my game.

I can edit the texture from MW in gimp, and I can make it any color I want (tried green and blue). I can make it gray too. But, if it is black, it just appears as totally see through in game.

Any suggestions how to get around this? Think it is a matter of how the texture is saved, or is this something to conquer through source? I've been hunting for MyGui things to change around.

Appreciate any leads,

Thank you
User avatar
scrawl
Posts: 2152
Joined: 18 Feb 2012, 11:51

Re: Black textures as hit faders appear as transparent.

Post by scrawl »

Morrowind's hit fader uses additive rendering. If you add black (=0) to something, nothing will happen.

openmw_layers.xml:

Code: Select all

    <Layer name="AdditiveOverlay" type="AdditiveLayer" pick="false"/>
Just remove the type="AdditiveLayer".
mattwla
Posts: 59
Joined: 17 Jul 2017, 14:45

Re: Black textures as hit faders appear as transparent.

Post by mattwla »

Thank you, exactly the info I needed,
Post Reply