Overview of multi-output shader work

Aperta
#296 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
cmake, cpp, python
Ambito
backend, tooling

Direzione di ricerca

This issue is organizational only and explicitly says not to submit code. It outlines changes across SceneObject and SceneClass, the scene_rdl2 Python module, RDL formats and UI utilities, shader definitions and generators in cmake_modules, and runtime evaluation and JSON export in moonray. Read those components to map the dependencies; completion would require coordinated multi-output support across them, but the issue does not define implementation details or acceptance criteria.

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

Descrizione

This issue is for organizational purposes only. No code should be promoted against this.

Currently Moonray shaders only have one output that doesn't have a name. Until recently the one output of Map shaders was always Color (RGB). Recently we added the ability to specify an output type but there is still only one and it still doesn't have a name.

To enable multiple outputs, shader objects need to allow for a list of named and typed outputs, there needs to be a way to bind a shader input to one of these outputs, and there needs to be a way for a shader to actually return those multiple outputs. We also need to update various tools to pass this information on to programs like Houdini.

Currently multiple outputs only seem to exist for what moonray calls map shaders.

Adding these capabilities will touch:
  • SceneObject and SceneClass in scene_rdl2 repo
  • scene_rdl2 python module in scene_rdl2 repo
  • introduce format changes to RDL files in scene_rdl2 repo
  • utilities for generating user interfaces for shader node (e.g. Houdini HDA files) in scene_rdl2 repo
  • defining how the actual .cc and .ispc multi-output shaders work
  • updates to shader definition json file format that ispc_dso_generate expects in cmake_modules repo
  • update the generation of attribute.cc and attributes.isph in ispc_dso_generate in cmake_modules repo
  • update evaluation of shaders at runtime in Map in moonray repo
  • update generation of coredata json files in rdl2_json_exporter in moonray repo
Lingua principale
CMake
Stelle
4.7k
Fork
321
Merge medio
13m
PR unite (30g)
3

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 OpenMoonRay/openmoonray

Tutte le issue di OpenMoonRay/openmoonray

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.