You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a 3ds max user I am going to describe an issue with OSL from a 3ds max perspective, but I have been told that the issue is not with the 3ds max implementation of OSL but the OSL system itself:
Actual behavior: In 3ds max, using OSL to read bitmaps will always produce premultiplied RGB channel output.
Expected behavior: There should be an argument controlling whether to premultipliy RGB channels or not.
Composing materials is very much like compositing in general, and many times you need the raw RGB output unaffected by the alpha. The OSL texture function should contain an argument whether to premultiply the RGB channels or leave them untouched (unpremulted).
Steps to Reproduce
In 3ds max (any version containing OSL) create an OSL node that reads bitmaps (Bitmap Lookup, UberBitmap, etc).
Load a texture file that is clearly unpremultiplied.
Output only the RGB channels into another node and preview the output. The result is always premultiplied, meaning the RGB channels have been multiplied by the alpha even though you only expect the untouched RGB channels.
Versions
Not sure about the version specifics here. All I know is that this issue exists in whatever version of OSL is used by 3ds max 2023, 2024 and 2025.
OSL branch/version: n/a
OS: n/a
C++ compiler: n/a
LLVM version: n/a
OIIO version: n/a
The text was updated successfully, but these errors were encountered:
Problem
As a 3ds max user I am going to describe an issue with OSL from a 3ds max perspective, but I have been told that the issue is not with the 3ds max implementation of OSL but the OSL system itself:
Actual behavior: In 3ds max, using OSL to read bitmaps will always produce premultiplied RGB channel output.
Expected behavior: There should be an argument controlling whether to premultipliy RGB channels or not.
Composing materials is very much like compositing in general, and many times you need the raw RGB output unaffected by the alpha. The OSL texture function should contain an argument whether to premultiply the RGB channels or leave them untouched (unpremulted).
Steps to Reproduce
Versions
Not sure about the version specifics here. All I know is that this issue exists in whatever version of OSL is used by 3ds max 2023, 2024 and 2025.
The text was updated successfully, but these errors were encountered: