theblacksun How do I cheat?
Reputation: 0
Joined: 09 Apr 2021 Posts: 5
|
Posted: Fri Apr 09, 2021 6:23 am Post subject: Disable drawing objects over distance/stop occlusion culling |
|
|
So. I'm using 3dx ripper to rip 3d models from the game. In order to make my frame capture more effective, i tried to make a hack that disables the script that hides the gameobjects when they are not in front of the camera or if they are far away from the player.
I already managed to find a way to completely freeze the camera's rotations by disabling some of the camera scripts. This way, wherever i move in the world, the models will get captured with fixed rotation and no need to rotate them when i import them to my 3D modeling program.
The thing i can't do is disabling those objects fading over distance, fading when they are not in front of the camera. The 3dx ripper captures everything that is currently rendered by the video card, and since the models who are not in front of the camera aren't, they don't get captured. So i used the break and backtrace instruction of CE and i found the exact line of code that is executed in the exact frame when the models just hide themselves.
postimg cc/gallery/HmpqbBf
This is what looks like before/after the models dissapear. And at the top left corner you can see the "CULLING" script. With those 2 lines of code the models dissapear/appear. Not having clue how to edit the script(since i don't understand assembly), i edited the code in all kind of ways but nothing. Every time my game crashesh. This code is executed multiple times in every frame. It is executed for every model in the scene.
I just have no idea what to do in this situation. I was doing this for 2 days and this code was the only thing i was able to find. Please, someone with more knowledge pls help me i'm begging you. I'm doing this with the purpose to make some kind of remastered copy of the game that you see.
Is there some way to inject Direct3D dll that disables the culling, and is there any? Ty for your time.
|
|