Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

texture function and unpremulted RGB output

Abierto
#1,917 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
cpp

Línea de trabajo

Comience rastreando la función de textura OSL y su gestión de los valores RGB y alpha; el issue no especifica archivos de implementación ni tests. Reproduzca el comportamiento con un bitmap en 3ds Max y, a continuación, defina y verifique una opción que preserve la salida RGB no premultiplicada sin romper el comportamiento existente de la textura.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
  1. In 3ds max (any version containing OSL) create an OSL node that reads bitmaps (Bitmap Lookup, UberBitmap, etc).
  2. Load a texture file that is clearly unpremultiplied.
  3. 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
Lenguaje dominante
C++
Estrellas
2.3k
Forks
414
Merge medio
2 d 14 h
PR fusionados (30 d)
13

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de AcademySoftwareFoundation/OpenShadingLanguage

Todos los issues de AcademySoftwareFoundation/OpenShadingLanguage

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.