It is currently Wed Sep 17, 2014 9:36 pm



Reply to topic  [ 37 posts ] 
 Jedi Outcast and Jedi Academy source code released 
Author Message
Binocular Vision CONFIRMED!
User avatar

Joined: Thu Jul 26, 2012 12:55 am
Posts: 218
Location: Spain
After the sad closure of LucasArts yesterday, some good news for gamers. They just released Jedi Outcast and Jedi Academy source code (single player portion). Can you imagine what could be done with this? I'm just thinking about using a Razer Hydra: with one hand, you control force power, with the other one... yes, your lightsaber!!! All this with our Oculus Rift, of course.

The player 3D model is done (the game is in third person perspective), so someone could do the same that Valve did with TF2: use the third person character model without head and put the point of view there.

An interesting project for talented people out there.

_________________
Image
Comunidad española de RV / Spanish VR Community


Fri Apr 05, 2013 8:23 am
Profile WWW
One Eyed Hopeful

Joined: Wed Jan 23, 2013 11:43 pm
Posts: 47
Please do, community. Outcast is probably my favorite multiplayer game of all time. I'd be forever grateful.


Fri Apr 05, 2013 8:33 am
Profile
Golden Eyed Wiseman! (or woman!)

Joined: Fri Aug 21, 2009 9:06 pm
Posts: 1644
Outcast and Academy are both awesome games. Would love to shoot some Force lightning in VR! :P


Fri Apr 05, 2013 1:33 pm
Profile
Two Eyed Hopeful

Joined: Mon Aug 27, 2012 12:20 pm
Posts: 80
They're both Quake III engine games, right? From the thread in the Rifted forum it seems like densohax is making really good progress on a VR version of Quake III.


Fri Apr 05, 2013 1:36 pm
Profile
Cross Eyed!

Joined: Sat Oct 13, 2012 3:23 am
Posts: 101
BEST game was jedi academy - gimme that!!


Fri Apr 05, 2013 4:28 pm
Profile
Two Eyed Hopeful

Joined: Tue Jan 15, 2013 8:54 pm
Posts: 77
It'd be nice revisiting my childhood again. :)


Fri Apr 05, 2013 6:30 pm
Profile
Certif-Eyable!

Joined: Tue Sep 18, 2012 10:32 pm
Posts: 1139
It took a long time and a lot of work to get it to compile.
I've got Star Wars: Dark Forces 3: Jedi Knight 2: Jedi Outcast (single player) compiling in Visual Studio 2010.
Now I need to find my game disc to test it with.


Fri Apr 05, 2013 10:14 pm
Profile
Cross Eyed!

Joined: Sat Jan 12, 2013 6:45 pm
Posts: 131
For anyone interested in the source, this GitHub project seems like one to keep an eye on:
https://github.com/Razish/OpenJK

I cloned it, and was able to compile the Jedi Academy solution without a problem. (Got some errors on the Jedi Outcast projects though.)
I'll also have to hunt down my Jedi Outcast / Academy CDs, so haven't actually tried anything with the results.


Sat Apr 06, 2013 1:17 am
Profile
Certif-Eyable!

Joined: Tue Sep 18, 2012 10:32 pm
Posts: 1139
mscoder610 wrote:
For anyone interested in the source, this GitHub project seems like one to keep an eye on:
https://github.com/Razish/OpenJK

I cloned it, and was able to compile the Jedi Academy solution without a problem. (Got some errors on the Jedi Outcast projects though.)
I'll also have to hunt down my Jedi Outcast / Academy CDs, so haven't actually tried anything with the results.

That's cheating though. ;) I did it from scratch from Raven's git repository on SourceForge. If they had released it on github to start with, I would have looked at what forks there were, but I wasn't sure how to do that from SourceForge. I also wasn't sure how to put my repository online.
So maybe I'll have a look at that fork.


Sat Apr 06, 2013 2:10 am
Profile
Cross Eyed!
User avatar

Joined: Thu Mar 07, 2013 2:04 pm
Posts: 123
Location: Indiana
Love those games. I can't wait for some light saber hydra dismemberment. :D

Image
Image

