Bump node should be based on object-space positions instead of texcoords

Abierto
#3,142 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp

Línea de trabajo

Read the Bump node implementation and its tests to find where it uses texture coordinates; the issue does not name specific files. Trace how object-space positions are provided to nodes, then assess the change against geometries with and without UVs and non-mesh geometries. Done means bump behavior uses object-space positions and remains consistent across the scale, view, and resolution cases described.

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

Descripción

Geometries don't always have UVs - in fact, some even don't have vertices or triangles, like SDFs / implicit geometries.
Height fields don't have to be UV-based either, like procedural 3D noise that is based on surface positions.
Having the Bump node tied to UVs, internally, means that any material authored with it can't be used for such geometries.
A scene may have a combination of meshes with UVs, ones without UVs, and non-mesh geometries.
Ideally, the Bump node would be agnostic to any of that.

It should also ideally be invariant across render resolution, view distance/orientation and to scene-unit/scale.
Using 3D object-space positions can achieve all that.

Object-space gets around portability issues across scene-unit/scale because by its own definition it side-steps the entire scene hierarchy.
When a scene is imported across scene-units, a top-level/trunk scaling transforms is typically applied onto the entire importer scene.
It does mean the bump would be tied to the local space of geometries, but the same is already true now with a UV-based approach.

Lenguaje dominante
C++
Estrellas
2.3k
Forks
472
Merge medio
1 d 4 h
PR fusionados (30 d)
7

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/MaterialX

Todos los issues de AcademySoftwareFoundation/MaterialX

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.