Search Unity

Question Running 3dball in Python Interpretor

Discussion in 'ML-Agents' started by dan_soqqle, May 12, 2023.

  1. dan_soqqle

    dan_soqqle

    Joined:
    Feb 2, 2022
    Posts:
    114
    Hi i'm trying to run the 3dball scene in python interpretor as i'm trying to get things to work on Colab (unsuccessfully). Has anyone got this to work? I'm using Macos, so i
    1. built the app on MacOS,
    2. go into my virtual env
    3. Run from mlagents_envs.environment import UnityEnvironment
    4. Run env = UnityEnvironment(file_name="3dball", seed=1, side_channels=[], worker_id=1)
    Crashes right away when the app tries to open.

    Yes i know i didn't set nographics but when i set it i get the below and nothing happens.
    Does anyone know how did the example 3dball/Gridworld project on the default registry get built for Colab?

    I also can't find any guide anywhere about building our own app for colab (only one using 3d ball).

    -- Error when no_graphics = true
    ERROR: Shader Sprites/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    ERROR: Shader Sprites/Mask shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    ERROR: Shader Legacy Shaders/VertexLit shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    WARNING: Shader Unsupported: 'Autodesk Interactive' - All subshaders removed
    WARNING: Shader Did you use #pragma only_renderers and omit this platform?
    WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
    ERROR: Shader Autodesk Interactive shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    WARNING: Shader Unsupported: 'Autodesk Interactive' - All subshaders removed
    WARNING: Shader Did you use #pragma only_renderers and omit this platform?
    WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
    WARNING: Shader Unsupported: 'Standard' - All subshaders removed
    WARNING: Shader Did you use #pragma only_renderers and omit this platform?
    WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
    ERROR: Shader Standard shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    WARNING: Shader Unsupported: 'Standard' - All subshaders removed
    WARNING: Shader Did you use #pragma only_renderers and omit this platform?
    WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?