Apply a diffuse texture containing alpha to the box prim - for example Test png.png attached.
Set Alpha Mode to Alpha Masking with a Mask Cutoff of 5.
Observe that alpha masking works as expected when ALM is enabled or disabled - see Fig 1 attached.
Set Bumpiness to any legacy setting, for example Darkness.
Observe the box prim with both ALM enabled and ALM disabled.
Observed Behaviour
When ALM is enabled, the diffuse texture is not masked - see Fig 2 attached.
When ALM is disabled, the diffuse texture is masked correctly - see Fig 3 attached.
Expected Behaviour
Alpha masking should work when ALM is enabled on objects using legacy bump.
Other Information
I saw a tree yesterday that was really broken when ALM was enabled and this turned out to be the cause - the tree had alpha masking set on the foliage (a common trick to stop alpha fighting) and the foliage also had a Darkness bumpmap set. Darkness and brightness legacy bumpmaps are still widely used on new content.
See Fig 4 & 5 attached.
Fig 4 - ALM disabled.
Fig 5 - ALM enabled.
Original Jira Fields
| Field | Value |
| ------------- | ------------- |
| Issue | BUG-7263 |
| Summary | Alpha masking does not work when ALM is enabled if the object has a legacy bump set. |
| Type | Bug |
| Priority | Unset |
| Status | Accepted |
| Resolution | Accepted |
| Reporter | Whirly Fizzle (whirly.fizzle) |
| Created at | 2014-09-13T22:09:14Z |
| Updated at | 2015-06-25T13:30:27Z |
```
{
'Business Unit': ['Platform'],
'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?': '.',
}
```
Steps To Reproduce
Rez a box prim
Apply a diffuse texture containing alpha to the box prim - for example Test png.png attached.
Set Alpha Mode to Alpha Masking with a Mask Cutoff of 5.
Observe that alpha masking works as expected when ALM is enabled or disabled - see Fig 1 attached.
Set Bumpiness to any legacy setting, for example Darkness.
Observe the box prim with both ALM enabled and ALM disabled.
Observed Behaviour
When ALM is enabled, the diffuse texture is not masked - see Fig 2 attached.
When ALM is disabled, the diffuse texture is masked correctly - see Fig 3 attached.
Expected Behaviour
Alpha masking should work when ALM is enabled on objects using legacy bump.
Other Information
I saw a tree yesterday that was really broken when ALM was enabled and this turned out to be the cause - the tree had alpha masking set on the foliage (a common trick to stop alpha fighting) and the foliage also had a Darkness bumpmap set. Darkness and brightness legacy bumpmaps are still widely used on new content. See Fig 4 & 5 attached. Fig 4 - ALM disabled. Fig 5 - ALM enabled.
Attachments
Original Jira Fields
| Field | Value | | ------------- | ------------- | | Issue | BUG-7263 | | Summary | Alpha masking does not work when ALM is enabled if the object has a legacy bump set. | | Type | Bug | | Priority | Unset | | Status | Accepted | | Resolution | Accepted | | Reporter | Whirly Fizzle (whirly.fizzle) | | Created at | 2014-09-13T22:09:14Z | | Updated at | 2015-06-25T13:30:27Z | ``` { 'Business Unit': ['Platform'], '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?': '.', } ```