HackerN64 / HackerSM64

A Super Mario 64 decompilation repo based on CrashOveride95/ultrasm64 that aims to provide a flexible, easy-to-use base for creating romhacks.
351 stars 160 forks source link

[Lighting Engine] Point lights are broken, they seem to always come from under the world #835

Closed Reonu closed 2 months ago

Reonu commented 2 months ago

When using point lights, they seem to more often than not come from "below the ground" rather than their intended position, and they only affect faces that are facing downwards. Sometimes they seem to behave as intended, but it's rare.

Here's an example from when I tried to use point lights in RHDC.ppt. I added a blue-ish point light in the middle of the office. As you can see here it's only affecting faces that are facing downwards, such as the ceiling, or the part of the shelf above the books. imagen

gheskett commented 2 months ago

UPDATE: This is reportedly only happening to objects (RHDC.ppt office is also apparently an object). Could it have something to do with geo processing order maybe?

gheskett commented 2 months ago

Turns out this is a fast64 issue, gsSPLoadGeometryMode zeroizes everything it doesn't specify to set.