ThirteenAG / III.VC.SA.IV.Project2DFX

Project2DFX is a set of plugins for GTA III, Vice City, San Andreas, GTA IV: The Complete Edition, GTA Liberty City Stories and GTA Vice City Stories, which adds LOD corona effect to a game map, making LOD-world look a lot better.
https://thirteenag.github.io/p2dfx
MIT License
227 stars 21 forks source link

Some LODs overlapping with interiors #26

Closed niltwill closed 4 years ago

niltwill commented 4 years ago

Using VCLodLights with PreloadLODs = 1 (enabled), it causes these LODs to appear when loading a save game inside the mansion or the hotel: https://i.postimg.cc/CLxvZm6v/preloadlod-issue1.jpg https://i.postimg.cc/ncS3qByn/preloadlod-issue2.jpg https://i.postimg.cc/mZwX20Vz/preloadlod-issue3.jpg

It only happens after you load a saved game inside the mansion or the hotel with PreloadLODs enabled. When leaving the interior and re-entering, these LODs no longer appear.

I fixed this by removing this part from the source file, recompiled with VS2019 and it no longer displays those LODs after loading a game (inside an interior) that it shouldn't.

The problem is that the developers had overlapped these interiors with certain LOD models of the outside game world, so the LODs you force to display appear like shown in those images (although in certain places or angles only).

Here is my compiled VCLodLights, if you need it.

I'm not sure what you were trying to achieve, but the better solution if you want LODs to appear in interiors would be to change the IPL map files instead.

ThirteenAG commented 4 years ago

Thanks, I have no time to tackle with this at the moment, so if more people can test it and decide this is better, I'll remove this code.

pmsobrado commented 4 years ago

The files from @niltwill works but I lose several lights if I apply it :(

With @niltwill will version:

01 02

With normal version (bugged with LOD in interiors):

03 04

Also, don't know if related with this mod, but why does it seems like the stadium is missing a part of its LOD texture when far?

05

Thanks in advance.