GRUtopia: Bug when rendering the home scenes

Ubuntu 20.04 IsaacSim 4.2.0

The table_scene.usd can be rendered properly:

python toolkits/grscenes_scripts/play_scene.py -f /home/ubuntu/PycharmProjects/GRUtopia/grutopia/assets/scenes/demo_scenes/franka_mocap_teleop/table_scene.usd

Image

However, when I try the scene in the commercial and home scenes, there is nothing:

 python toolkits/grscenes_scripts/play_scene.py -f /home/ubuntu/PycharmProjects/GRUtopia/grutopia/assets/scenes/GRScenes-100/home_scenes/scenes/MV7J6NIKTKJZ2AABAAAAADA8_usd/start_result_raw.usd

Image

and the error occurs:

2025-03-09 14:33:20 [7,087ms] [Error] [omni.usd] USD_MDL: in LoadModule at line 247 of ../../source/plugins/usdMdl/neuray.cpp -- 'rtx::neuraylib::MdlModuleId' for 'Materials/DayMaterial.mdl' is Invalid

2025-03-09 14:33:20 [7,087ms] [Error] [omni.usd] USD_MDL: in GetSdrFromDiscoveryResult at line 178 of ../../source/plugins/usdMdl/moduleRegistry.cpp -- Module: 'Materials/DayMaterial.mdl' with version '1' not found in 'MdlModuleRegistry::ModuleDataMap'.

2025-03-09 14:33:20 [7,087ms] [Error] [omni.hydra] Failed to create MDL shade node for prim '/Root/Looks/DayMaterial/DayMaterial'. Empty identifier: ''         and/or subIdentifier: ''

About this issue

Most upvoted comments

@MiangChen Hello! Thanks for your feedback! You could try this script to fix/recreate the symlinks inside the scenes folder:

import os


def create_symlinks(scenes_folder):
    if not os.path.exists(scenes_folder):
        raise FileNotFoundError(f"scenes_folder {scenes_folder} not found!")
    
    models_dir = os.path.abspath(os.path.join(scenes_folder, 'models'))
    scenes_dir = os.path.abspath(os.path.join(scenes_folder, 'scenes'))
    materials_dir = os.path.abspath(os.path.join(scenes_folder, 'Materials'))

    # create "Materials" symlink in models_dir
    for root, _, files in os.walk(models_dir):
        for _ in files:
            link_path = os.path.join(root, "Materials")
            materials_dir_relpath = os.path.relpath(materials_dir, root)
            if not os.path.islink(link_path):
                os.symlink(materials_dir_relpath, link_path)
    
    # create "Materials" and "models" symlink in scenes_dir
    for root, _, files in os.walk(scenes_dir):
        for _ in files:
            materials_link_path = os.path.join(root, "Materials")
            models_link_path = os.path.join(root, "models")
            materials_dir_relpath = os.path.relpath(materials_dir, root)
            models_dir_relpath = os.path.relpath(models_dir, root)
            if not os.path.islink(materials_link_path):
                os.symlink(materials_dir_relpath, materials_link_path)
            if not os.path.islink(models_link_path):
                os.symlink(models_dir_relpath, models_link_path)

SCENES_FOLDER = 'commercial_scenes'
create_symlinks(SCENES_FOLDER)

Hi, @tianshihan818 @HanqingWangAI , I have improve the code to deal with several cases. case1: the “Materials” and “models” are files, they should be removed first.

Image

case2: “Materials” amd “models" are true folders, nothing to do

Then the code is:

import os


