Stingray Forum (Read Only)
Welcome to Autodesk’s Stingray Forums. Share your knowledge, ask questions, and explore popular Stingray topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Moving/flying freely in VR model? (using Oculus Rift and Xbox-control)

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
Anonymous
1642 Views, 5 Replies

Moving/flying freely in VR model? (using Oculus Rift and Xbox-control)

Hi!

 

I'm using Stingray and creating VR-models. I want to be able to "move/fly around freely" in my level, preferably using an Xbox-control (or maybe keyboard + mouse) while in Oculus Rift. By following Paul's great tutorials (linked below) I'm able to move in X- and Y-axis using the left thumbstick on my Xbox-control. However, the tutorial doesn't explain how to add the movement of up and down. So I freestyled an additional piece of Flow-code for the right thumbstick, affecting the Z-axis, but I haven't changed any code in lua for this. The problem I have is that I can't use both thumbsticks simultaneously, everytime I move a thumbstick I jump back to the starting position of my level. But independently the thumbsticks work as they should. Does anyone know how to combine the thumbsticks so they can work simultaneously? I attached screenshots of how it looks in Flow. The lua code is the same as in Paul's tutorials.

 

Paul's tutorials that I mentioned above:

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

https://www.youtube.com/watch?v=7pjDbmVH0uE&feature=youtu.be

 

Thank you and best regards,

Victor

5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: Anonymous

Tricky to say without really sitting down on the project myself, but on just a glance it looks like you're not passing the z axis of the current tracking space when you're using the left stick and not passing the x and y of the current space for the right stick. 

 

Only your left stick flow i'd try connecting the z vector components from your oculus get tracking space to the z in the vector from components after the addition nodes. I think what your're basically doing a the moment is resetting the z axis to 0 whenever you use the left stick, so just passing it through from what it currently it should help. 

 

And the same goes for your right stick, connect up the x and y from the vector components to the vector from components down the line. 

 

See what that does!

Message 3 of 6
IMDesigns
in reply to: Anonymous

I've implemented that. Feel free to use mine, I also learned from Paul. You've run into a common mistake (I also did that) with your Right Stick, in the first Vector Components, you should use Y instead of Z to control height (no need to use rotation by the way) and X if you want to turn with the controller as well.

 

Let me know if that solved your issue.

 

Best regards, 

Message 4 of 6
Anonymous
in reply to: IMDesigns


@IMDesigns wrote:

I've implemented that. Feel free to use mine, I also learned from Paul. You've run into a common mistake (I also did that) with your Right Stick, in the first Vector Components, you should use Y instead of Z to control height (no need to use rotation by the way) and X if you want to turn with the controller as well.

 

Let me know if that solved your issue.

 

Best regards, 


Thank you! Your code works perfect for my project!

 

Best regards,

Victor

Message 5 of 6
Shawn_Hendershot
in reply to: Anonymous

Does anyone know how to change from using the xbox Thumbstick for fly mode to using the Oculus thumbstick inputs?  I have the xbox controller working perfectly.

 

 

Message 6 of 6
Anonymous
in reply to: Anonymous

I also tried following the tutorials of Paul, however I keep getting this error with the HTC Vive when moving the thumb stick of the XBOX controller. Does anyone have an idea how we can solve this error? 

 

Test Engine / SteamVRPlugin: SteamVR.set_tracking_space_pose(Matrix4x4) is deprecated. Use SteamVR.set_tracking_space(Vector3, Quaternion, Vector3) instead.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report