_________________
Check out this forum for a beta driver to get existing games working with the Rift.
Official Vireio Perception Driver Forum http://www.mtbs3d.com/phpbb/viewforum.php?f=141
Support these games on Steam Greenlight them http://steamcommunity.com/sharedfiles/filedetails/?id=92979040
Rig Specs - MS Windows Ultimate, i5 3470, 16 GB RAM, 2x AMD 1GB 5850 HD crossfired, SATA2 HD


Sat Apr 06, 2013 3:35 am
Profile
Sharp Eyed Eagle!
User avatar

Joined: Sat Dec 13, 2008 9:23 am
Posts: 375
Location: Ahmedabad//INDIA
JEDI ACADEMY was my most beloved game BTW i am HUGE friend of STARWARS and i did played acadmy 03 Times being last time in 3D on my 17" CRT with XFORCE3D shutter Glasses & NVIDIA forceware 91 on my GEFORCE 6600

SO sad DISNEY shut down LUCASARTS but hei STARWARS7 is already announced and may be release in 3D Kudos!!! what story they film ?

A.bobaFEtt aka BOUNTY HUNTer
B.Old Republic (Malek n Raven)
C.STARKILLER aka FORCE UNLEDAshed 1/2

that Said back to topic

LOVE to see this game in VR


Sat Apr 06, 2013 10:44 am
Profile
Cross Eyed!

Joined: Sun Oct 09, 2011 4:03 pm
Posts: 130
Crap I just opened a topic about this then found the thread.

Jedi Knight 2 has a first person lightsaber mod. Imagine possibilitie's with wii mote / hydra. Looks surprisingly good.

@Fillip
Sadly its a continuation of Episode IV-VI . They were getting The original cast to cameo. Probably one of the "next generation stories". I would of killed for an alternate telling of Knights of the Old republic. http://entertainment.nbcnews.com/_news/2013/03/08/17235688-george-lucas-harrison-ford-carrie-fisher-mark-hamill-in-on-new-star-wars?lite


Sat Apr 06, 2013 8:55 pm
Profile
Sharp Eyed Eagle!
User avatar

Joined: Sat Dec 13, 2008 9:23 am
Posts: 375
Location: Ahmedabad//INDIA
Star Wars Universe is quite BIG, i don know why when they have many stories to tell they keep on RECYCLING OLD EP-1 to EP-6 its...Pathetic


Sun Apr 07, 2013 12:12 am
Profile
One Eyed Hopeful
User avatar

Joined: Sun Apr 07, 2013 2:15 am
Posts: 13
If someone did this i would kiss there feet. I hated last starwars game that you could use with xbox 360... so terrible i felt like a git jumping and waving my arms around .... :|


Sun Apr 07, 2013 2:25 am
Profile
One Eyed Hopeful
User avatar

Joined: Sat Apr 06, 2013 9:10 am
Posts: 31
This is really good news!

To those who took a look at the code already, is the legendary iMUSE code available as well?!


Sun Apr 07, 2013 4:05 am
Profile
Cross Eyed!

Joined: Sun Oct 09, 2011 4:03 pm
Posts: 130
Forgot to mention Jedi Academy first person is possible and looks awesome. A guy was working on it and I went to check his progress but unfortunately he dropped the project on hard drive crash.

He has videos here
http://www.youtube.com/user/ThunderEwokB/videos


Tue Apr 09, 2013 1:11 pm
Profile
Cross Eyed!

Joined: Sat Jul 17, 2010 10:28 am
Posts: 140
Just for fun, over this weekend I've added Oculus Rift rendering support to OpenJK's Jedi Academy code.

This does not include head tracking, since that has some complications due to GPL license. I think the way around that is to treat it as a separate DLL and load each function just like opengl32.dll.

I fixed several UI stereoscopic bugs I found in the code, and adjusted UI not be in the distance.

There are still other issues with it though. And it needs the code to be organized better and maybe exposing some settings to config file and console.



I've attached here the source and binaries (executable and dll only, you supply the data).

Source code does not include Oculus source, but it is not needed at this time since it just uses a hard coded shader. But for head tracking, it may eventually require it to build source.

I've tried both boxed version of the game as well as steam and they work. All you need to do is copy the GameData/base directory contents to the bin/base directory.

