Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

[BUG-4709] On Materials enabled viewers, textures containing alpha display as full bright if basic shaders are disabled #13232

Closed
sl-service-account opened this issue Dec 13, 2013 · 3 comments

Comments

@sl-service-account
Copy link

sl-service-account commented Dec 13, 2013

Steps To Reproduce

  1. Rez a cube and add any diffuse texture containing alpha. I attached the test texture I used for my attached images. Leave the alpha mode on default (alpha blending).

  2. Set sun to sunset (not vital step, it just makes the problem easier to see).

  3. Observe how the texture appears on the cube with both basic shaders enabled and disabled.

  4. Compare results on a pre-materials viewer build.

    Observed Behaviour.

  • With basic shaders enabled, the texture renders as expected.

    http://i.imgur.com/0Mttlo4.png

  • With basic shaders disabled, the texture renders as if full bright is enabled.

    http://i.imgur.com/TUJ4bd7.png

  • On pre-material viewer builds, the texture renders correctly with basic shaders disabled. It does not appear full bright.

    Expected Behaviour

    Textures containing alpha should not display as full bright when basic shaders are disabled. Especially textures set to the default of alpha blending which is not a new materials feature.

    This is a complaint we have had from a lot of Firestorm users on low end systems who cannot enable basic shaders since we released with materials.

    Other Information.

    On materials enabled viewers with basic shaders disabled, any texture set to alpha blending or alpha masking will be full bright.
    Textures set to emissive mask are not full bright.

    Questions.

    Please can someone verify if these 2 other cases with alpha modes are expected behaviour?
    If not I will file issues for them.

Alpha Masking

  • Using same repro object as above, set alpha mode to alpha masking with mask cutoff = 0
    With basic shaders enabled (ALM can be enabled or disabled, result is the same) you will see:

    http://i.imgur.com/F4UPuvV.png

    With basic shaders disabled you will see:

    http://i.imgur.com/Y9dFG76.png

Is it expected that alpha masking does not work when basic shaders are disabled?
I cannot find any documentation that states if this is expected or not.

Emissive Mask

  • Using same repro object as above, set alpha mode to Emissive mask.

  • With ALM disabled you will see:

    http://i.imgur.com/DpSetDe.png

  • With ALM enabled you will see:

    http://i.imgur.com/zmovefG.png

Is it expected that emissive mask only works with ALM enabled?
Pretty sure this one is expected but again I cant find any docs actually stating that.

Thanks :)

Attachments

Original Jira Fields
Field Value
Issue BUG-4709
Summary On Materials enabled viewers, textures containing alpha display as full bright if basic shaders are disabled
Type Bug
Priority Unset
Status Closed
Resolution Accepted
Reporter Whirly Fizzle (whirly.fizzle)
Created at 2013-12-13T10:18:50Z
Updated at 2020-04-20T17:01:32Z
{
  'Business Unit': ['Platform'],
  'Date of First Response': '2014-05-27T19:29:11.148-0500',
  'System': 'SL Viewer',
  'Target Viewer Version': 'viewer-development',
  'What just happened?': '.',
  'What were you doing when it happened?': 'filling in.....',
  'What were you expecting to happen instead?': '.',
}
@sl-service-account
Copy link
Author

Marissa Linden commented at 2014-05-28T00:29:11Z

Hi Whirly,

I believe this is all expected behavior.

  1. Is it expected that alpha masking does not work when basic shaders are disabled?

Yes. The only mode of alpha rendering is alpha blending in pre-materials viewers. In a Materials enabled viewer, the mask cutoff sets the level of masking. So, a masking cutoff value of '0' is going to make the transparent area opaque. The work around here, is to use alpha blending rather than masking.

2)Is it expected that emissive mask only works with ALM enabled?

Yes. Emissive Masking is not supported without ALM enabled.

I think we can close this one out. What do you think?

@sl-service-account
Copy link
Author

Whirly Fizzle commented at 2014-05-28T09:39:40Z

Hai Marissa!

If it is also expected behaviour that textures containing alpha render as full bright when basic shaders are disabled then yep, please close this out.
If this is exoected, please let me know so I can close out this issue over on the Firestorm JIRA too ;)

@sl-service-account
Copy link
Author

Marissa Linden commented at 2014-05-28T17:16:21Z

I checked internally with an engineer and this is indeed a bug. But, considered low priority.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant