Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Run a VR game with PC & Google Cardboard

Discussion in 'Android' started by MAKY_GAMES, Aug 9, 2015.

  1. MAKY_GAMES

    MAKY_GAMES

    Joined:
    Aug 9, 2015
    Posts:
    1
    Hello everyone,
    I'm a Catalan Student in highschool who is doing a project with Unity 3D with the Google Cardboard & Android plugins.
    So I've created a little, simple game with Head Tracking, autowalk features, 3D models and collectibles, with more or less 9 scenes.

    It has (not awesome) but quite good graphics and I think that, with the graphics, colliders, meshes & the head tracking, the game will have low FPS if it is run in a mobile device...
    So I'm trying to figure out a way to run the game with my PC, but use my mobile gyroscope, accelerometer (the Google Carboard plugis are made to enable the Head Tracking Movement when the game is running in an android device) and screen.

    But I don't know how to do it...

    Any help at all would be appreciated! I can give pictures for reference if needed.
    (sorry for my english, as I said, I'm Catalan :')
     
  2. pcpaukm

    pcpaukm

    Joined:
    Jul 9, 2015
    Posts:
    9
    Is not a trivial task, but basically:
    1) Desktop: Unity Game
    2) Desktop: Develop a server app for Desktop, which will receive the graphic and sound from your unity game and stream to your Mobile App, also receive tracking information from your Mobile Client
    3) Mobile: Develop a Client App will talks to your Desktop server app, sending the tracking information and displaying the graphic and sounds from your desktop server.
    You have to consider the speed of the data transfers speed and synchronization between input and graphic.

    So basically, is what this guy does: http://trinusvr.com/help/how-it-works/
    I am not sure if it will works with unity though.
     
  3. kinnik

    kinnik

    Joined:
    Sep 6, 2014
    Posts:
    17
  4. vishesh-l

    vishesh-l

    Joined:
    Feb 14, 2010
    Posts:
    27
    is there an alternative to trinus but for Mac? tried googling but couldnt find
     
  5. trinusvr

    trinusvr

    Joined:
    Aug 16, 2015
    Posts:
    14
    Hi guys!

    I'm the Trinus dev (and, coincidentally, also catalan :) ).

    I'm working on improving the Unity plugin, latest version available at http://trinusvr.com/server/trinus.unitypackage (also available on the Asset Store, but updates are less frequent).

    @vishesh.I the plugin also works on Mac but needs to comment out the first line (define) in TrinusProcessor script (component in TrinusManager).

    For any questions or change requests, you can drop me a line at support@trinusvr.com or post on the forum: http://oddsheepgames.com/?forum=developers
     
  6. replysenad

    replysenad

    Joined:
    Nov 21, 2018
    Posts:
    2
    Hi,
    did you eventually manage to build this?

    I have built a stereoscoptic camera setup, but now I would also need to implement lens distortion. Not sure if I should go down that road.

    Any ideas?

    :) Senad
     
  7. Razmot

    Razmot

    Joined:
    Apr 27, 2013
    Posts:
    346
    That's very interesting, worth necromancing this post from 2016 @trinusvr any news ?