Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Is there 2D example environment ?

Discussion in 'ML-Agents' started by Hsgngr, Jun 10, 2020.

  1. Hsgngr

    Hsgngr

    Joined:
    Dec 28, 2015
    Posts:
    61
    Is there a 2D environment example that we can use like this? I really dont need one more dimension for this example and it will only add complexity to my problem
    upload_2020-6-10_15-46-54.png
     
  2. vincentgao88

    vincentgao88

    Unity Technologies

    Joined:
    Feb 7, 2018
    Posts:
    21
    Currently we don't, but you should be able to create such environment by yourself.
     
  3. andrzej_

    andrzej_

    Joined:
    Dec 2, 2016
    Posts:
    81
    Out of curiosity is there anything in particular you're looking for in a 2D environment?
    Ray Perception Sensor 2D, or your own vector observations from raycast should work just fine. From the point of view of the agent I would even argue that a lot of the environments in the examples are 2D (only 'horizontal' actions and observations). How the engine renders it is secondary, unless I'm missing something distinctive to 2D games here.
     
  4. Hsgngr

    Hsgngr

    Joined:
    Dec 28, 2015
    Posts:
    61
    Thanks @andrzej_ , you are right in a way that the physics and frame rendering of the Unity engine take place asynchronously. As such it is possible to run Unity simulations without rendering if it is not critical to the simulation (Unity: A General Platform for Intelligent Agents). However I think it adds up complexity just having a one more dimension while training the agent. I will start with 3D food collecter environment for this purpose, than I will see
     
  5. Hsgngr

    Hsgngr

    Joined:
    Dec 28, 2015
    Posts:
    61
    Thank you, I will try =) !