How to make an AR App: Character Navigation in AR (Unity + Lightship ARDK 3 tutorial)

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 พ.ย. 2024

ความคิดเห็น • 34

  • @AliveStudios_
    @AliveStudios_  10 หลายเดือนก่อน +2

    Additional info:
    👉🏽 They changed the naming in the final release, it's now "LightshipNavMeshAgent " but anything else remains the same :)
    lightship.dev/docs/ardk/features/navigation_mesh/
    👉🏽 The cube has this hopping animation because, in the Lightship Nav Mesh Manager (Gameboard Manager), under the "Layer Mask" option, "Everything" is selected. (Essentially, it's trying to create a gameboard on itself)
    If you'd like to eliminate this hopping animation, here's what you can do: Create a new layer for your Meshing Prefab, which is used in the AR Mesh Manager. To do this, select the Meshing Prefab, then go to the top right and find "Layer." Create a new layer named 'ARMesh,' for example. After that, return to the Lightship Nav Mesh Manager (Gameboard Manager), and select 'ARMesh' as the only layer. This change should stop the hopping animation from occurring.

  • @fr33m4n99x
    @fr33m4n99x ปีที่แล้ว +2

    Thanks for another fantastic tutorial 👍

  • @nataliec3452
    @nataliec3452 8 หลายเดือนก่อน

    Thanks so much for taking the time to make such an amazing tutorial I love the fact you're so clear concise with well explained concepts looking very forward to your future adventures and feel very lucky that you're prepared to let us learn along with you thank you

    • @AliveStudios_
      @AliveStudios_  8 หลายเดือนก่อน

      Thanks a bunch for your kind words, I really appreciate it!

  • @sabinakhamzina3600
    @sabinakhamzina3600 6 หลายเดือนก่อน

    Hi, thank you for this video❤, it’s a life saver. I’m only starting this game dev journey 😅 could you pls show your animator for the character in the end? I know it’s based on simple bool transition but still mine doesn’t seem to be working(((

  • @gaetanolombardo6150
    @gaetanolombardo6150 5 หลายเดือนก่อน

    I am still missing these namespaces
    Experimental
    World positioning Status
    ARWorldPositioningCameraHelper
    ARworldPositionManager
    What package do they belong to?
    Thanks

    • @AliveStudios_
      @AliveStudios_  4 หลายเดือนก่อน

      The seem to belong to a new ARDK 3.5 system called WPS. You don't need these name-spaces in the character navigation. Are those in your script?

  • @GunjanVishwakarma-qs9bc
    @GunjanVishwakarma-qs9bc 6 หลายเดือนก่อน +1

    I'm currently facing a small error in ClickToMove script. The error I'm encountering is: 'error CS0234: The type or namespace name 'Extensions' does not exist in the namespace 'Niantic.Lightship.AR'.' I've double-checked my imports and references, but I'm still unable to resolve it.

    • @AliveStudios_
      @AliveStudios_  6 หลายเดือนก่อน

      Ist that a "using Niantic.Lightship.AR.Extension" Line that causes the error? Did you try just deleting that line?

    • @GunjanVishwakarma-qs9bc
      @GunjanVishwakarma-qs9bc 6 หลายเดือนก่อน

      @@AliveStudios_ i commented out that part , after that there are still some errors :-
      Severity Code Description Project File Line Suppression State
      Error CS0246 The type or namespace name 'GameboardAgent' could not be found (are you missing a using directive or an assembly reference?) Assembly-CSharp 11 Active
      Error CS0246 The type or namespace name 'GameboardAgent' could not be found (are you missing a using directive or an assembly reference?) Assembly-CSharp 32 Active
      Error CS0103 The name 'Path' does not exist in the current context Assembly-CSharp
      95 Active
      Error CS0103 The name 'GameboardAgent' does not exist in the current context Assembly-CSharp

    • @AliveStudios_
      @AliveStudios_  6 หลายเดือนก่อน +1

      @@GunjanVishwakarma-qs9bc They changed the naming in the final release, it's now "LightshipNavMeshAgent " but anything else remains the same. You can just change the GameboardAgent to LightshipNavMeshAgent, then things should be working :)
      lightship.dev/docs/ardk/features/navigation_mesh/

    • @GunjanVishwakarma-qs9bc
      @GunjanVishwakarma-qs9bc 6 หลายเดือนก่อน +2

      @@AliveStudios_ I swapped Niantic.Lightship.AR.Extensions.Gameboard to Niantic.Lightship.AR.NavigationMesh , and Gameboard agent to LightshipNavMeshAgent agent. now its working smoothly. Thanks for the help, really appreciate it 😁😁

    • @AliveStudios_
      @AliveStudios_  6 หลายเดือนก่อน +1

      @@GunjanVishwakarma-qs9bc Glad I could help :)

  • @joaovitorcau9684
    @joaovitorcau9684 9 หลายเดือนก่อน

    Hello, how do I make the movement not have those jumps of the default LightshipNavMeshAgent when you put the setdestination(), thank you in advance, the video is very good and very explanatory!

    • @AliveStudios_
      @AliveStudios_  9 หลายเดือนก่อน

      hey mate thanks for your kind words :) The cube has this hopping animation because, in the Lightship Nav Mesh Manager (Gameboard Manager), under the "Layer Mask" option, "Everything" is selected. (Essentially, it's trying to create a gameboard on itself)
      If you'd like to eliminate this hopping animation, here's what you can do: Create a new layer for your Meshing Prefab, which is used in the AR Mesh Manager. To do this, select the Meshing Prefab, then go to the top right and find "Layer." Create a new layer named 'ARMesh,' for example. After that, return to the Lightship Nav Mesh Manager (Gameboard Manager), and select 'ARMesh' as the only layer. This change should stop the hopping animation from occurring.

  • @chrisrenzi1581
    @chrisrenzi1581 ปีที่แล้ว

    Hey.. Great video, it was exactly what I was looking for... thank you! A couple of things. Looks like in the latest ARDK3, they changed the name of the Gameboard Manager and Renderer classes to Lightship Nav Mesh Manager / Renderer (It's in the latest release ntoes). Also, I can't seem to get the cube to stop bouncing while it is moving to the next waypoint. Even if I try an animated character it still bounces up and down. Is there a way to stop it from bouncing? Like at the end of the video, your character runs without bouncing.

    • @AliveStudios_
      @AliveStudios_  ปีที่แล้ว

      Hi Chris,
      Thank you very much for your comment, and you've made a great point! You're right; I didn’t explain this part in the video. The cube has this hopping animation because, in the Lightship Nav Mesh Manager (Gameboard Manager), under the "Layer Mask" option, "Everything" is selected. (Essentially, it's trying to create a gameboard on itself)
      If you'd like to eliminate this hopping animation, here's what you can do: Create a new layer for your Meshing Prefab, which is used in the AR Mesh Manager. To do this, select the Meshing Prefab, then go to the top right and find "Layer." Create a new layer named 'ARMesh,' for example. After that, return to the Lightship Nav Mesh Manager (Gameboard Manager), and select 'ARMesh' as the only layer. This change should stop the hopping animation from occurring.
      Please let me know if it worked!

    • @chrisrenzi1581
      @chrisrenzi1581 ปีที่แล้ว +1

      ​@@AliveStudios_ That worked. Thanks again.

    • @AliveStudios_
      @AliveStudios_  ปีที่แล้ว

      @@chrisrenzi1581 , Awesome! Your're very welcomed

  • @ragavanelavarasan1260
    @ragavanelavarasan1260 8 หลายเดือนก่อน +1

    where i can get the meshprefeb?

    • @AliveStudios_
      @AliveStudios_  8 หลายเดือนก่อน +1

      You can create it yourself. Just create a new GameObject in your scene, attach a Mesh Filter, Mesh Renderer and Mesh Collider to it and add any given material to the Mesh Renderer, make it a prefab and than drag it in :)

  • @rumeysaay7447
    @rumeysaay7447 11 หลายเดือนก่อน

    The type or namespace name 'GameboardAgent' could not be found

    • @AliveStudios_
      @AliveStudios_  11 หลายเดือนก่อน

      They changed the naming in the final release, it's now "LightshipNavMeshAgent " but anything else remains the same :)
      lightship.dev/docs/ardk/features/navigation_mesh/

  • @nomisnibor
    @nomisnibor 9 หลายเดือนก่อน

    I don't know what I am doing wring but with my android phone, when I play game, the camera move randomly with a pink colored mesh. I do not get on the game window a realtime video from my phone?! 🤔
    I am getting this error message: ArgumentException: Getting control 1's position in a group with only 1 controls when doing repaint
    Maybe no link thought to the issue...

    • @AliveStudios_
      @AliveStudios_  9 หลายเดือนก่อน

      Do you use Unity's URP or the normal 3d rendering pipeline?
      Is everything working inside the unity editor, for example when using Playback?

    • @nomisnibor
      @nomisnibor 9 หลายเดือนก่อน

      Thank you so much for responding to me@@AliveStudios_
      I am using URP and inside the editor, it seems to be okay. Only this camera who is moving randomly. Like it is not attached to my phone camera. If I disconnect my phone, the camera is still moving randomly...

    • @AliveStudios_
      @AliveStudios_  9 หลายเดือนก่อน

      @@nomisnibor Did you double check that you don't have two cameras in your scene but only the "XR Origin" ? And do you also use the AR Background Renderer rendering feature with your URP Asset renderer?

    • @nomisnibor
      @nomisnibor 9 หลายเดือนก่อน

      I have only one camera set from XR Origin>CameraOffset@@AliveStudios_
      I guess I am using AR Background Renderer as I am using the 3D URP template (so sorry I couldn't find how I could check if I am using it, I am very new in Unity)

    • @nomisnibor
      @nomisnibor 9 หลายเดือนก่อน

      It does work, except I cannot see the desktop video, weird@@AliveStudios_