DOOM 3 BFG VR fork on github
- tmek
- Cross Eyed!
- Posts: 154
- Joined: Fri Aug 03, 2012 10:27 pm
DOOM 3 BFG VR fork on github
I've forked the official Id Doom 3 BFG source code on git to https://github.com/tmek/DOOM-3-BFG-VR
I'll get it up to date with the modifications I used for my own DIY Rift using the custom sensor fusion and hopefully we can get it to a point such that it won't take much effort to get it working with the Rift SDK when it's released.
Anyone familiar with c++/doom3 code interested in helping out let me know!
I'll get it up to date with the modifications I used for my own DIY Rift using the custom sensor fusion and hopefully we can get it to a point such that it won't take much effort to get it working with the Rift SDK when it's released.
Anyone familiar with c++/doom3 code interested in helping out let me know!
-
- Binocular Vision CONFIRMED!
- Posts: 267
- Joined: Sat Jul 28, 2012 5:04 am
Re: DOOM 3 BFG VR fork on github
I'd be down to help, I still have work to do on my mods but I'd like to see the community step up on this one, it shouldn't be too hard from everything I've seen so far. Eventually I'd like to work in the independent weapon stuff too, which may not be hard at all ( depends on the engine ).
-
- Cross Eyed!
- Posts: 159
- Joined: Sun Mar 10, 2013 8:24 pm
Re: DOOM 3 BFG VR fork on github
Well I have q3 to finish, if I find some time, I'll let you know..
- IGameArt
- Binocular Vision CONFIRMED!
- Posts: 269
- Joined: Mon Aug 13, 2012 8:46 pm
Re: DOOM 3 BFG VR fork on github
I actually have the source myself, and after compiling it and making a new exe, i've noticed a few drops int he frame rate and the game looks considerably fuzzier, like its set to render the game at a lower resolution and blow it up to fit my screen. It's incredibly distracting considering that i was able to run the game at a full 60fps with side by side steroscopy beforehand. anybody else have this issue with the source?
-
- One Eyed Hopeful
- Posts: 14
- Joined: Thu Jul 19, 2012 3:12 pm
- Location: Texas
Re: DOOM 3 BFG VR fork on github
This is what makes awesome developers such as John Carmack really shine. Releasing the game commercially, then releasing the source so the community can keep the work alive.
- Namielus
- Certif-Eyable!
- Posts: 957
- Joined: Thu Aug 02, 2012 8:49 am
- Location: Norway
- Contact:
Re: DOOM 3 BFG VR fork on github
Good luck guys! I am looking forward to doom 3 BFG
-
- Certif-Eyable!
- Posts: 1139
- Joined: Tue Sep 18, 2012 10:32 pm
Re: DOOM 3 BFG VR fork on github
I submitted some pull requests.
- tmek
- Cross Eyed!
- Posts: 154
- Joined: Fri Aug 03, 2012 10:27 pm
Re: DOOM 3 BFG VR fork on github
If someone has Doom 3 BFG purchased on Steam and you would like to help, see if you can follow the instructions below and get it building on your machine.
Everything linked below is free (except you do need to have a purchased copy of Doom 3 BFG on Steam)
Currently there is no extra functionality except that it should compile and run under VC++ Express on Windows 7 and 8. I'm able to get it to build and run on my machine but it will be good to ensure that others can build and run it.
- Install DirectX Software Development Kit
http://www.microsoft.com/en-us/download ... en&id=6812
- Install Micorsoft Visual C++ 2010 Express
http://www.microsoft.com/visualstudio/e ... 10-express
- Install Doom 3 BFG Edition from Steam
http://store.steampowered.com/app/208200/
- Download DOOM-3-BFG-VR source code and Open in VC++ Express
https://github.com/tmek/DOOM-3-BFG-VR/a ... master.zip
unzip the file to some where (c:\DOOM-3-BFG-VR is fine)
using Visual C++ Express open the file c:\DOOM-3-BFG-VR\neo\doom3.sln
- Set Doom3BFG as the StartUp Project
Right click the project and choose "Set as Startup Project"
- Set Debugging Command Arguments
Right click the Doom3BFG project, choose "Properties" -> Configuration Properties -> Debugging -> Command Arguments
copy and paste in the following line:
+set fs_basepath "C:\Program Files (x86)\Steam\steamapps\common\DOOM 3 BFG Edition"
- Press F5 in visual studio to build and run Doom 3 BFG in debug mode.
Visual C++ will mention the project build files are out of date, click "Yes" to build them and run.
troubleshooting
---------------
- Known Issue: DirectX SDK (June 2010) Setup and the S1023 error
http://blogs.msdn.com/b/chuckw/archive/ ... error.aspx
Everything linked below is free (except you do need to have a purchased copy of Doom 3 BFG on Steam)
Currently there is no extra functionality except that it should compile and run under VC++ Express on Windows 7 and 8. I'm able to get it to build and run on my machine but it will be good to ensure that others can build and run it.
- Install DirectX Software Development Kit
http://www.microsoft.com/en-us/download ... en&id=6812
- Install Micorsoft Visual C++ 2010 Express
http://www.microsoft.com/visualstudio/e ... 10-express
- Install Doom 3 BFG Edition from Steam
http://store.steampowered.com/app/208200/
- Download DOOM-3-BFG-VR source code and Open in VC++ Express
https://github.com/tmek/DOOM-3-BFG-VR/a ... master.zip
unzip the file to some where (c:\DOOM-3-BFG-VR is fine)
using Visual C++ Express open the file c:\DOOM-3-BFG-VR\neo\doom3.sln
- Set Doom3BFG as the StartUp Project
Right click the project and choose "Set as Startup Project"
- Set Debugging Command Arguments
Right click the Doom3BFG project, choose "Properties" -> Configuration Properties -> Debugging -> Command Arguments
copy and paste in the following line:
+set fs_basepath "C:\Program Files (x86)\Steam\steamapps\common\DOOM 3 BFG Edition"
- Press F5 in visual studio to build and run Doom 3 BFG in debug mode.
Visual C++ will mention the project build files are out of date, click "Yes" to build them and run.
troubleshooting
---------------
- Known Issue: DirectX SDK (June 2010) Setup and the S1023 error
http://blogs.msdn.com/b/chuckw/archive/ ... error.aspx
-
- Certif-Eyable!
- Posts: 1139
- Joined: Tue Sep 18, 2012 10:32 pm
Re: DOOM 3 BFG VR fork on github
Edit: sorry, didn't see the PM. Doing it now.
- tmek
- Cross Eyed!
- Posts: 154
- Joined: Fri Aug 03, 2012 10:27 pm
Re: DOOM 3 BFG VR fork on github
Try disabling the Motion Blur setting and see if that fixes it for you. I had a similar experience once i went into stereoscopic rendering in D3BFG. Specifically that when both 3D and motion blur are enabled together it seems to do some rendering to a texture and then upscaling just as you mention. If you just have one or the other on by themselves it seems fine.IGameArt wrote:I actually have the source myself, and after compiling it and making a new exe, i've noticed a few drops int he frame rate and the game looks considerably fuzzier, like its set to render the game at a lower resolution and blow it up to fit my screen. It's incredibly distracting considering that i was able to run the game at a full 60fps with side by side steroscopy beforehand. anybody else have this issue with the source?
- IGameArt
- Binocular Vision CONFIRMED!
- Posts: 269
- Joined: Mon Aug 13, 2012 8:46 pm
Re: DOOM 3 BFG VR fork on github
Oh sweet, that actually fixed the problem. The game looks super smooth now and runs at 120fps on my machine in stereoscopic 3d. Also have you had issues with it cutting off the top and bottom portions of the screen when you enable the warp?
-
- Certif-Eyable!
- Posts: 1139
- Joined: Tue Sep 18, 2012 10:32 pm
Re: DOOM 3 BFG VR fork on github
Yes, I mentioned that right when it came out. Apparently John Carmack thought a square aspect ratio was better in VR, or that you couldn't see the top and bottom of the panel in the old prototype so there was no point in rendering it. But nobody else does that for the Rift, so I think we should fix that to use the whole screen.
- IGameArt
- Binocular Vision CONFIRMED!
- Posts: 269
- Joined: Mon Aug 13, 2012 8:46 pm
Re: DOOM 3 BFG VR fork on github
Definitely, it's actually somewhat of a hindrance as there are certain entries in the pda that can't be read because its not only being cut off at the top and bottom, but also snipped along the sides as well.
-
- Certif-Eyable!
- Posts: 1139
- Joined: Tue Sep 18, 2012 10:32 pm
Re: DOOM 3 BFG VR fork on github
OK, I pushed my changes.
It should now have the Carmack Reverse, Doom 1 and 2 have most of the censorship removed, and Doom 2's extra secret level, MAP33: Betray, is now working.
I also fixed this problem:
The things we still need to do are:
It should now have the Carmack Reverse, Doom 1 and 2 have most of the censorship removed, and Doom 2's extra secret level, MAP33: Betray, is now working.
I also fixed this problem:
Now you can remove that step from your instructions.tmek wrote:- Set Doom3BFG as the StartUp Project
Right click the project and choose "Set as Startup Project"
The things we still need to do are:
- Add Bink video playback from the open-source FFmpeg or libavcodec (hard), possibly using the original Doom 3 video playback code as a reference.
Remove the censorship on the Wolfenstein SS in the Doom 2 secret levels.
Replace doomclassic with one of the OpenGL source-ports, so it can be in true VR. The only one I can get to compile is glboom+.
Fix the warping so that it's not letterboxed.
Get headtracking working (with head and neck model or 6DOF tracking).
Get rendering working for the 7" Rift dev kit.
Add support for DIY rifts and prototype rifts.
Make it user-friendly to put it in Rift mode with all the right settings.
Get independent weapon control working.
Let you see your own body when you look down.
- tmek
- Cross Eyed!
- Posts: 154
- Joined: Fri Aug 03, 2012 10:27 pm
Re: DOOM 3 BFG VR fork on github
I added head tracking with Mahony sensor fusion using Hillcrest tracker as a placeholder motion sensor until we get the SDK for the Oculus Rift.
- Added MahonyARHS fusion algorithm to solution
- Added code to init and read raw data [roll, pitch, yaw, x, y, z] from motion sensor and run it through fusion.
- Modified win_input.cpp to merge viewangles from motion sensor data with other input sources.
- Set delta angles to zero each frame (not doing this causes weird drift, but this causes an issue with rotating platforms and trains. Will have to fix that.)
- Added relevant dependencies to \dependences folder (temporary)
With that in mind I think the minimal functionality would be..
- Added MahonyARHS fusion algorithm to solution
- Added code to init and read raw data [roll, pitch, yaw, x, y, z] from motion sensor and run it through fusion.
- Modified win_input.cpp to merge viewangles from motion sensor data with other input sources.
- Set delta angles to zero each frame (not doing this causes weird drift, but this causes an issue with rotating platforms and trains. Will have to fix that.)
- Added relevant dependencies to \dependences folder (temporary)
I think we should keep in mind that it is still very possible that ZeniMax/Id will release a Rift compatible version in the very near feature. So it probably wouldn't make much sense to try to go to far too soon. I think what most people (myself included) are right now interested in being able to have the Doom 3 BFG Rift demo "experience" on day-one of having their Rifts (or as close as we can come to that).2EyeGuy wrote: The things we still need to do are:
- Add Bink video playback from the open-source FFmpeg or libavcodec (hard), possibly using the original Doom 3 video playback code as a reference.
Remove the censorship on the Wolfenstein SS in the Doom 2 secret levels.
Replace doomclassic with one of the OpenGL source-ports, so it can be in true VR. The only one I can get to compile is glboom+.
Fix the warping so that it's not letterboxed.
Get headtracking working (with head and neck model or 6DOF tracking).
Get rendering working for the 7" Rift dev kit.
Add support for DIY rifts and prototype rifts.
Make it user-friendly to put it in Rift mode with all the right settings.
Get independent weapon control working.
Let you see your own body when you look down.
With that in mind I think the minimal functionality would be..
- #1 Updating StereoWarp.vertex and StereoWarp.pixel to match the 7" Rift optics (again the Rift SDK should provide the information we need to make the appropriate changes)
#2 Rift Head Tracking (the Rift SDK will probably already include things like head/neck model and fusion)
#3 Raising and Lowering your gun with right analog stick/mouse
#4 Making PDA readable (fixing the clipping off the edge of the screen in stereo rendering)
#5 Adding a menu item to setup an optimal Rift experience.
-
- Petrif-Eyed
- Posts: 2708
- Joined: Sat Sep 01, 2012 10:47 pm
Re: DOOM 3 BFG VR fork on github
While waiting for the Oculus Rift SDK, you can have DAY-0 Rift head tracker support NOW if you use the "UNOFFICIAL RIFT TO VRPN SERVER":tmek wrote:I added head tracking with Mahony sensor fusion using Hillcrest tracker as a placeholder motion sensor until we get the SDK for the Oculus Rift.
http://projects.ict.usc.edu/mxr/diy/vrpn/
And you add VRPN client code to your app:
http://www.cs.unc.edu/Research/vrpn/app ... _view.html
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
-
- Certif-Eyable!
- Posts: 1139
- Joined: Tue Sep 18, 2012 10:32 pm
Re: DOOM 3 BFG VR fork on github
Interesting. The Rift uses a static C++ library, or C++ source code, for their tracking. Internally they are just using the Windows HID interface (and registering for device notifications).
- tmek
- Cross Eyed!
- Posts: 154
- Joined: Fri Aug 03, 2012 10:27 pm
Re: DOOM 3 BFG VR fork on github
Did you use IDA or something to disassemble the Rift VRPN server?2EyeGuy wrote:Interesting. The Rift uses a static C++ library, or C++ source code, for their tracking. Internally they are just using the Windows HID interface (and registering for device notifications).
I was tinkering around some of the VRPN code per geekmaster's suggestion and I was wondering myself if the Rift would register as an HID device like the Hydra and Freespace do (see screenshot).
I assume you'd still have to know the structure of the data being read (or is there some kind of standard for motion trackers?) but that greatly simplifies scanning for available devices, connecting and disconnecting from devices.
Regarding VRPN I was wondering about latency.. wouldn't going across process boundaries using network packets introduce some latency, even if client and server are on the local machine?
You do not have the required permissions to view the files attached to this post.
-
- Certif-Eyable!
- Posts: 1139
- Joined: Tue Sep 18, 2012 10:32 pm
Re: DOOM 3 BFG VR fork on github
Um... No comment. But if one were to do that, one might find the code harder to follow than normal, since it's object oriented.tmek wrote:Did you use IDA or something to disassemble the Rift VRPN server?2EyeGuy wrote:Interesting. The Rift uses a static C++ library, or C++ source code, for their tracking. Internally they are just using the Windows HID interface (and registering for device notifications).
I doubt it would use any standard. But since we know it's sending yaw, pitch, and roll, it's not hard to output the data while turning the Rift and seeing which is which. I did that with the VR920.tmek wrote:I was tinkering around some of the VRPN code per geekmaster's suggestion and I was wondering myself if the Rift would register as an HID device like the Hydra and Freespace do (see screenshot).
I assume you'd still have to know the structure of the data being read (or is there some kind of standard for motion trackers?) but that greatly simplifies scanning for available devices, connecting and disconnecting from devices.
Yes. It's not a long-term solution, just a quick fix for getting it working on the Rift without any SDK.tmek wrote:Regarding VRPN I was wondering about latency.. wouldn't going across process boundaries using network packets introduce some latency, even if client and server are on the local machine?
-
- Certif-Eyable!
- Posts: 1139
- Joined: Tue Sep 18, 2012 10:32 pm
Re: DOOM 3 BFG VR fork on github
I'm having trouble getting VRPN working. I've added VRPN to the project, and it builds OK. But I can't get any sensible data from it. I'm using the Razer Hydra as a VRPN server. I have no idea why it's not working. The camera keeps pointing in the same direction.
- tmek
- Cross Eyed!
- Posts: 154
- Joined: Fri Aug 03, 2012 10:27 pm
Re: DOOM 3 BFG VR fork on github
I'm pulling it down now, I have a hydra and the freespace tracker I'll try with both. What did you use for the Server.exe? Did you build your own or download a binary from somewhere? I had trouble getting the server to build, I think it was probably just due to incorrect header/lib paths.2EyeGuy wrote:I'm having trouble getting VRPN working. I've added VRPN to the project, and it builds OK. But I can't get any sensible data from it. I'm using the Razer Hydra as a VRPN server. I have no idea why it's not working. The camera keeps pointing in the same direction.
-
- Petrif-Eyed
- Posts: 2166
- Joined: Mon Jun 22, 2009 8:36 am
- Location: Stockholm, Sweden
Re: DOOM 3 BFG VR fork on github
Next version of FreePIE will have a generic plugin that any software can use, we will make a C lib that you can use. Right now you can use it by hooking into the shared memory.
https://github.com/AndersMalmgren/FreeP ... cPlugin.cs
How about adding support for it so that any tracker can be used with BFG?
https://github.com/AndersMalmgren/FreeP ... cPlugin.cs
How about adding support for it so that any tracker can be used with BFG?
-
- Certif-Eyable!
- Posts: 1139
- Joined: Tue Sep 18, 2012 10:32 pm
Re: DOOM 3 BFG VR fork on github
I didn't upload my actual implementation of the tracking, since I couldn't get it to work at all. I can upload it if you want though.tmek wrote:2EyeGuy wrote:I'm having trouble getting VRPN working. I've added VRPN to the project, and it builds OK. But I can't get any sensible data from it. I'm using the Razer Hydra as a VRPN server. I have no idea why it's not working. The camera keeps pointing in the same direction.
Firstly, make sure you checked out the git with the recursive option, if you are using the version in the dependencies\vrpn folder.tmek wrote:I'm pulling it down now, I have a hydra and the freespace tracker I'll try with both. What did you use for the Server.exe? Did you build your own or download a binary from somewhere? I had trouble getting the server to build, I think it was probably just due to incorrect header/lib paths.
Just open the vrpn.sln file and build it a couple of times. There are some missing files and bits that won't build, but the server will build eventually.
The .cfg file is in the server_src folder, you need to uncomment one of the trackers, and it needs to be called Tracker0 (since that's what the Oculus Rift vrpn server uses).
The exe file is in the pc_win32\server_src\vrpn_server\Debug folder. Copy the .cfg file into there, and run it.
Of course, in the version on github, I haven't added the vrpn tracking to the code yet, so it won't do anything.
-
- Certif-Eyable!
- Posts: 1139
- Joined: Tue Sep 18, 2012 10:32 pm
Re: DOOM 3 BFG VR fork on github
Sorry, the Oculus Rift SDK license doesn't seem to be compatible with Open Source software.
So there won't be any Oculus Rift support in Doom 3 BFG.
I appologise for that. It was my intention to add Oculus Rift support today, but that will have to wait until I can make my own SDK for working with the Oculus Rift, or until I can get VRPN support working, or until Oculus provide an open-source compatible API.
So there won't be any Oculus Rift support in Doom 3 BFG.
I appologise for that. It was my intention to add Oculus Rift support today, but that will have to wait until I can make my own SDK for working with the Oculus Rift, or until I can get VRPN support working, or until Oculus provide an open-source compatible API.
- IGameArt
- Binocular Vision CONFIRMED!
- Posts: 269
- Joined: Mon Aug 13, 2012 8:46 pm
Re: DOOM 3 BFG VR fork on github
well from what i'm able to gather is that the game will be playable on the rift, but without motion tracking, which is kind of sad, but that wont stop me from trying to surround myself with mars. Hopefully we can get that warping to be correct for the new display, and get the vrpn server working.
-
- Certif-Eyable!
- Posts: 1139
- Joined: Tue Sep 18, 2012 10:32 pm
Re: DOOM 3 BFG VR fork on github
I think it probably is actually compatible with open source licenses if we say it's a system library and don't include the source code to ovrlib.
So, I'm going to go ahead and give it a go.
Does anyone know how to edit the shaders that come with Doom 3 BFG?
So, I'm going to go ahead and give it a go.
Does anyone know how to edit the shaders that come with Doom 3 BFG?
-
- Certif-Eyable!
- Posts: 1139
- Joined: Tue Sep 18, 2012 10:32 pm
Re: DOOM 3 BFG VR fork on github
Can someone with a Rift (and Doom 3 BFG) test this to see if Rift headtracking is working?
These go in your Doom 3 BFG's exe directory.
https://dl.dropbox.com/u/101772879/Doom3BFGTracking.zip
Some of the tracking may be inverted, or it might not work at all. I don't know.
These go in your Doom 3 BFG's exe directory.
https://dl.dropbox.com/u/101772879/Doom3BFGTracking.zip
Some of the tracking may be inverted, or it might not work at all. I don't know.
- drgroove101
- Cross Eyed!
- Posts: 115
- Joined: Wed Jan 16, 2013 4:24 pm
Re: DOOM 3 BFG VR fork on github
Very excited for this project guys! You're all doing a great job! I think I'm even more excited to play the favourite game of my youth DOOM2 more than Doom3 ! If you guys make this happen, you will truly be my hero. Keep up the great work and I look forward to a playable release!
-
- One Eyed Hopeful
- Posts: 13
- Joined: Thu Mar 15, 2012 10:32 pm
Re: DOOM 3 BFG VR fork on github
I quickly tried it out, the head tracking was working great!
I'll have to figure out how to enable the pre-warping and try it out for longer once I get a chance.
I'll have to figure out how to enable the pre-warping and try it out for longer once I get a chance.
-
- Certif-Eyable!
- Posts: 1139
- Joined: Tue Sep 18, 2012 10:32 pm
Re: DOOM 3 BFG VR fork on github
I fixed the red crosses and the secret levels in the DOOM2 part of Doom 3 BFG (except I haven't done the blue SS enemies yet), but I haven't added head-tracking yet, because the version in Doom 3 BFG is just the vanilla 256-colour software renderer but with a higher resolution. I need to replace most of the doomclassic in Doom 3 BFG with the code from another port, probably prboom+, since that's the only one I could get to compile easily, and I already did some work on porting it to the Rift. BTW, Doom 3 BFG has an extra secret level in Doom 2, called MAP33: Betray, from the Xbox version. It's broken in the original Doom 3 BFG, but I fixed it in this version.drgroove101 wrote:Very excited for this project guys! You're all doing a great job! I think I'm even more excited to play the favourite game of my youth DOOM2 more than Doom3 ! If you guys make this happen, you will truly be my hero. Keep up the great work and I look forward to a playable release!
-
- One Eyed Hopeful
- Posts: 13
- Joined: Thu Mar 15, 2012 10:32 pm
Re: DOOM 3 BFG VR fork on github
stereorender_warp 1 isn't working, any ideas?
- IGameArt
- Binocular Vision CONFIRMED!
- Posts: 269
- Joined: Mon Aug 13, 2012 8:46 pm
Re: DOOM 3 BFG VR fork on github
Hmm that's strange because the warp is working fine for me.
@2eyeguy, have you considered using gzdoom? It has a more robust rendering engine that allows for lots of tweaking of both the graphics, and gameplay.
@2eyeguy, have you considered using gzdoom? It has a more robust rendering engine that allows for lots of tweaking of both the graphics, and gameplay.
- drgroove101
- Cross Eyed!
- Posts: 115
- Joined: Wed Jan 16, 2013 4:24 pm
Re: DOOM 3 BFG VR fork on github
Man even with the old school graphics I think Doom2 would still be pretty cool with full head tracking in the Rift. I'd probably go through the whole game in one sitting! Never tried prboom+, gzdoom is the engine I use, but if you can upgrade the graphics in addition to adding Rift support... TAKE MY MONEY! *starts throwing money at monitor*2EyeGuy wrote:I fixed the red crosses and the secret levels in the DOOM2 part of Doom 3 BFG (except I haven't done the blue SS enemies yet), but I haven't added head-tracking yet, because the version in Doom 3 BFG is just the vanilla 256-colour software renderer but with a higher resolution. I need to replace most of the doomclassic in Doom 3 BFG with the code from another port, probably prboom+, since that's the only one I could get to compile easily, and I already did some work on porting it to the Rift. BTW, Doom 3 BFG has an extra secret level in Doom 2, called MAP33: Betray, from the Xbox version. It's broken in the original Doom 3 BFG, but I fixed it in this version.
-
- Certif-Eyable!
- Posts: 1139
- Joined: Tue Sep 18, 2012 10:32 pm
Re: DOOM 3 BFG VR fork on github
It only works in full side by side 3D mode.nvman90 wrote:stereorender_warp 1 isn't working, any ideas?
It's harder than it seems at first to integrate OpenGL Doom 2 rendering, because Doom 3 BFG is designed around a separate front-end renderer and back-end renderer (running in a different thread), and the front-end can't use OpenGL directly. So I had to move the Doom Classic rendering code into the back-end renderer, and keep the rest of the Doom Classic code in the front-end.drgroove101 wrote:Man even with the old school graphics I think Doom2 would still be pretty cool with full head tracking in the Rift. I'd probably go through the whole game in one sitting! Never tried prboom+, gzdoom is the engine I use, but if you can upgrade the graphics in addition to adding Rift support... TAKE MY MONEY! *starts throwing money at monitor*
So far I got it rendering an OpenGL scene from a NeHe tutorial, with the console on top, while I can hear the Doom 2 running invisibly. Now I have to actually merge the PrBoom+ OpenGL source in.
Right now I don't want it to add lots of tweaking to the graphics and gameplay. I just want it to have the existing functionality but rendering in OpenGL in 3D and able to look around freely, without having to change too many things to get it to work. Once I've worked out how to do that, maybe I'll see about other source ports.IGameArt wrote:@2eyeguy, have you considered using gzdoom? It has a more robust rendering engine that allows for lots of tweaking of both the graphics, and gameplay.
-
- Two Eyed Hopeful
- Posts: 80
- Joined: Mon Aug 27, 2012 12:20 pm
Re: DOOM 3 BFG VR fork on github
Ah, I was using side by side instead of full side by side and wondering why it wasn't working. It's so close now but there's no way to get the image quite right with the slider.
-
- Two Eyed Hopeful
- Posts: 80
- Joined: Mon Aug 27, 2012 12:20 pm
Re: DOOM 3 BFG VR fork on github
Oh wow, I tried:
stereoRender_warp 1
stereoRender_interOccularCentimeters -4
g_fov 110
and it almost fixed the rendering. It's still too zoomed in a little too much and flat, 2D stuff in the foreground still looks cross-eyed, but it's almost there. Also, now that the graphics are kind of working I noticed that the head tilting headtracking seems reversed. Like if I tilt my head left, the screen tilts right. And I'm getting an idea of the kind of performance hit stereo rendering causes. I've got a 2GB 7870 that has no problems running this with a steady 60fps maxed out at 1080p but I noticed some drops in stereo mode at 1280x800.
stereoRender_warp 1
stereoRender_interOccularCentimeters -4
g_fov 110
and it almost fixed the rendering. It's still too zoomed in a little too much and flat, 2D stuff in the foreground still looks cross-eyed, but it's almost there. Also, now that the graphics are kind of working I noticed that the head tilting headtracking seems reversed. Like if I tilt my head left, the screen tilts right. And I'm getting an idea of the kind of performance hit stereo rendering causes. I've got a 2GB 7870 that has no problems running this with a steady 60fps maxed out at 1080p but I noticed some drops in stereo mode at 1280x800.
- IGameArt
- Binocular Vision CONFIRMED!
- Posts: 269
- Joined: Mon Aug 13, 2012 8:46 pm
Re: DOOM 3 BFG VR fork on github
Which axis are reversed, is it all three rotations?
-
- Certif-Eyable!
- Posts: 1139
- Joined: Tue Sep 18, 2012 10:32 pm
Re: DOOM 3 BFG VR fork on github
That would be roll. That was one of the things I wanted people to test, because I didn't know which direction the axes were supposed to be. I'll fix it now.IGameArt wrote:Which axis are reversed, is it all three rotations?
-
- Certif-Eyable!
- Posts: 1139
- Joined: Tue Sep 18, 2012 10:32 pm
Re: DOOM 3 BFG VR fork on github
OK, I updated it to a new version. This should fix the roll:
https://dl.dropbox.com/u/101772879/Doom3BFGTracking.zip
https://dl.dropbox.com/u/101772879/Doom3BFGTracking.zip
-
- Two Eyed Hopeful
- Posts: 80
- Joined: Mon Aug 27, 2012 12:20 pm
Re: DOOM 3 BFG VR fork on github
That fixed it. Head tracking seems to be fully functional now. Awesome!