Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: andycoke on November 06, 2017, 09:08:39 AM

Title: uGuiVrGazeButton on Ecosystem
Post by: andycoke on November 06, 2017, 09:08:39 AM
I've downloaded the uGuiVrGazeButton from the Ecosystem and it works great if I'm just using the mouse pointer. Now I'm trying to use it with a Oculus headset, either with a standard camera or on a Oculus camera rig but it's not quite working, the Raycast is not centre to the camera, it ends up hitting somewhere below centre.

I don't fully understand the 'Rect Transform World to Screen Point' action and how the Screen Position relates to the Camera in World space.

Can anyone help?

Thanks in advance.
Title: Re: uGuiVrGazeButton on Ecosystem
Post by: jeanfabre on November 07, 2017, 01:07:26 AM
Hi,

 Yes, there is a difference with the VR camera, I am trying to find where it was discussed before, another member solved this problem some time ago.

I'll post as soon as I find the post.

 Bye,

 Jean
Title: Re: uGuiVrGazeButton on Ecosystem
Post by: jeanfabre on November 07, 2017, 01:11:29 AM
Hi,

 have you checked this thread: http://hutonggames.com/playmakerforum/index.php?topic=14466.msg67609#msg67609

Bye,

 Jean
Title: Re: uGuiVrGazeButton on Ecosystem
Post by: andycoke on November 17, 2017, 09:30:42 AM
Thanks Jean.

I've had a look at the other post but it doesn't seem like it was resolved. I'm still stuck on this so I've you've any more thoughts it would be a great help.
Title: Re: uGuiVrGazeButton on Ecosystem
Post by: jeanfabre on November 22, 2017, 01:32:19 AM
Hi,

 Yeah, I need to work on this indeed. what version of Unity and what gear do you have?

Bye,

 Jean
Title: Re: uGuiVrGazeButton on Ecosystem
Post by: andycoke on November 22, 2017, 11:46:41 AM
Hi Jean, I'm using Unity 2017.2 with a Rift.

Thanks
Title: Re: uGuiVrGazeButton on Ecosystem
Post by: jeanfabre on November 29, 2017, 01:14:59 AM
Hi,

 ok, I'll see what I can do.

 bye,

 Jean
Title: Re: uGuiVrGazeButton on Ecosystem
Post by: Amin on May 26, 2018, 02:10:21 AM
Hi,
 ok, I'll see what I can do.
 bye,
 Jean

Hi Mr.Jean ...
I have same issue sir ...
two days working on it and nothing happened except some weak gaze pointer interactions !!  :-\

can we have a correct solution for this common problem ?!
thank you so much .
Title: Re: uGuiVrGazeButton on Ecosystem
Post by: Amin on May 26, 2018, 03:08:02 AM
wow !
Finally I found the place of my button's reaction !

true place :
(http://s8.picofile.com/file/8327482592/nothing_happend_in_true_place.jpg)
false place :
(http://s8.picofile.com/file/8327482618/worked_in_false_place_.jpg)
I mean " i tween Animation ( to scale ) " plays .

now , how i change my screen point's variable to true value guys ?
Title: Re: uGuiVrGazeButton on Ecosystem
Post by: jeanfabre on May 30, 2018, 03:02:41 AM
Hi,

 unfortunatly, without any device, I can't help you.. I am unable to test and verify how it works. I am trying to find someone that could debug this and provide the right way to go...

maybe you could? have you tried to mess around with it?

Bye,

 Jean
Title: Re: uGuiVrGazeButton on Ecosystem
Post by: Amin on May 30, 2018, 07:35:08 AM
hello Mr. jean ...
yes sure , i have a VR device ( VRBOX brand ) and i can test it .

of course , before that we have a problem with " World Space " uGuiVRGaze canvas in unity playmode !  :-\(I changed canvas render mode according to this page :https://unity3d.com/learn/tutorials/topics/virtual-reality/user-interfaces-vr (https://unity3d.com/learn/tutorials/topics/virtual-reality/user-interfaces-vr) ) 

i sent two screenshots in my previous comment and explained it Mr. jean .
Title: Re: uGuiVrGazeButton on Ecosystem
Post by: jeanfabre on May 31, 2018, 01:56:50 AM
Hi,

Ok, cool, can you send me the thread where you mention the fix? ping me if I don't reply :)

 Bye,

 Jean