Read Cheat Engine tables / read memory from games

  • Clippy95
  • Topic Author
More
11 months 3 weeks ago #1 by Clippy95 Read Cheat Engine tables / read memory from games was created by Clippy95
So I have an idea for an add-on that I wish someone could implement..
all it would do is read certain memory address/es from the current running game, and expose it to shaders this would be most useful with the Perfect Perspective shader to expose the FOV value of the game, either import the memory/s from a cheat engine table or input it manually with offsets if needed.
The following user(s) said Thank You: Fu-Bama

Please Log in or Create an account to join the conversation.

  • Fu-Bama
More
9 months 3 weeks ago #2 by Fu-Bama Replied by Fu-Bama on topic Read Cheat Engine tables / read memory from games
It could be an even easier way to obtain the in-game vertical FOV using the projection matrix second-row second-component value. This code should convert that number into FOV angle:
vertFoV = 2*atan(rcp(ProjectionMatrix[1][1]))
, according to this documentation: Tutorial 12: Perspective Projection
 

Please Log in or Create an account to join the conversation.

  • Fu-Bama
More
9 months 2 weeks ago - 9 months 2 weeks ago #3 by Fu-Bama Replied by Fu-Bama on topic Read Cheat Engine tables / read memory from games
I found out that ReshadeEffectShaderToggler has capability of reading the projection matrix value, and therefore encoded there FOV value.

Warning: Spoiler!

In this case, the value encodes horizontal FOV, and the menu option in the background represents vertical FOV. I used the following formula to verify the variable:
90°=2*atan(1/0.5625 * 9/16)
Now how to use that functionality to attach the variable to the shader? Any ideas? The game is In Sound Mind if interested.
Last edit: 9 months 2 weeks ago by Fu-Bama.

Please Log in or Create an account to join the conversation.

  • Fu-Bama
More
9 months 2 weeks ago #4 by Fu-Bama Replied by Fu-Bama on topic Read Cheat Engine tables / read memory from games
BTW. I think FOV binding should be a standard thing in ReShade, like DepthBuffer, since so many shaders depend on it.

Please Log in or Create an account to join the conversation.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.