Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load glb format sence #529

Open
qZhang88 opened this issue Jan 10, 2025 · 2 comments
Open

Unable to load glb format sence #529

qZhang88 opened this issue Jan 10, 2025 · 2 comments

Comments

@qZhang88
Copy link

qZhang88 commented Jan 10, 2025

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 qZhang88 changed the title Unable to load glb glb format sence Unable to load glb format sence Jan 10, 2025
@wangyian-me
Copy link
Collaborator

Would you please provide a link to the glb file?

@qZhang88
Copy link
Author

glb could download following instruction in https://github.com/facebookresearch/habitat-sim

python -m habitat_sim.utils.datasets_download --uids habitat_test_scenes --data-path /path/to/data/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants