# VR Desktop - Depth headtracking projection

**URL:** <https://forums.unrealengine.com/t/vr-desktop-depth-headtracking-projection/353297>\
**Category:** AI\
**Tags:** matrix, unreal-engine, question\
**Created:** [April 7, 2016, 2:50pm UTC](https://forums.unrealengine.com/t/vr-desktop-depth-headtracking-projection/353297 "2016-04-07T14:50:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SrGeneroso](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/srgeneroso/32/752429_2.png) [@SrGeneroso](https://forums.unrealengine.com/u/SrGeneroso)\
**Post date:** [April 7, 2016, 2:50pm UTC](https://forums.unrealengine.com/t/vr-desktop-depth-headtracking-projection/353297/1 "2016-04-07T14:50:44Z")

</div>

Hi, greetings to all. I’m trying to compile thoughts and code about a issue I expect interest a lot of people. There are a lot of concepts involved and please before anything else forgive my poor english and my lack of expresivity.

The topic I’m trying to relaunch is depth perception in a regular screen as was introduced to most of all by the king [Johnny Lee](http://johnnylee.net/) with a wiimote and some cheap hacking as he shows as in this 2007 [video](https://www.youtube.com/watch?v=Jd3-eiid-Uw).

Time has come since then and other examples has been made easily as they say ([demo](http://kode80.com/blog/2012/04/09/holotoy-perspective-in-webgl/index.html)) but still is not a common feature for any device. Technology is going fast in this subject but looks like headset oculus kind is what is going to win, and don’t get me wrong, I think that approach it’s the most immersive feeling by far, but head tracking and face recognition it’s going as well but feels kind of hard to implement.  
I’m been stuck with this post for a while now trying to reconcile some parts and understanding:

> **[Camera Projection Matrices](https://forums.unrealengine.com/showthread.php?29599-Camera-Projection-Matrices)**
>
> The inability to modify camera projection matrices in blueprint (and the extreme difficulty of doing it in C++) puts a big damper on several very creative effects. Exposing the FMatrix on a camera lets us do fun off-axis projections like this: ...

> **[Howto modify the projection matrix](https://forums.unrealengine.com/questions/65003/howto-modify-the-projection-matrix.html)**
>
> Hi guys, I’m trying to create a runtime plugin to modify the projection matrix every frame (without touching the engine). BUT: i can’t override LocalPlayer::CalcSceneView / LocalPlayer::GetProjectionData because they aren’t virtual. i can’t...

> **[\[plugin\] Freetrack](https://forums.unrealengine.com/showthread.php?88506-plugin-Freetrack)**
>
> Since nobody seems to have made freetrack plugin yet, here’s my attempt. Usage is simple, just link camera translation and rotation to “get freetrack data”, like this: And… that’s it. Start freetrack client, start your game, look around. To make...

> **['3D Perspective: The Parallax Approach' ... Head tracking](https://forum.openframeworks.cc/t/3d-perspective-the-parallax-approach-head-tracking/9501/18)**
>
> Hi Memo (or anyone else) Could you elaborate on how to use setLensOffset or the new method setupOffAxisViewPortal to create an off-axis ofCamera? I’ve been playing with the example and these two function but I can’t see any results.

and maybe others you might propose

For me, apart of overwhelming this posts means two things, first it’s achievable even with open source tech for some time and second, looks like unfinished, like every developer disappear or quit after.

My goal it’s to mimic this effect and apply it in a indie scale, 3D pixelstyle scroll platform will rock with this visuals. I’m trying to get freetrack working for the head tracking but I’m kind of stuck with unreal as to make the off-axis projection matrix. Any help is welcome because seems like I unknow even how this things are called. Please let me know any info that could let me find the path to achieve this and if you are interested in the topic or have examples let me watch them because this don’t get me sleep.

Thanks for reading.

---

<div class="post-metadata">

**Author:** ![Lourival](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lourival](https://forums.unrealengine.com/u/Lourival)\
**Post date:** [November 16, 2016, 10:37am UTC](https://forums.unrealengine.com/t/vr-desktop-depth-headtracking-projection/353297/2 "2016-11-16T10:37:38Z")

</div>

Sorry for not answering your question, but do you know how to do it without depth?
