Unity VR Tutorial - Gaze Timer Interaction + Teleport

  Рет қаралды 26,755

Xlaugts

Xlaugts

Күн бұрын

Пікірлер: 114
@LibduP
@LibduP 3 жыл бұрын
Very nice tutorial, thank you for the simple and clear explanations. Just in case for the viewers, if any of you got the issue that the circle was appearing on start and so broke the gaze functioning (in my case, it was breaking the FillAmount mechanic and was teleporting the Player instantaneously), just write the following line in the void Start field : imgGaze.fillAmount = 0; This forces the circle to be "unloaded" on start, and fixes it.
@pedrososo1161
@pedrososo1161 5 жыл бұрын
Thanks for the video man, I've been looking for google cardboard tutorials but they are usually old
@xlaugts151
@xlaugts151 5 жыл бұрын
Thanks Pedro, let me know if you have any suggestion for a video.
@pedrososo1161
@pedrososo1161 5 жыл бұрын
@@xlaugts151 Hey! happy new year! Could you please make a tutorial of a simple multiplayer VR game? If it's possible
@xlaugts151
@xlaugts151 5 жыл бұрын
Hi @@pedrososo1161, Thanks for the suggestion, this is on my list of tutorials I'm going to make. I just need to find a way explain the way people will understand, I also have to learn a bit more about it but I will definitely do it.
@freeju2001
@freeju2001 5 жыл бұрын
@Xlaugts, you're amazing bro, solved my issue, have been lookin' out for this for almost 3 days and finally found you. Thanks a ton.
@xlaugts151
@xlaugts151 5 жыл бұрын
I'm happy that helped you Manicka
@waihanlim6699
@waihanlim6699 4 жыл бұрын
Simple and direct, good job!
@irinakuznetcova354
@irinakuznetcova354 5 жыл бұрын
If Unity doesn't register the Pointer Enter event (that is, you point at the object but nothing happens), try changing the Max Reticle Distance under Main Camera -> GvrReticlePointer from 20 to a bigger number. I bumped it to 100 and everything works now!
@xlaugts151
@xlaugts151 5 жыл бұрын
Hi IRina, Good job! Thanks for sharing a solution with others and for watching
@axramharter
@axramharter 5 жыл бұрын
Hi! I have the same problem. When the object is far away, nothing happens. Now when I set the max reticle distance to 100 it registers that I'm looking at a certain object and "fills the circle". But the teleportation/rotation doesn't happen. Any idea what I'm missing? Thanks
@xlaugts151
@xlaugts151 5 жыл бұрын
Hi @@axramharter, Not sure what could be happening, I would have to create that again and see if I have the same error. I will try that again over the weekend and see if I can come up with something. Thanks for watching :) Cheers
@axramharter
@axramharter 5 жыл бұрын
Xlaugts hey thanks but I already figured it out. The raycaster distance was set only to 10 ;)
@xlaugts151
@xlaugts151 5 жыл бұрын
@@axramharter Good Job!
@casamar3393
@casamar3393 5 жыл бұрын
Thanks a lot bro, did you know that you have saved me days of researching ?, again this is what I was looking for
@xlaugts151
@xlaugts151 5 жыл бұрын
Thanks you Mohamed
@nissimhadar
@nissimhadar 4 жыл бұрын
Very nice explanation. Thanks!
@andrewrichardson8144
@andrewrichardson8144 5 жыл бұрын
Excellent. Very helpful. Thanks.
@xlaugts151
@xlaugts151 5 жыл бұрын
Thank you for watching :)
@magicalwizard5437
@magicalwizard5437 3 жыл бұрын
Why do you stop making video :(. These videos helped me alot, thank you
@jasmineks1040
@jasmineks1040 12 күн бұрын
i am completely new to unity. i have to create a gaze interaction with a game object. can you help step by step way to do the same ...starting from which packages to import.......please help me if possible today itself so that i have to submit a very small project within two days time as part of the workshop.
@doobieshii
@doobieshii 2 жыл бұрын
thanks for the vid 😀im having challenges when I test in Unity: My player doesn't teleport and I'm wondering what I did wrong. Any suggestions??
@Esil__
@Esil__ 5 жыл бұрын
would u make a video on making an audio play when u gazed the object
@frederickpormes
@frederickpormes 2 жыл бұрын
hi, I made 4 cubes to teleport, but only 1 works, the rest can't teleport? can you tell me how to fix it? this is for my final project .. thanks before
@syarahabdullah3410
@syarahabdullah3410 6 ай бұрын
hello can i ask, i saw the scene manager. where can i get it
@jonathanbarnard7023
@jonathanbarnard7023 4 жыл бұрын
Hi I need help, keep getting error code, Null reference Exception: object reference not set to an instance of an object VRGaze update. any one know why ?
@sangeanygc870
@sangeanygc870 5 жыл бұрын
does anyone know why I get an error saying "Comparison of floating point numbers can be unequal due to the differing precision of the two values" for imgGaze.fillAmount == 1?
@anficyon
@anficyon 5 жыл бұрын
great video
@xlaugts151
@xlaugts151 5 жыл бұрын
Thanks Nes
@takahashierik
@takahashierik 5 жыл бұрын
I followed your steps, but when I add the Teleport script there is no GameObject space to put the Player camera into. Also I'm using Unity 2017 instead of 2018 so I don't know if there is any difference Edit: nevermind, I was missing a semicolon. I'm new to coding so I still make rookie mistakes lol
@shitshow_1
@shitshow_1 3 жыл бұрын
Thanks man !
@_STRIKEMEDIA_
@_STRIKEMEDIA_ 5 жыл бұрын
Hi, i've got a question i made everything u show in the video, but when i wanna test the game, doesn't works at all i really need you help, anyways good video.
@_STRIKEMEDIA_
@_STRIKEMEDIA_ 5 жыл бұрын
plus, the reticle pointer doesn't gets bigger when i focus it on the cube
@xlaugts151
@xlaugts151 5 жыл бұрын
Hi @@_STRIKEMEDIA_ , If the error is only on the phone try to have a look on this video here: kzbin.info/www/bejne/sJWxc42pf8mab8U I made a mistake on this video so on the one I am sending to you I show how to fix it and it will show on you phone
@_STRIKEMEDIA_
@_STRIKEMEDIA_ 5 жыл бұрын
Hi, the error is both on phone and pc the circle doesn't fillls up
@xlaugts151
@xlaugts151 5 жыл бұрын
@@_STRIKEMEDIA_ There is any error showing up ??
@takahashierik
@takahashierik 5 жыл бұрын
@@_STRIKEMEDIA_ Mine wasn't working because I forgot to add the GVR Pointer Physics Raycaster to the camera. Hope this helps
@mtankians1004
@mtankians1004 4 жыл бұрын
need help. The gaze navigation didn't work. why?
@nursheilaziziumiza8892
@nursheilaziziumiza8892 4 жыл бұрын
Great video! just one question, i have error for the GetComponent Teleport object. Overall it looks fantastics.
@rodrigo.cs.machado
@rodrigo.cs.machado 4 жыл бұрын
The circle of "GvrReticlePointer" is not synchronized with the center of the camera, making me have to aim more up or down on the object to work. The circle is "running" more than "Draw debug ray". Can someone help me?
@andreaverna4356
@andreaverna4356 5 жыл бұрын
Thanks a lot! I need your help. I've created the gaze input and I can see it fills the circle correctly. Now, I have 2 spheres and through this gaze I would transfer the camera from the first to the second sphere. Therefore I've put 2 events: the first one is the gaze loading (as per your video) and then the "changesphere (transform)". It works, however if I trigger the first event unintentionally, seeing the image with the cardboard, and then I look outside to avoid the transfer, the second event will be actived anyway. How can I solve it?
@xlaugts151
@xlaugts151 5 жыл бұрын
Hey Andrea, Sorry for the delay. Do you have a discord ? You could show me what you are trying to achieve and I can help you. If you still need the help Thanks
@ethanjarveyocampo1199
@ethanjarveyocampo1199 4 жыл бұрын
Hello! I tried doing a gaze timer to scene transition, so I kinda just mashed what I got from both of your videos, which are pretty good imo! However, when I tried to do it, it bypasses the timer and goes straight to the next scene. I get this warning: "Using Raycaster (Raycaster: UnityEngine.UI.GraphicRaycaster, Object: Canvas). It is recommended to use GvrPointerPhysicsRaycaster or GvrPointerGrahpicRaycaster with GvrPointerInputModule. UnityEngine.Debug:LogWarning(Object) GvrPointerInputModuleImpl:CastRay() (at Assets/GoogleVR/Scripts/EventSystem/InputModule/GvrPointerInputModuleImpl.cs:215) GvrPointerInputModuleImpl:Process() (at Assets/GoogleVR/Scripts/EventSystem/InputModule/GvrPointerInputModuleImpl.cs:109) GvrPointerInputModule:Process() (at Assets/GoogleVR/Scripts/EventSystem/InputModule/GvrPointerInputModule.cs:184) UnityEngine.EventSystems.EventSystem:Update() (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/EventSystem.cs:377) ". Could this be the problem?
@takahashierik
@takahashierik 5 жыл бұрын
How can I hide the reticle when not interacting with an object?
@xlaugts151
@xlaugts151 5 жыл бұрын
The reticle pointer is part of the SDK we import so in order to do that we would have to change the RecticlePointer script and I don't recommend that. I am not sure how it could be done, but I will have a look Thanks
@anniehepburn9454
@anniehepburn9454 5 жыл бұрын
Thank you for the video, it's exactly what I am look for; I am having trouble getting it working though. Is there any way you could share the 2 scripts? I'm wondering if I just copied it wrong. Thank you!
@meltSTUDIO
@meltSTUDIO Жыл бұрын
Sad, the gaze is fine, but when its end i cant teleport. Help pls:(
@pavanbheesetty3207
@pavanbheesetty3207 5 жыл бұрын
Hello!!! your tutorial is great .It's just working in game view.When i build and run it in mobile that circular timer doesn't show up..I could only see reticle pointer but not the image that added as timer.Help me please!!
@xlaugts151
@xlaugts151 5 жыл бұрын
Hey my friend, Thanks for watching. Yes, you're right it does not work. I fixed that on this video kzbin.info/www/bejne/sJWxc42pf8mab8U have a look, I talk about that. :)
@birthestubbe931
@birthestubbe931 5 жыл бұрын
@@xlaugts151 Hi, thank you for the great video. I had a look onto your next linked video here, but when switching to world space the image is not rendered anymore, neither on my Mac nor on my Android. I didn't change anything else. Any idea what I might have done wrong?
@xlaugts151
@xlaugts151 5 жыл бұрын
@@birthestubbe931 I will explain how I did it and on my Android is working fine. I created a canvas as a child of the main camera, the render mode is set to World Space and I re position in front of the camera, I also removed the graphics raycaster of that canvas.
@birthestubbe931
@birthestubbe931 5 жыл бұрын
@@xlaugts151 perfect, I managed to get it running. Thank you so much for getting back to me. Great and inspiring work you are doing here!
@xlaugts151
@xlaugts151 5 жыл бұрын
@@birthestubbe931 Thank you for the comment my friend :) I really appreciate it
@monojit104
@monojit104 5 жыл бұрын
Ray ray = Camera.main.ViewportPointToRay(new Vector3(0.5f, 0.5f, 0f)); if(Physics.Raycast(ray, out hit, distanceofRay)) { if (imgGaze.fillAmount == 1 && hit.transform.CompareTag("Teleport")) { hit.transform.gameObject.GetComponent().TeleportPlayer(); } } Why if conditions does not occurs in my scripts? hit.transform.CompareTag("Teleport") does not work. Any suggestions?
@yavalang
@yavalang 3 жыл бұрын
Ohh, so helpful, thank you! But for some reason, the filled image is visible in Game-view but not in Android device (VR).
@LeHieu-sr2kn
@LeHieu-sr2kn Жыл бұрын
have you found the solution?
@krishnasampreeth413
@krishnasampreeth413 3 жыл бұрын
How to make a gaze virtual button in vuforia..
@supremebeme
@supremebeme 5 жыл бұрын
How to make gaze reticle pointer show only when player moves head for period of time?
@xlaugts151
@xlaugts151 5 жыл бұрын
Hi Paul, Could you give me an example what are you trying to do? Thanks
@supremebeme
@supremebeme 5 жыл бұрын
Xlaugts I wanted to show reticle only when head moves and disappear when head stop moving but I figured out some other solution.
@xlaugts151
@xlaugts151 5 жыл бұрын
@@supremebeme Great, could you share a solution with me ? There was some other guys asking me the same thing hahaha and I am not sure how to do it.
@JohnCraigFreeman
@JohnCraigFreeman 4 жыл бұрын
Hello there, Thanks for doing these tutorials. I managed to get the gaze timer teleport working on Android, but then I tried to port it over to SteamVR and the same script only allows me to teleport once. Otherwise it works fine. Do you have any thoughts?
@dx01mirela72
@dx01mirela72 5 жыл бұрын
Hi, first, thanks for the videos, it's just what I was looking for. I just have one problem, In Unity, everything is workig well, but in my smarphone the filling image just do not appears. Do you have any idea of what is wrong? Thanks
@dx01mirela72
@dx01mirela72 5 жыл бұрын
Nerver mind, just saw the next video and make the changes on canvas. Thanks again.
@xlaugts151
@xlaugts151 5 жыл бұрын
@@dx01mirela72 Yeah that's what I was going to send to you. Thanks for watching
@иваниванов-д2я4н
@иваниванов-д2я4н 3 жыл бұрын
@@xlaugts151 I guess I should have looked closer at the comments before asking my own question! ))) Gotta see the next video, as you said. Thanks for mentioning that!
@иваниванов-д2я4н
@иваниванов-д2я4н 3 жыл бұрын
Thanks for the tutorial! But I have a problem: it all work perfect while in Unity, but after I build and run the app, teleportation is fine, but the custom timer does not show, only the standard white dot and white circle. What do I do wrong?
@FreitagsKino
@FreitagsKino 3 жыл бұрын
How do you solved the Problem?
@MaximuszEsala
@MaximuszEsala 5 жыл бұрын
hey man im really new to this after adding teleport part to vr gaze script i get this error on unity vrgaze.cs(32,63): error CS1003: Syntax error, ',' expected
@xlaugts151
@xlaugts151 5 жыл бұрын
Hey Maximusz, This means some spelling mistake on your script. It might be something small like a , Have a look on your script and see if you can spot something.
@MaximuszEsala
@MaximuszEsala 5 жыл бұрын
@@xlaugts151 hi there yes it was a spelling mistake i figured out !! thanks alot can you please do a tutorial on a small 2d mobile side scroller ? many would love to see
@xlaugts151
@xlaugts151 5 жыл бұрын
@@MaximuszEsala Im studying how to do that now. Im finding an easy way to do that. I was off for a while now I have a list of tutorials, thats is a nice one to do it Thanks for the suggestion
@FouseyShort
@FouseyShort 5 жыл бұрын
How can I implement drag and throw is its on update
@axramharter
@axramharter 5 жыл бұрын
Hi! Thanks for the great tutorial! I realized that the interaction only works when I'm very close to the object. When I put the object far away nothing happens. Do you know how I can solve this problem?
@axramharter
@axramharter 5 жыл бұрын
ok, found it out. the rayCasterDistance was set only at 10.
@mushyyuki
@mushyyuki 4 жыл бұрын
@@axramharter Hi, i have the same problem. Can i know where to find the rayCasterDistance?
@axramharter
@axramharter 4 жыл бұрын
@@mushyyuki Hi, I think I changed 2 values. The maxReticleDistance in GvrReticlePointer.cs and the distanceOfRay in VRGaze.cs. Both to 100. I'm not sure why I wrote "rayCasterDistance" because I cannot find this variable anymore. Let me know if it worked for you.
@mushyyuki
@mushyyuki 4 жыл бұрын
@@axramharter Hi thank you for writing back. I cannot find distanceOfRay in my VRGaze so i just changed my maxReticleDistance to 200 and it work! Thank you so much!
@alacritysama2708
@alacritysama2708 5 жыл бұрын
I use paint too, you know!
@xlaugts151
@xlaugts151 5 жыл бұрын
hahaha thats the best :)
@littleangel6379
@littleangel6379 5 жыл бұрын
hi! first, thanks a lot for your videos, they are great and helped me a lot! i actually have a problem when trying to do this, indeed the reticule stays "big" i mean the red circle stays filled even when pointing at nothing when i try it (just like you do at 5:25min) it doesn't wait for me to point at the cube.. can you help me? thanks
@xlaugts151
@xlaugts151 5 жыл бұрын
Hey My friend, thanks a lot. Did you check the fill amount if is set to 0 ? On the video I didn't do it because I wanted to show to the viewers. So if you point it to the object, nothing happens ?
@littleangel6379
@littleangel6379 5 жыл бұрын
Thanks a loot indeed it was the problem! keep on going your videos they are great!
@xlaugts151
@xlaugts151 5 жыл бұрын
@@littleangel6379 if you look at the cube, is the reticle filling or not ? I need a bit more details just to make sure what part exactly could be the problem.
@littleangel6379
@littleangel6379 5 жыл бұрын
HP Gamer Dev so I manage to fix the problem an it’s perfectly working just as in your video thanks! Now I have another big problem, everything is working just fine on my computer but when I put it on the Android phone there no detection of the objects anymore.. the environment and the walk are okay but the reticle isn’t getting bigger nor filling.. any idea?
@littleangel6379
@littleangel6379 5 жыл бұрын
@@xlaugts151 and once i've build the app it also stop working on the computer.. really strange but at first it work on the computer, then i build the app in the android and it dosent work anymore, either on the phone or the computer 😅
@thediyadventure-studio
@thediyadventure-studio 5 жыл бұрын
it works great when I test it on unity editor but when viewing in cardboard, the gaze loader image is centered in middle of phone screen not sure how to fix this issue
@xlaugts151
@xlaugts151 5 жыл бұрын
Hi Truong, Maybe try to re position the image and re scale ?? Thank you for watching!!
@bosskung203
@bosskung203 5 жыл бұрын
My RotateCube It doesn't stop spinning and Tag: RotateCube is not defined.
@xlaugts151
@xlaugts151 5 жыл бұрын
Did you created the tag RotateCube and added to the cube?
@shuoyan7209
@shuoyan7209 5 жыл бұрын
hello, great video! Could you share the RotateCube Script? Thanks so much!
@xlaugts151
@xlaugts151 5 жыл бұрын
Hey Shuo, Thank you for watching. Have a look on this video and jump to 10 minutes you will have the code and you can copy kzbin.info/www/bejne/hXazaKaDrMuNpKc :) Sorry for the late reply
@shuoyan7209
@shuoyan7209 5 жыл бұрын
@@xlaugts151 Thanks!
@bosskung203
@bosskung203 5 жыл бұрын
i need AutoClick by look on VR
@xlaugts151
@xlaugts151 5 жыл бұрын
Hi Kotomi, Have a look on this video first kzbin.info/www/bejne/sJWxc42pf8mab8U I will try to explain how you could do it hahaha On the video I send to you I show how to interact with a button using gaze timer, you can use the same principle to do the autoclick. Look at the cube (or button) and the PointerEnter will call a function GVROn instead of doing that you could call the function you want it, if is to click a button or do something else. I hope that helps you. Let me know if its clear Thanks
@diniedyno2636
@diniedyno2636 5 жыл бұрын
it's just grab 1 ball only. what if there's a lot of balls or boxes?
@diniedyno2636
@diniedyno2636 5 жыл бұрын
how to make selection manager?
@diniedyno2636
@diniedyno2636 5 жыл бұрын
Make vr tutorial selection item please......(o_0)😯🤓🙏
@anggisineru3318
@anggisineru3318 5 жыл бұрын
Can you share your script ?
@xlaugts151
@xlaugts151 5 жыл бұрын
Which script do you want me to share ?
@Music-lv8xf
@Music-lv8xf 5 жыл бұрын
@@xlaugts151 the teleporter one, and can I ask question is it really needed to have a target object in order to teleport??
@kevin_kho
@kevin_kho 5 жыл бұрын
Hello sir, i have a error on VRGaze. it says: NullReferenceException: Object reference not set to an instance of an object VRGaze.Update() error line 30: Ray ray = Camera.main.ViewportPointToRay (new Vector3 (0.5f, 0.5f, 0f)); what sould i do sir?
@xlaugts151
@xlaugts151 5 жыл бұрын
Hey Kevin, Is it possible to share with me the project ??? Thanks for watching!
@kevin_kho
@kevin_kho 5 жыл бұрын
@@xlaugts151 nvm sir. The problem is, the Main Camera should give tags "MainCamera". Another problem is the gaze timer image won't show in android. What should i do???
Unity VR Tutorial - Jump Controller
5:42
Xlaugts
Рет қаралды 6 М.
How Hollywood Shot Actors with Arrows before CGI
15:12
Tyler Bell
Рет қаралды 3,4 МЛН
How Strong is Tin Foil? 💪
00:25
Brianna
Рет қаралды 67 МЛН
这是自救的好办法 #路飞#海贼王
00:43
路飞与唐舞桐
Рет қаралды 125 МЛН
Из какого города смотришь? 😃
00:34
МЯТНАЯ ФАНТА
Рет қаралды 1,3 МЛН
2 MAGIC SECRETS @denismagicshow @roman_magic
00:32
MasomkaMagic
Рет қаралды 33 МЛН
VR Gaze Interaction in Unity
21:43
Tomaz Saraiva
Рет қаралды 10 М.
Unity VR Tutorial - Button Gaze Timer Interaction
7:20
Xlaugts
Рет қаралды 20 М.
Building a REAL pawn that transforms into a queen (automatically)
14:12
Works By Design
Рет қаралды 1,8 МЛН
AI Learns to Run Faster than Usain Bolt | World Record
10:22
cozmouz
Рет қаралды 1 МЛН
10 Minutes vs. 10 Years of Animation
19:29
Isto Inc.
Рет қаралды 1,2 МЛН
Can You Beat Road 96 WITHOUT Hitchhiking?
13:46
Juddsun
Рет қаралды 866 М.
I Wish I Had Known This Before I Started Unity Game Development...
11:11
I Built a Robot that Plays FPS Games
21:23
Basically Homeless
Рет қаралды 879 М.
How To Movement In Virtual Reality Without Need Controller
10:47
Denys Gamers Tutorial
Рет қаралды 43 М.
How Strong is Tin Foil? 💪
00:25
Brianna
Рет қаралды 67 МЛН