Black textures as hit faders appear as transparent.

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

Black textures as hit faders appear as transparent.

Post by mattwla » 12 Feb 2018, 01:53

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: 2119
Joined: 18 Feb 2012, 11:51
Contact:

Re: Black textures as hit faders appear as transparent.

Post by scrawl » 12 Feb 2018, 17:58

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: 47
Joined: 17 Jul 2017, 14:45

Re: Black textures as hit faders appear as transparent.

Post by mattwla » 14 Feb 2018, 15:46

Thank you, exactly the info I needed,

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests