
Originally Posted by
qalvynn
Ive spent a long time trying to figure out how to get the view matrix and i just cant do it If anybody would be willing to help i would appreciate it and i will kiss you
finding the viewmatrix in trove isnt that hard once you know where to look
the easiest way is to get it through the localPlayer
usually the chain is like
localPlayer -> 0x20 -> viewMatrix offset
also keep in mind the game can run on directx or opengl depending on user settings
because of that the viewmatrix should be treated as column-major, not row-major
if you want it as variables, here is how it looks in python:
Code:
localplayer = 0x10B1A90
ViewMatrixChainOffset = [0x20, 0x1F0]
ResolutionWidthOffset = [0x20, 0x2C0]
ResolutionHeightOffset = [0x20, 0x2C4]
and the same thing in C++:
Code:
#include <vector>
#include <cstdint>
uintptr_t localPlayer = 0x10B1A90;
std::vector<uintptr_t> ViewMatrixChain = { 0x20, 0x1F0 };
std::vector<uintptr_t> ResolutionWidthChain = { 0x20, 0x2C0 };
std::vector<uintptr_t> ResolutionHeightChain = { 0x20, 0x2C4 };
and yeah…
dont forget my kiss