It doesn't autodetect what display is the Oculus, so you need to duplicate the displays. I force all game resolution modes to 1280x800 (not very nice but good enough for now).

I also have in there a default configuration (bin/base/openjk_sp.cfg). cg_fov is set to "99" and cg_stereoSeparation is set to "2". You can adjust these in the console. Using a cg_stereoSeparation of 9 to make things look like toys (playing in 3rd person) although some cinematics may hurt your eyes.


You do not have the required permissions to view the files attached to this post.

_________________
1F3sxoFRtaCx5tvYoC2QoDvBra9QNj2hSb
Projects Backed


Sun Apr 14, 2013 5:21 pm
Profile
Binocular Vision CONFIRMED!
User avatar

Joined: Thu Jul 26, 2012 12:55 am
Posts: 218
Location: Spain
If I had received my Oculus I would be testing this right now. Thanks for doing it! It's an important first step.

_________________
Image
Comunidad española de RV / Spanish VR Community


Mon Apr 15, 2013 2:34 am
Profile WWW
Certif-Eyable!

Joined: Tue Sep 18, 2012 10:32 pm
Posts: 1139
LeeN wrote:
This does not include head tracking, since that has some complications due to GPL license. I think the way around that is to treat it as a separate DLL and load each function just like opengl32.dll.

I don't think you need to worry about that. I worried about that before, but if you say it's a system library (like DirectX is), and you don't put the Oculus code in your repository, then it should be OK. You are allowed to link to system libraries.


Mon Apr 15, 2013 8:46 am
Profile
Cross Eyed!

Joined: Sat Jul 17, 2010 10:28 am
Posts: 140
2EyeGuy wrote:
LeeN wrote:
This does not include head tracking, since that has some complications due to GPL license. I think the way around that is to treat it as a separate DLL and load each function just like opengl32.dll.

I don't think you need to worry about that. I worried about that before, but if you say it's a system library (like DirectX is), and you don't put the Oculus code in your repository, then it should be OK. You are allowed to link to system libraries.


I'll try just releasing it that way and if someone complains, take it down.


Last night I had added head tracking and while I can start a new game or load a saved game and it works fine (you can even look around during cinematics), it crashes when I finish the level or die/reload and the back trace is corrupt :P. I'll probably spend some more time tonight looking at it.

_________________
1F3sxoFRtaCx5tvYoC2QoDvBra9QNj2hSb
Projects Backed


Mon Apr 15, 2013 10:57 pm
Profile
Cross Eyed!

Joined: Sat Jul 17, 2010 10:28 am
Posts: 140
So I've attached the version with head tracking support.

It's rather cool to be able to look around while in a cinematic. I force FOV to avoid possible head-ache inducing zooms.

It doesn't work right when the camera is facing down, rotations are not relative to the current camera orientation.

The crash I had earlier was that I forgot that the game code is actually in a DLL and apparently is loaded/unloaded each time there is a map change, so I had to route oculus sensor info through to the DLL :P.

For anyone with an Oculus Rift Dev Kit Have Fun!


You do not have the required permissions to view the files attached to this post.

_________________
1F3sxoFRtaCx5tvYoC2QoDvBra9QNj2hSb
Projects Backed


Tue Apr 16, 2013 2:08 am
Profile
One Eyed Hopeful

Joined: Sat Apr 13, 2013 3:42 pm
Posts: 9
Any chance for Republic Commando?


Tue Apr 16, 2013 7:15 am
Profile
Certif-Eyable!

Joined: Tue Sep 18, 2012 10:32 pm
Posts: 1139
Ananas wrote:
Any chance for Republic Commando?

No. It's not open source.


Tue Apr 16, 2013 8:53 am
Profile
Cross Eyed!

Joined: Sat Jul 17, 2010 10:28 am
Posts: 140
I forgot to mention... to build from source, you need to copy the OculusSDK folder into the OpenJK folder, the code/JediAcademy.sln already builds and links against it.

For those that want to diff the source to see my changes, the code is based from revision 32cbb35 of https://github.com/Razish/OpenJK.

_________________
1F3sxoFRtaCx5tvYoC2QoDvBra9QNj2hSb
Projects Backed


