VR Google Template, how to move?

Anonymous

VR Google Template, how to move?

Anonymous
Not applicable

I'm feeling quite stupid about asking this but...

 

I spent a week getting to get the "Revit-Live-Stingray-googleVR optimizing and so on" to work... but, how do you move inside the VR project?

searched the forum also... err... is it just me? Right now we can do a 360 render with much better quality in no time so why should I use VR google template and Stingray? 

 

Can somebody help? 

 

Regards

 

Ricca

Reply
Reply
0 Likes
Reply
Accepted solutions (1)
1,831 Views
10 Replies
Replies (10)

paul.kind
Alumni
Alumni

so, there is no teleport mechanic included with google cardboard as there is no controller.  That said with some clever thinking you could easily implement one.  For example you could easily have "nodes" (recognizeable 3d graphics in your scene) that when stared at for 10 seconds teleport you to the location.  This is relatively easy to do in either flow or in lua script.  Ill try and make a tutorial on it sometime soon, but i cant promise when i can get one done.  It would be rather easy though.

 

Paul

 

Areas of Expertise - MayaLT : Mudbox : 3DS Max : Inventor : Game Dev
Follow me on Twitter : @paulkind3d

Please remember to give kudos freely and mark acceptable answers as solved!

PLEASE do not send me private messages unless asked to do so. If you have a question, start a thread, and ask me on the public forums where answering your question may help others.

Did you know there was a YouTube learning channel for Autodesk Games? New videos are posted regularly with all sorts of content relative to Stingray, Maya/MayaLT, 3DS Max, and other game related tools. Get your game on @ https://www.youtube.com/user/autodeskgameshowtos
Reply
Reply
0 Likes

paul.kind
Alumni
Alumni
Accepted solution

Would something like this work for you?

https://www.youtube.com/watch?v=XMnyJ6J0DUU

 

I set about trying to figure out how to solve your issue, this is what I came up with.  If you are interested, i can make the script and parts available to you.

 

Paul

 

Areas of Expertise - MayaLT : Mudbox : 3DS Max : Inventor : Game Dev
Follow me on Twitter : @paulkind3d

Please remember to give kudos freely and mark acceptable answers as solved!

PLEASE do not send me private messages unless asked to do so. If you have a question, start a thread, and ask me on the public forums where answering your question may help others.

Did you know there was a YouTube learning channel for Autodesk Games? New videos are posted regularly with all sorts of content relative to Stingray, Maya/MayaLT, 3DS Max, and other game related tools. Get your game on @ https://www.youtube.com/user/autodeskgameshowtos
Reply
Reply

Anonymous
Not applicable

Thank you Paul, you're very Kind indeed!

 

I think that something like this would be perfect! By the way is there any way of using a bluetooth joypad on Android with a Stingray developed project?

 

Thank you again, and yes the script would be absolutely great!

 

(sorry for my poor english)

 

Ricca

Reply
Reply
0 Likes

paul.kind
Alumni
Alumni

Ok, great.  Here is how to implement and use this.  It's not super hard but you will have to get a little dirty. 😃  Ill try to clearly explain what to do.  Feel free to ask questions if I confuse you.

 

1. Download the attached zip file and unzip/expand it.

2. Copy the folder gaze_teleport/content/models/teleport_icon and paste it into *your_project*/content/models folder.

3. Copy the file gaze_teleport/script/gaze_teleport.script_flow_nodes and paste it into *your_project*/script folder.

4. Copy the file gaze_teleport/script/lua/gaze_teleport.lua and paste it into *your_project*/script/lua folder.

5. Copy the file gaze_teleport/global.physics_properties and replace the one in your project found at *your_project*/global.physics_properties

6. Open the file gaze_teleport/level_flow.txt with notepad.

7. In notepad, select all (Cntrl + A) and copy (Cntrl+C) to the clipboard.

8.  In stingray, open your level, select the Level Flow tab and paste (Cntrl+V) the clipboard contents.  This should place the nodes as seen in the below image.

gtp.PNG

9. In stingray's asset browser, navigate to content/models/teleport_icon/teleport_icon.unit and place it in your scene.  (its position does not matter)

10. Select the teleport_icon you just placed and switch back to level flow.  Right Click and choose "Create Level Unit teleport_icon". (it will be at the top of the list)

11. Connect this node to "Set Unit Variable" like this.

gtp2.PNG

 

Congrats!  You are almost done.  At this point we have installed all the required parts and technically speaking the teleport mechanic is implemented.  Now we just have to tell our units which actors are allowed to be teleported to.  To do this, we simply need to set a property on their physics actors inside the unit editor.  You can do this to as many things as you wish so long as you want to allow teleporting to that given surface.

 

1. Open a unit in the unit editor.

2. Choose/Select the mesh you want to be able to teleport to.

3. Select Create -> Physics Actor

4. Select the resulting physics actor.

5. In the properties Panel, set the filter to "Teleport_Permitted".

 

Save and Test!

Should be good to go.

 

Paul

 

 

Areas of Expertise - MayaLT : Mudbox : 3DS Max : Inventor : Game Dev
Follow me on Twitter : @paulkind3d

Please remember to give kudos freely and mark acceptable answers as solved!

PLEASE do not send me private messages unless asked to do so. If you have a question, start a thread, and ask me on the public forums where answering your question may help others.

Did you know there was a YouTube learning channel for Autodesk Games? New videos are posted regularly with all sorts of content relative to Stingray, Maya/MayaLT, 3DS Max, and other game related tools. Get your game on @ https://www.youtube.com/user/autodeskgameshowtos
Reply
Reply

Anonymous
Not applicable

Hello,

I'm sorry to dig this up but I have to ask as well.
Since Stingray (or is it just th Beta yet?) now supports three modes when building for Android and since I've experienced that the GoogleVR options just runs on a Daydream phone (Cardboard did not run at all) AND since Daydream supports a controller plus I think I've spotted a couple of lines in the LUA code about the Controller, the question is even more interesting now:

 

How do you implement the current state of the art to use the Daydream controller and move around?

Best regards

Mirko

Reply
Reply
0 Likes

AnJanson
Advocate
Advocate

Hi Paul,

 

Thanks for this comprehensive guide.

Could that work for the GearVR?

I just tested your workflow in my GearVR project, but of course, I get the message, that the flow could not be validated.

It is the SteamVR block that causes the incompatibility.

2017-10-22_155059.png

Could it be replaced with a GearVR compatible block? Any idea how?

 

Regards

Andreas

 

Reply
Reply
0 Likes

Anonymous
Not applicable

Hi Paul,

 

I've been following this tutorial and I can't seem to work out how to add the input for the gaze position and rotation. I'm using the Google VR template and have changed the HMD type to Google VR but the flow editor will not support the SteamVR HMD pose flow node. How do I add the correct HMD for  GoogleVr?

 

Thanks

Amy

Reply
Reply
0 Likes

Anonymous
Not applicable

When I launch a test level i got an error ( see attachment) sorry for my bad English

Reply
Reply
0 Likes

Anonymous
Not applicable

Same here. Have you resolve it ?

Reply
Reply
0 Likes

Anonymous
Not applicable

Same here, have you resolve it ?

Reply
Reply
0 Likes