Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology
Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered
You are not logged in.
Hi all, I've just came across with OpenSpace3D this week while googling for open source alternatives to VR and AR creation software and I'm so excited about it's potential!!! Thank you so much to you all that helped bringing this project to life. Let's keep it up and running together!!
This is my first post here... let's get back to my topic subject then:
I'm using a standard gamepad to control a "FPS like controller" PlugIT through a "JoyPad" PlugIT. It seems to be working all great: It moves RIGHT when I press right in the gamepad and LEFT when I press left. The problem is that it moves UP and DOWN when I press forward and backwards in the gamepad. I'm wondering if there is anyway I could swap the Z and Y coordinates system as it seems to be interpreting it the other way around, somehow...
It would be greatly appreciated if there was anyone able to advice me on this? Thank you all so much in advance!!
Last edited by Nuno (23-Mar-2017 16:33:53)
Offline
Hello and welcome!
With FPS controller forward / backward should be the right way ^^
Do you need to revert it because of an ergonomics you want to make or because it seems to be a bug ?
On which platform did you test with gamepad (linux support for gamepad is new bugs are possible)
well what you can do to disable forward moving from the control link is to override the link parameter
control link take a parameter with translation and rotation :
x y z
ax ay az
so in the link parameter you can set :
$1 $2 0
$4 $5 $6
this will disable the z translation
you can then add a link from joypad left stick to fps control
joypad.left stick -> fps.control
stick link parameter gives x y so you set the link parameter to
_ _ $2
on fps plugit "_" mean wee keep last setted value and here $2 that we use y value of the left stick to set the z translation.
if you need to revert the value you can use an operator plugit and multiply by -1
Offline
Hi arkeon. Thank you so much for your support, it was really appreciated!!
Answering your question:
I'm building and testing this on Windows 10.
First of all let me just rectify something from my first post, I should have said: It "ROTATES" RIGHT when I press right in the gamepad and LEFT when I press left, it doesn't "MOVE". In other words, when I'm using the gamepad it doesn't translate sideways, as I've said by mistake, it actually rotates sideways and this is good, as this is what I wanted.
Now regarding the UP and DOWN issue, instead of FORTH and BACK: For some reason I couldn't get it to work with the settings you've recommended: "joypad.left stick - > fps.control", but was able to find my own way, based on your feedback. Here's what I've done:
"joypad.control -> fps.control"
Parameter:
$1 0 0
$4 $5 $6
"joypad.control -> operator.multiply" (to reverse the translation value, multiplying it by -1, as you've recommended)
Parameter:
_ _ $2
"operator.out -> fps.control"
It's now working perfectly, rotating LEFT and RIGHT when I use the gamepad's stick sideways and translating FORWARDS and BACKWARDS when I use the gamepad's stick forwards and backwards, respectively.
Thank you so much once again, arkeon, you're awesome!!
I hope this topic can help many others with the same issue...
Offline