Tue Apr 16, 2013 10:31 pm
Profile
Cross Eyed!

Joined: Sat Jul 17, 2010 10:28 am
Posts: 140
I have another update.

It now find and displays on the Oculus Rift, so display mirroring shouldn't be necessary anymore. (This makes debugging issues so much easier)

I fixed rotation issues so now the head tracking moves the camera properly, relative to the orientation of the game camera, I also added to it an offset so head tracking rotates approximately around the head instead of rotating around the center point of the eyes. I had to use my own matrix/vector code from my vr-x project, since I didn't see anything available in the code that would have made this easier (maybe I missed something).

I'm experimenting with some changes that avoid/minimize animation updates when drawing both eyes. When the frame rate is low, I noticed the rendered contents of the right eye were changed from the left. I think there is still some tweaking to do with this, some things still look odd but most of the obvious stuff is fixed.

I started some work to try and get the better support for game controllers (right stick rotates the camera, left moves around), the buttons can be modified in the cfg file, couldn't find a good set up, might experiment with more different control schemes. Full game controller support is going to require some more work though, since UI doesn't really support it.


You do not have the required permissions to view the files attached to this post.

_________________
1F3sxoFRtaCx5tvYoC2QoDvBra9QNj2hSb
Projects Backed


Mon Apr 22, 2013 12:46 am
Profile
Binocular Vision CONFIRMED!
User avatar

Joined: Thu Jul 26, 2012 12:55 am
Posts: 218
Location: Spain
Thank you very much for your work Leen! This week a huge batch of Rifts should ship to international Kickstarters, so I hope to get mine by the next week. And for sure, your mod is one of the first things I'm planning to play. I love Jedi Knight games so much...

_________________
Image
Comunidad española de RV / Spanish VR Community


Mon Apr 22, 2013 4:35 am
Profile WWW
Binocular Vision CONFIRMED!
User avatar

Joined: Thu Jul 26, 2012 12:55 am
Posts: 218
Location: Spain
My Rift will be delivered on Monday and I'm installing some games and demos. I've just tried Jedi Academy and Jedi Outcast with this mod. I'm not sure if I've done it right, I have unpacked the contents of BIN folder inside both Jedi Academy and Jedi Outcast folders. In Jedi Outcast it overwrites the game jkgamex86.dll file, but this file is not in Jedi Academy.

Jedi Academy crashes on launch with the typical "stopped working" error. Jedi Outcast loads perfectly, but I can't see the menus. Both games run fine from Steam.

Image

_________________
Image
Comunidad española de RV / Spanish VR Community


Fri Apr 26, 2013 5:56 pm
Profile WWW
Cross Eyed!

Joined: Sat Jul 17, 2010 10:28 am
Posts: 140
LordJuanlo wrote:
My Rift will be delivered on Monday and I'm installing some games and demos. I've just tried Jedi Academy and Jedi Outcast with this mod. I'm not sure if I've done it right, I have unpacked the contents of BIN folder inside both Jedi Academy and Jedi Outcast folders. In Jedi Outcast it overwrites the game jkgamex86.dll file, but this file is not in Jedi Academy.

Jedi Academy crashes on launch with the typical "stopped working" error. Jedi Outcast loads perfectly, but I can't see the menus. Both games run fine from Steam.


I have not ported my changes to Jedi Outcast, so I don't expect it to work right.

I have not tried to put the files in the Steam folder itself, I was concerned that Steam would overwrite them if it detected they were different or if some update occurred.

I'd recommend copying the contents of Steam\steamapps\common\Jedi Academy\GameData\base to the uncompressed bin/base directory.

But if you need to save space and want to put them in the steam folder, you should put the files under:
Steam\steamapps\common\Jedi Academy\GameData

You should see identical files there and you should copy the config file openjk_sp.cfg from bin/base to GameData\base.

To run the game double click on jasp.exe, I don't know if it will work through Steam.

If for some reason you can't or don't want to run fullscreen edit openjk_sp.cfg and edit this line to say "0"
seta r_fullscreen "1"

_________________
1F3sxoFRtaCx5tvYoC2QoDvBra9QNj2hSb
Projects Backed


