Forum Discussion
troffmo5
13 years agoHonored Guest
Irrlicht 3D Engine
Hi, i wrote month ago a test for my DIY HMD with the Irrlicht 3D engine (http://irrlicht.sourceforge.net/). I've just updated it to use the distortion formula and parameters from the Oculus SDK. As...
wcarss
12 years agoHonored Guest
I checked this out a little while ago, and now I've received my rift I can confirm that it does a convincing transformation. In getting it to work, I had a problem with the shader; here's a line of code found at https://github.com/troffmo5/HMDIrrlicht/blob/master/HMDStereoRender.cpp#L32:
" gl_TexCoord[0].st = gl_MultiTexCoord0;"
In order to get the project to work in VS2010 on Windows 7, I had to remove '.st' from that line, so it looks like this:
" gl_TexCoord[0] = gl_MultiTexCoord0;"
With '.st', an error to the effect of a 4-vector of floats being assigned to a 2-vector of floats was being popped out of the shader, and most of the scenery didn't render correctly. After removing that, hunky dory!
" gl_TexCoord[0].st = gl_MultiTexCoord0;"
In order to get the project to work in VS2010 on Windows 7, I had to remove '.st' from that line, so it looks like this:
" gl_TexCoord[0] = gl_MultiTexCoord0;"
With '.st', an error to the effect of a 4-vector of floats being assigned to a 2-vector of floats was being popped out of the shader, and most of the scenery didn't render correctly. After removing that, hunky dory!
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago