Shenmue VR (WIP)

(Modding and other series related projects)

Shenmue VR (WIP)

Postby yuc02 » Fri Nov 18, 2016 7:30 pm

Hi all,

After seeing the DreamcasticChannel's experiments with TrinusVR (https://www.youtube.com/watch?v=0cF7O-H3BlM), I decided how Shenmue could possibly work in a similar way.

After some digging and experimenting, I can say yes, you CAN play Shenmue in VR, and here's proof:

Image

Video here:

https://drive.google.com/open?id=0B4thM ... EkxUW1GOHM

Obviously I'm not playing it with a headset (since I haven't got one), and the tracking and frame rate aren't quite ideal yet (I blame my crappy phone), but as a proof-of-concept it does work, and I think with tweaking and better hardware it will be quite playable.

So to get it all running, I used:

Hardware:

Windows based PC (mine's a i5 Windows 8 system)

Decent smartphone (mine's a Moto G LTE 1st gen), with USB cable for tethering

Xbox type control pad, you can use a keyboard but the analog triggers would be a bit of a pain to emulate

Software:

NullDC 1.04 r150 SM fixes by masterchan777 (I guess Demul will work too), using the PuruPuru controller plugin to select the vJoy controller below

vJoy (creates a virtual joystick in system), I got the installer download here: https://sourceforge.net/projects/vjoyst ... e/download

FreePIE (which I used to assign mouse movement to the joystick axis in the vJoy controller, and the rest of the controls from the xbox pad): http://andersmalmgren.github.io/FreePIE/

TrinusVR (which I used to link phone gyro tracking to PC mouse movements), you'll need to get the server software on your PC, and the client software on your phone: http://trinusvr.com/

Step by step tutorial to come later, but if you want you can give it a go already, since the software's all FREE (well, almost) 8)

yuc02 has received 7 thanks from: Esppiral, Gromber, Mr357, NeoShredder, redline, shengoro86, Spaghetti
User avatar
yuc02
Master of the Three Blades
Master of the Three Blades
 
Joined: June 2015
PSN: yuc2002
Favorite title: Shenmue II

Re: Shenmue VR (WIP)

Postby Yokosuka » Mon Nov 28, 2016 9:06 pm

No war for Oculus Rift?
User avatar
Yokosuka
Machine Gun Fist
Machine Gun Fist
 
Joined: August 2014
Location: France
Favorite title: Shenmue II
Currently playing: Rocket League

Re: Shenmue VR (WIP)

Postby yuc02 » Wed Nov 30, 2016 10:24 am

No I haven't tried, because the price is too much for me right now.

Interestingly occulus rift is accepted in the freepie software as an input source, so I think it should be quite easy to do a similar setup to achieve VR.

yuc02 has received a thanks from: Yokosuka
User avatar
yuc02
Master of the Three Blades
Master of the Three Blades
 
Joined: June 2015
PSN: yuc2002
Favorite title: Shenmue II

Re: Shenmue VR (WIP)

Postby yuc02 » Thu Dec 01, 2016 6:41 pm

Right, now for the method:

The concept is to use TrinusVR to control the mouse, and map the mouse movement into the DC analogue stick, while the rest of the controls remain with the Xbox360 type pad:

Image

I used the following FreePIE script:

from System import Int16
if starting:
x = 0
y = 0
z = 0
sensibilidadX = 75
sensibilidadY = 75
sensibilidadZ = 100

x += mouse.deltaX * sensibilidadX
y += mouse.deltaY * sensibilidadY

#triggers
vJoy[0].rx = (xbox360[0].leftTrigger-0.5)*32768
vJoy[0].ry = (xbox360[0].rightTrigger-0.5)*32768

#digital buttons
vJoy[0].setButton(1,xbox360[0].a)
vJoy[0].setButton(2,xbox360[0].b)
vJoy[0].setButton(3,xbox360[0].x)
vJoy[0].setButton(4,xbox360[0].y)
vJoy[0].setButton(0,xbox360[0].start)
vJoy[0].setButton(5,xbox360[0].up)
vJoy[0].setButton(6,xbox360[0].down)
vJoy[0].setButton(7,xbox360[0].left)
vJoy[0].setButton(8,xbox360[0].right)

#use Xbox’s back button to reset camera
if xbox360[0].back:
x = 0
y = 0
vJoy[0].setButton(2,xbox360[0].back)

#can also use middle mouse button to reset camera
if mouse.middleButton:
x = 0
y = 0
vJoy[0].setButton(2,mouse.middleButton)

#analogue stick mapped to mouse axes
vJoy[0].x = x
vJoy[0].y = y
vJoy[0].z = z

I then created a 10-button analogue joypad, as below:

Image

Trickiest part of the process was to map the vJoy pad controls to the NullDC. It’s probably easiest to edit the NullDC config file directly, excerpt below:

[PuruPuru_Pad_1]
l_shoulder=A3+
r_shoulder=A4+
a_button=B1
b_button=B2
x_button=B3
y_button=B4
start_button=B0
dpad_up=B5
dpad_down=B6
dpad_left=B7
dpad_right=B8
main_x_left=A0-
main_x_right=A0+
main_y_up=A1-
main_y_down=A1+
halfpress=-1
deadzone=9
pakku_intensity=100
pakku_length=175
keyboard=0
joy_id=1
controllertype=0

Image

Then it’s just a case of activating the FreePIE script, starting the emulator, then running the Trinus VR server and client software. Make sure the emulator is in windowed mode, and make any small tweaks as necessary to improve tracking sensitivity.
User avatar
yuc02
Master of the Three Blades
Master of the Three Blades
 
Joined: June 2015
PSN: yuc2002
Favorite title: Shenmue II

Re: Shenmue VR (WIP)

Postby Snoopbob2006 » Tue Dec 13, 2016 10:52 pm

This is really exciting! Hopefully by next gen VR headset we will have some stable builds and also maybe Shenmue III VR
User avatar
Snoopbob2006
"After Burner...Great!"
"After Burner...Great!"
 
Joined: July 2003
Location: Scotland
PSN: Snoopbob2005
XBL: Snoopbob2005
Favorite title: Shenmue

Re: Shenmue VR (WIP)

Postby SidSwan » Sun Feb 05, 2017 10:26 pm

Hi!

For those who tried this game. What VR Headset is the most compatible with this one.?

Hope I cold have good answers. Thanks!

http://www.thegoodgears.com/VR-Headset/
SidSwan
Fuku-san
Fuku-san
 
Joined: February 2017
Favorite title: What's Shenmue


Return to Community Projects

Who is online

Users browsing this forum: Google [Bot] and 1 guest

Powered by phpBB © 2000-
ShenmueDojo.net