Fri Apr 26, 2013 9:12 pm
Profile
Binocular Vision CONFIRMED!
User avatar

Joined: Thu Jul 26, 2012 12:55 am
Posts: 218
Location: Spain
Oh thanks, that explains it. Now it works perfectly. Can't wait for Monday, I will keep refreshing the UPS tracking page all day! By the way, do you know if it's possible to use a first person camera with the lightsaber? I press P but it does nothing.

_________________
Image
Comunidad española de RV / Spanish VR Community


Sat Apr 27, 2013 4:23 am
Profile WWW
Cross Eyed!

Joined: Sun Feb 17, 2013 10:34 am
Posts: 166
As much as I love these old Jedi Knight games, i'd far rather see rift support added to Penumbra Overture, which also has its source code released

https://github.com/FrictionalGames

Get on it nerds!!!

:lol:


Sat Apr 27, 2013 5:01 am
Profile
Certif-Eyed!
User avatar

Joined: Wed Mar 06, 2013 7:30 pm
Posts: 548
Location: Bavaria, Germany
I know this is unrelated, but I am wondering where I can buy the game and which version I would have to get.
Can someone please give me a link to the correct version of the game on Steam?

Keep up the good work!

_________________
Image

Visit my website! http://mushroomtomatoes.com/


Sat Apr 27, 2013 5:25 am
Profile WWW
Binocular Vision CONFIRMED!
User avatar

Joined: Thu Jul 26, 2012 12:55 am
Posts: 218
Location: Spain
This is the Steam version I have. It works with LeeN's version.

http://store.steampowered.com/app/6020

_________________
Image
Comunidad española de RV / Spanish VR Community


Sat Apr 27, 2013 7:21 am
Profile WWW
Binocular Vision CONFIRMED!
User avatar

Joined: Thu Jul 26, 2012 12:55 am
Posts: 218
Location: Spain
I have finally received my Rift and have tested Jedi Academy. I really liked it! I wasn't expecting third person games to work so well in VR. I like what have you done with the camera. I will play with it in the next few days. Thank you very much for doing it LeeN!

_________________
Image
Comunidad española de RV / Spanish VR Community


Wed May 01, 2013 3:53 am
Profile WWW
Cross Eyed!

Joined: Sat Jan 12, 2013 6:45 pm
Posts: 131
Both Jedi Outcast and Jedi Academy are on sale on Steam ($3.39 each):
http://store.steampowered.com/app/6020
http://store.steampowered.com/app/6030

I'll definitely be trying this out once I get my Rift.


Thu May 02, 2013 6:20 pm
Profile
Cross Eyed!

Joined: Fri May 03, 2013 12:48 am
Posts: 189
OpenJK is a project that aims to take the newly released source code and fix bugs, as well enhance aspects of the game without modifying gameplay.

They have an open discussion about adding support for the Oculus Rift, its currently tagged as a wontfix, but the maintainers of the project seem to be very interested in trying to implement never the less. As this project aims to have an easily compilable and bugfree code, so I guess that this might be the best vantage point to get Oculus Rift running.

https://github.com/Razish/OpenJK/issues/83

Btw first post :)


Fri May 03, 2013 1:51 am
Profile
Certif-Eyed!
User avatar

Joined: Wed Mar 06, 2013 7:30 pm
Posts: 548
Location: Bavaria, Germany
I got the game running, good work!

Keep it up!

_________________
Image

Visit my website! http://mushroomtomatoes.com/


Fri May 03, 2013 5:56 am
Profile WWW
Binocular Vision CONFIRMED!

Joined: Mon Jan 21, 2013 12:30 pm
Posts: 337
Great job guys, this game had supremely good combat and stunning graphics for a Quake 3 engine title.

I did some researching, it also can be played with tri-def or nvidia nvision--which is cool since I just got a 3d monitor, but still waiting on the rift. Discussed here

https://forums.geforce.com/default/topic/502820/opengl-games-that-work-with-3d-vision/

This is a great game too for people with low end GPU.


If these s3d/rift modes work, might be cool to setup a server.


Sat Jun 22, 2013 2:50 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 37 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by STSoftware.