[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/vr/ - Retro Games

Search:


View post   

>> No.5569259 [View]
File: 1.89 MB, 640x360, screenToWorld.webm [View same] [iqdb] [saucenao] [google]
5569259

for the doomshock guy: I went back to that screen-to-world code I made way back when and made it work with the modern pixel stretching, so it now works no matter what your pitch is
turns out the part I was missing is that pitch also gets scaled by the pixel stretch ratio, so I had to do that as well to counteract it

I imagine if you care about it, you probably figured it out by now, but just in case you do and haven't, here it is
since you're working in zscript now, you can use level.pixelstretch instead of my hardcoded 6/5 and 5/6 ratios
http://jinotra.in/downloads/mods/doom/assorted/screenToWorld.pk3

Navigation
View posts[+24][+48][+96]