Genesis icon indicating copy to clipboard operation
Genesis copied to clipboard

Unable to load glb format scene

Open qZhang88 opened this issue 10 months ago • 6 comments
trafficstars

I have down load scene from habitat-sim test examples and load with following code, but nothing show up except the empty ground plane.

import genesis as gs
gs.init(backend=gs.cpu)
 
scene = gs.Scene(show_viewer=True)
plane = scene.add_entity(gs.morphs.Plane())
apartment = scene.add_entity(gs.morphs.Mesh(file="./habitat_test_scenes/apartment_1.glb"))

scene.build()

for i in range(1000):
    scene.step()

There are some warning btw

[Genesis] [14:50:54] [INFO] Adding <gs.RigidEntity>. idx: 1, uid: <89f1544>, morph: <gs.morphs.Mesh(file='./habitat_test_scenes/apartment_1.glb')>, material: <gs.materials.Rigid>.
/home/x/miniconda3/envs/genesis/lib/python3.11/site-packages/pygltflib/__init__.py:830: UserWarning: pygltflib currently does not remove image data from the buffer when converting to data uri.Please open an issue at https://gitlab.com/dodgyville/pygltflib/issues
  warnings.warn("pygltflib currently does not remove image data "
[Genesis] [14:50:56] [WARNING] Texture given but asset missing uv info (or failed to load).
[Genesis] [14:50:59] [INFO] Preprocessing geom idx 1.
[Genesis] [14:58:21] [INFO] Building scene <9bceb42>...
[W 01/10/25 14:58:21.698 329694] [frontend_ir.cpp:begin_frontend_struct_for_on_snode@1678] ti.loop_config(serialize=True) does not have effect on the struct for. The execution order is not guaranteed.
[W 01/10/25 14:58:22.588 329694] [frontend_ir.cpp:begin_frontend_struct_for_on_snode@1678] ti.loop_config(serialize=True) does not have effect on the struct for. The execution order is not guaranteed.
[W 01/10/25 14:58:31.421 329694] [frontend_ir.cpp:begin_frontend_struct_for_on_snode@1678] ti.loop_config(serialize=True) does not have effect on the struct for. The execution order is not guaranteed.

qZhang88 avatar Jan 10 '25 07:01 qZhang88