Here are a couple of weird little quirks when applying alpha textures to material enabled objects.
I these both these are essentially the same bug.
Repro 1
Steps To Reproduce
Rez a box.
Edit the box -> Texture tab
Click on the diffuse texture thumbnail to open the texture picker.
Apply any diffuse alpha texture to the box, for example the Water - ripple layer 2 texture from the Library.
Observe that before you click OK to close the texture picker, the texture previewed on the box renders correctly with alpha.
Set the diffuse texture back to default plywood.
Add any specular map to the box - the default or blank spec map will do.
Set the diffuse texture again to the Library Water - ripple layer 2 texture via the texture picker.
Observed Behaviour
Before you click OK to close the texture picker, the Water - ripple layer 2 texture preview on the box renders without alpha.
As soon as you click OK to close the texture picker, the Water - ripple layer 2 texture renders correctly with alpha again.
See Video 1 linked.
Bug also reproduces when a normal map is applied to the box instead of a specular map.
Bug also reproduces when both a normal and a specular map are applied to the box.
Expected Behaviour
The texture preview on the materials enabled box should render with alpha
Repro 2
Steps To Reproduce
Rez a box.
Edit box -> Texture tab
Open inventory and drag any texture with alpha over into the diffuse texture thumbnail, you can use the Water - ripple layer 2 texture from the library again.
Observe in the build tool texture tab, the alpha mode shows "Alpha Blending" as expected.
Set the diffuse texture back to the default plywood or blank (or any texture without alpha).
Apply a specular map to the box - the default or blank spec map will do.
Switch back to the diffuse texture and drag the Water - ripple layer 2 texture from inventory library into the texture thumbnail again.
Observed Behaviour
Observe that the Water - ripple layer 2 texture renders without alpha on the box and the build floater shows "Alpha Mode" None.
See Video 2 linked
Bug also reproduces when a normal map is applied to the box instead of a specular map.
Bug also reproduces when both a normal and a specular map are applied to the box.
Expected Behaviour
The Water - ripple layer 2 texture should render the alpha on the box and the alpha mode in the build floater should be Alpha Blending, not None.
Here are a couple of weird little quirks when applying alpha textures to material enabled objects. I these both these are essentially the same bug.
Repro 1
Steps To Reproduce
Rez a box.
Edit the box -> Texture tab
Click on the diffuse texture thumbnail to open the texture picker.
Apply any diffuse alpha texture to the box, for example the Water - ripple layer 2 texture from the Library.
Observe that before you click OK to close the texture picker, the texture previewed on the box renders correctly with alpha.
Set the diffuse texture back to default plywood.
Add any specular map to the box - the default or blank spec map will do.
Set the diffuse texture again to the Library Water - ripple layer 2 texture via the texture picker.
Observed Behaviour
Before you click OK to close the texture picker, the Water - ripple layer 2 texture preview on the box renders without alpha.
As soon as you click OK to close the texture picker, the Water - ripple layer 2 texture renders correctly with alpha again.
See Video 1 linked.
Bug also reproduces when a normal map is applied to the box instead of a specular map.
Bug also reproduces when both a normal and a specular map are applied to the box.
Expected Behaviour
The texture preview on the materials enabled box should render with alpha
Repro 2
Steps To Reproduce
Rez a box.
Edit box -> Texture tab
Open inventory and drag any texture with alpha over into the diffuse texture thumbnail, you can use the Water - ripple layer 2 texture from the library again.
Observe in the build tool texture tab, the alpha mode shows "Alpha Blending" as expected.
Set the diffuse texture back to the default plywood or blank (or any texture without alpha).
Apply a specular map to the box - the default or blank spec map will do.
Switch back to the diffuse texture and drag the Water - ripple layer 2 texture from inventory library into the texture thumbnail again.
Observed Behaviour
Observe that the Water - ripple layer 2 texture renders without alpha on the box and the build floater shows "Alpha Mode" None.
See Video 2 linked
Bug also reproduces when a normal map is applied to the box instead of a specular map.
Bug also reproduces when both a normal and a specular map are applied to the box.
Expected Behaviour
The Water - ripple layer 2 texture should render the alpha on the box and the alpha mode in the build floater should be Alpha Blending, not None.
Links
Related
Original Jira Fields
| Field | Value | | ------------- | ------------- | | Issue | BUG-233112 | | Summary | Diffuse alpha texture behaving like opaque texture on materials enabled object | | Type | Bug | | Priority | Unset | | Status | Accepted | | Resolution | Triaged | | Reporter | Whirly Fizzle (whirly.fizzle) | | Created at | 2022-12-22T00:14:59Z | | Updated at | 2022-12-22T16:20:02Z | ``` { 'Build Id': 'unset', 'Business Unit': ['Platform'], 'Date of First Response': '2022-12-22T10:16:42.408-0600', 'ReOpened Count': 0.0, 'Severity': 'Unset', 'System': 'SL Viewer', 'Target Viewer Version': 'viewer-development', 'What just happened?': 'Filling in...', 'What were you doing when it happened?': '...', 'What were you expecting to happen instead?': '...', 'Where': 'Any region', } ```