originalnicodr / RELit

Mod to spawn lights in RE Engine games
https://framedsc.com/GeneralGuides/relit.htm
25 stars 4 forks source link

Makes the spotlights cast shadows #3

Closed originalnicodr closed 2 years ago

originalnicodr commented 2 years ago

This is what I was told when I asked around:

If you can't find anything you can always disable shadows for any via.render.Mesh by calling set_DrawShadowCast on the target mesh components. Also a spotlight's shadow render bool is at 0x11 i think if you want to modify it directly.

I tried changing the value to true but I am not exactly certain if I should use write_byte or write_short, and if using the value "true" while doing so instead of its equivalent in memory should work. Given that you are the one who knows better about low-level stuff I figured you could give it a try.

If that doesn't work then I would ping/ask Hatti about the shadows with the spotlight. I don't know how his tool makes them cast shadows but then our script doesn't.

FransBouma commented 2 years ago

I don't think that's the way to go, I mean, we don't even know what the targetmeshes are (and other mods don't need it). 0x11 doesn't look like a valid offset, but I'll check. it's a byte, so you need to write a byte.

Will go over hatti's code again, but I doubt I'll find anything. I'll also check if game settings (like shadow caching) is of any influence

originalnicodr commented 2 years ago

Solved in 0aadb15d11ffed72436612b2d86537672e1c8c5f