def create_symlinks(scenes_folder):
    if not os.path.exists(scenes_folder):
        raise FileNotFoundError(f"scenes_folder {scenes_folder} not found!")

    models_dir = os.path.abspath(os.path.join(scenes_folder, 'models'))
    scenes_dir = os.path.abspath(os.path.join(scenes_folder, 'scenes'))
    materials_dir = os.path.abspath(os.path.join(scenes_folder, 'Materials'))
	
    def add_link_according_to_different_cases(link_type:str, link_path, dir_relpath):
        if not os.path.islink(link_path):
            if os.path.isfile(link_path):  # in case of when “Materials" or "model" is a file
                os.remove(link_path)
                os.symlink(dir_relpath, link_path)
            elif os.path.isdir(link_path): # in case of "Materials" or "model" is the true Material/model folder
                pass
            else:  # in case of some files are missing "Materials"/"model" file, or other irrelevant folder . You need to check manually according to the log. 
                print(f"No **{link_type}** file or link in {root}, please check manually")

    
    # create "Materials" symlink in models_dir
    for root, _, files in os.walk(models_dir):
        for _ in files:
            materials_link_path = os.path.join(root, "Materials")
            materials_dir_relpath = os.path.relpath(materials_dir, root)
            add_link_according_to_different_cases(link_type="Materials", link_path=materials_link_path, dir_relpath=materials_dir_relpath)


    # create "Materials" and "models" symlink in scenes_dir
    for root, _, files in os.walk(scenes_dir):
        for _ in files:
            materials_link_path = os.path.join(root, "Materials")
            materials_dir_relpath = os.path.relpath(materials_dir, root)
            add_link_according_to_different_cases(link_type="Materials", link_path=materials_link_path, dir_relpath=materials_dir_relpath)

            models_link_path = os.path.join(root, "models")
            models_dir_relpath = os.path.relpath(models_dir, root)
            add_link_according_to_different_cases(link_type="models", link_path=models_link_path, dir_relpath=models_dir_relpath)



if __name__ == '__main__':
    SCENES_FOLDER = '/home/ubuntu/PycharmProjects/GRUtopia/grutopia/assets/scenes/GRScenes-100/home_scenes'
    create_symlinks(SCENES_FOLDER)

finally the scene can be rendered properly:

Image

After I processed the above summary, I encountered the following error when loading home_scenes: Image

Does anyone of you know how to solve it? Thanks!

t

After I processed the above summary, I encountered the following error when loading home_scenes: Image

hi, I think this is a loading path error. You can refer to the previous record of this conversation to fix the bug: #41 (comment)

Now I can get the scene to display properly, thanks !

hi @HanqingWangAI , I have a question did you guys tried playing the scenes in nvidia issac container version? I am still having trouble loading scene using the play_scene.py script, it seem like it has some issue working with docker. I’ll try to debug the problem tomorrow but, just want to check if anything like this has been encountered before. Thanks!

Hi @m-muaz ! We have tried playing the scenes in nvidia isaacsim docker, but there are some unknown issues leading to failure. I think the main reason is, we use relative paths when referencing the models, materials and textures inside the whole scene usd file. It’s by design for convenience to transfer the scene usd files to anyone with different hosts. This works fine with the isaacsim standalone version, but fails with the isaacsim container. I have some guesses that might fix the problem:

  1. Replace the relative paths with absolute paths when referencing models and materials or
  2. Remount the directory paths between the container and host, then rebuild the soft symlinks

I will do some tests tonight to verify it.

@m-muaz hi, I installed the Ubuntu 22.04 Desktop on my workstation, with 4070 ti super 16Gb. The driver version is 535.216.01

hi, @m-muaz I try your command in my terminal, and the error is No preprocess method specified!

python toolkits/grscenes_scripts/preprocess.py -f /home/ubuntu/PycharmProjects/GRUtopia/grutopia/assets/scenes/demo_scenes/franka_mocap_teleop/table_scene.usd` 

Image

I try to add a parameter -i , and there is still error:

Image

So I try another command

python toolkits/grscenes_scripts/play_scene.py -f /home/ubuntu/PycharmProjects/GRUtopia/grutopia/assets/scenes/demo_scenes/franka_mocap_teleop/table_scene.usd

Although there may be some red error saying “No space left on device”, don’t worry, just wait, and then you can see the demo scene.

Image

Image