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

Assets are not visible while rendering #348

Open
yiyulics opened this issue Oct 9, 2024 · 0 comments
Open

Assets are not visible while rendering #348

yiyulics opened this issue Oct 9, 2024 · 0 comments
Labels
question Further information is requested

Comments

@yiyulics
Copy link

yiyulics commented Oct 9, 2024

Hi,

I want to generate diverse scenes and render multiple images on different locations for each scene.

Scenes are generated using the following command:

python -m infinigen.datagen.manage_jobs --output_folder /mnt/infinigen/myds --num_scenes 1000 --configs simple.gin --pipeline_configs local_16GB.gin monocular.gin blender_gt.gin cuda_terrain.gin --pipeline_overrides LocalScheduleHandler.use_gpu=True -p compose_nature.animate_cameras_enabled=False fine_terrain.mesher_backend="OcMesher" --warmup_sec 60000

Scenes are generated successfully. Then, I opened the scene.blend file under the fine folder to put multiple cameras in order to render images in different places.

The problem is that only the assets (e.g., trees) around the default camera position are shown. Other trees are not visible in the rendered results, even though the tree skeletons are visible in the viewport.

I have made the following attempts to fix this, but none of them work:

  1. Setting dist_cull and vis_cull both to 1e7 as per #73 to try to populate everything while generating the scene. The result is that before I set these two values, only a few skeletons of trees are shown in the viewport. After these two values are set, all skeletons are shown. However, only those around the default camera position are rendered. Others are still not rendered even though the skeletons are shown in the viewport.

  2. Setting the hide_viewport and hide_render as per #94 to ensure that everything is visible while rendering. I set it using the following command:

def set_visibility_recursive(obj, hide=False):
        if "placeholder" in obj.name.lower():
            hide = True
        obj.hide_viewport = hide
        obj.hide_render = hide

        if len(obj.children) > 0:
            for child in obj.children:
                set_visibility_recursive(child)

for obj in bpy.data.objects:
        set_visibility_recursive(obj)

for collection in bpy.data.collections:
        set_visibility_recursive(collection)

The result is that it's not working, and the trees are still not visible in the rendered results. In the rendered results, only terrains are seen. No trees, no rivers, no meshes.

Could you please offer some help on how to render the correct result?

Thanks for your help.

@yiyulics yiyulics added the question Further information is requested label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant