Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help, What function would I need to hook into to change the headpose when rendering! #1824

Open
itsMaebee opened this issue Apr 8, 2024 · 0 comments

Comments

@itsMaebee
Copy link

Hi, I am attempting to make a hooking driver that delays tracking, but my ways of doing so has created an issue with the HMD. Since I am delaying the tracking of everything, it also delays the HMD's movement and rendering. To address this, I've been experimenting with functions aimed at integrating a designated HmdMatrix34 representing real-time movement of the HMD, ensuring its rendering position remains current while the tracked position sent to the game/application experiences the intended delay.

I have currently been using SetDisplayEyeToHead but it seems to not have a affect. Are there any other functions that would assist with this process?

	if (Driver->GetIPCServerInstance()->GetDisorenting()) {
		if (Driver->FramePoseEdit5(L, R, 0)) {
			// Edit L and R to have real-time HMD Positions
			
			SetDisplayEyeToHead005.originalFunc(_this, unWhichDevice, L, R);

		}
		else {
			SetDisplayEyeToHead005.originalFunc(_this, unWhichDevice, eyeToHeadLeft, eyeToHeadRight);
		}
	}


SetDisplayEyeToHead005.originalFunc(_this, unWhichDevice,eyeToHeadLeft,eyeToHeadRight);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant