studio lighting light records + one thing that hangs the gpu

Abierto
#1,892 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
1-2 días
Aptitud para principiantes
15/100
Tipo de issue
Documentación
Claridad
Necesita aclaración
Estado de actividad
Activo

Línea de trabajo

The payload names the shader PS_STUDIOSHOT_PBR_MATERIAL_STANDARD_LIGHTING, which reads 512-byte light records, plus the indirect_light_probes and CS_ApplyProbeIrradiance path. It does not say what change is wanted, so a newcomer would first need the maintainer to state whether this is a note to record, a bug to fix, or a doc to write. Reading the light-record layout around offsets +0x40 and +0x73 is the starting point; done is not defined in the issue.

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

Descripción

so PS_STUDIOSHOT_PBR_MATERIAL_STANDARD_LIGHTING reads lights from 512 byte records and theres a couple things that tripped me up hard:

  • the dword at +0x40 isnt a float, its top byte is a loop count and the low 24 bits have to be non zero or the light just gets skipped. if u stick a float in there the loop count goes crazy and the gpu hangs lol so if anyone sees a device lost in that shader check that first
  • colour + intensity come from a small profile table (16 bytes per profile, rgb + intensity) and the light is skipped if that intensity is 0, so an all black light doesnt always mean the light math is broken
  • the light records shadow strength is a byte at +0x73, if its 0 the shadow map gets read but does nothing which is super confusing to debug
  • also fyi this shader has no ambient at all, the cube and 2d samples in there are per light cookies. the actual indirect light is the indirect_light_probes / CS_ApplyProbeIrradiance stuff which is its own whole system
Lenguaje dominante
Python
Estrellas
14.9k
Forks
1.2k
Merge medio
1 h 58 min
PR fusionados (30 d)
40

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 ItsNotRexed/Leonida

Todos los issues de ItsNotRexed/Leonida

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.