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

Aperta
#3,142 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C++
Stelle
2.3k
Fork
472
Merge medio
1g 4h
PR unite (30g)
7

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AcademySoftwareFoundation/MaterialX

Tutte le issue di AcademySoftwareFoundation/MaterialX

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.