feat(instances): Order each mesh's instances by a key
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- react-native, typescript
- Ambito
- computer-graphics, web-dev
Direzione di ricerca
Start with the kind API where visible and pose are defined, then trace the compute pass cull and its sorter to see how mesh instance lists are recorded. Inspect how cameras.current is exposed to description functions and identify the point where culling requires cull: true. The change is complete when an order hook returns a per-instance number, visible rows are sorted ascending within each mesh, and existing behavior remains unchanged for kinds without the hook; the depth-only and cross-mesh sorting questions still need resolution.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
A renderer draws each mesh's instances in row order. With blend: 'translucent' in a description without passes.accumulation and passes.revealage, a far instance can cover a near one of the same mesh. A program can order its own drawings before record, but not the instances inside one mesh's draw.
Add an order hook to the kind, beside visible and pose: a 'use gpu' function that returns a number per instance. Culling renderers list each mesh's visible rows by that number, ascending, in every description, sorting with sorter in the compute pass cull already records into. The hook reads the description's camera through cameras.current, so back to front is one line:
order: (instance) => {
'use gpu';
return -std.distance(cameras.current.$.position, instance.position);
},
The same hook covers front to back for opaque overdraw, or a fixed layer per world-space UI panel. The kit names no sort modes. It requires cull: true, as from and to do, and kinds without it keep today's lists and allocate nothing new. Meshes keep drawing in the order they gained instances, so the order holds within a mesh, not across meshes or drawings.
Open: whether depth-only descriptions such as shadows skip the sort, and whether one u32 key with the mesh in its high bits sorts every mesh's stretch of the list in one pass.
- Lingua principale
- TypeScript
- Stelle
- 69
- Fork
- 7
- Merge medio
- 1h 48m
- PR unite (30g)
- 15
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di software-mansion/typegpu-kit
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
software-mansion/typegpu-kit#27 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 57/100
software-mansion/typegpu-kit#26 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
software-mansion/typegpu-kit#25 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
software-mansion/typegpu-kit#15 · 3 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 50/100
software-mansion/typegpu-kit#14 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di software-mansion/typegpu-kit
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ehmpathy/rhachet-roles-bhrain#878 ·
I maintainer di solito rispondono entro 1 giorno
-
Chat UI: Message actions dropdown is cut off beneath composer when message is near bottom of chatForse già presa @koeria l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
milind-soni/OpenMausBot#8023 ·
I maintainer di solito rispondono entro 1 giorno
-
Windows microphone listing treats words in a device name as DirectShow labelsForse già presa @Sujal-chaudhary l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
clipy-recorder/clipy#447 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement from-app needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
nightly-labs/openbot#19162 ·
I maintainer di solito rispondono entro 1 giorno
-
triage:in-progress
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Cotal-AI/Cotal#11229 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno