feat(instances): Order each mesh's instances by a key
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 48/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- react-native, typescript
- Domínio
- computer-graphics, web-dev
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- TypeScript
- Estrelas
- 69
- Forks
- 7
- Merge médio
- 1h 48min
- PRs com merge (30d)
- 15
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de software-mansion/typegpu-kit
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
software-mansion/typegpu-kit#27 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 57/100
software-mansion/typegpu-kit#26 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
software-mansion/typegpu-kit#25 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
software-mansion/typegpu-kit#15 · 3 comentários · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 50/100
software-mansion/typegpu-kit#14 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de software-mansion/typegpu-kit
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
ehmpathy/rhachet-roles-bhrain#878 ·
Mantenedores costumam responder em até 1 dia
-
Chat UI: Message actions dropdown is cut off beneath composer when message is near bottom of chatTalvez já em andamento @koeria assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
milind-soni/OpenMausBot#8023 ·
Mantenedores costumam responder em até 1 dia
-
Windows microphone listing treats words in a device name as DirectShow labelsTalvez já em andamento @Sujal-chaudhary assumiu hoje. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
clipy-recorder/clipy#447 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
enhancement from-app needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
nightly-labs/openbot#19162 ·
Mantenedores costumam responder em até 1 dia
-
triage:in-progress
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Cotal-AI/Cotal#11229 · 1 comentário ·
Mantenedores costumam responder em até 1 dia