Issues Adding Custom Assets To Advantage Scope

I am currently trying to add a custom asset to advantage scope. The issue I am having is that the 3d model does not appear in the window but the listing of the custom model being available appears in the robot drop down list on the 3d field tab.

{
  "name": "DunkTank",
  "sourceUrl": "",
  "rotations": [
    {
      "axis": "x",
      "degrees": 0
    },
    {
      "axis": "z",
      "degrees": 0
    }
  ],
  "position": [
    0,
    0,
    0
  ],
  "cameras": [
{
      "name": "limelight",
      "rotations": [
{ 
"axis": "y",
"degress": 0
}
],
      "position": [0,0,1],
      "resolution": [640,480],
      "fov": 63.3
    }
],
  "components": [
    {
      "zeroedRotations": {
        "axis": "x",
        "degrees":0
      },
      "zeroedPosition": [
        0,
        0,
        0
      ]
    },
    {
      "zeroedRotations": {
        "axis": "x",
        "degrees":0
      },
      "zeroedPosition": [
        0,
        0,
        0
      ]
    },
    {
      "zeroedRotations": {
        "axis": "x",
        "degrees":0
      },
      "zeroedPosition": [
        0,
        0,
        0
      ]
    }
  ]
}

Screen Recording 2024-10-10 at 1.02.22 PM

Any thoughts?

If u go to the Help menu there’s an option to load the custom assets folder. If its not there it under Help > preferences, something like thattt

It doesn’t look like your asset folder is using the file structure described in the documentation. Also make sure to carefully follow the instructions for exporting as a glb file, rather than gltf.

1 Like

I tried that and it didnt change anything, I have even tried to restart advantage scope and the robot simulation and it didnt do anything

I did try it with the glb file and it threw and error. The documentation isnt very clear on which it likes. I also dont get the “merge faces with same part” option when exporting

To be more precise, I think you need to export your robot to 3 glb files. You are have two components in your json file, you need to seperate the two components (like an arm or whatever) from your cad and export them as glb files.

When you finish, you should have these files:

config.json
model.glb
model_0.glb
model_1.glb

where model_0.glb and model_1 are the 3d models of your movable components, and model.glb is the 3d model of your drivetrain.

glTF has two formats: “.gltf” is for the text representation and “.glb” is for the binary version. From the docs:

Note that AdvantageScope uses the binary form (.glb), which includes all resources in a single file, rather than the pure JSON form (.gltf).

The main issue is that you want the model file to be named “model.glb” rather than using the name of the asset. And as pointed out above, if you define multiple components those should be in separate files. If you encounter any issues with that setup, it would be helpful if you can send a copy of the asset files to help with debugging.

1 Like