princeton-vl / infinigen

Infinite Photorealistic Worlds using Procedural Generation
https://infinigen.org
BSD 3-Clause "New" or "Revised" License
5.16k stars 431 forks source link

how can i see the geometry_nodes in the blender, when i use generate_individual_assets to generate a asset? #201

Closed ahgdwang closed 3 months ago

ahgdwang commented 4 months ago

Describe the feature you would like to see implemented how can i see the geometry_nodes in the blender, when i use generate_individual_assets to generate a asset?

araistrick commented 3 months ago

By default the geometry nodes are "applied" (ie evaluated & finalized into a static mesh) before the object is returned to the user. If you want to see the geometry nodes for a particular asset, the way to do this at the moment is to go into the implementation of the asset in question, and for assets created with geometry nodes you can usually find a modify_mesh(... 'NODES', ... apply=True) or add_geomod(..., apply=True) which you can change to apply=False before rerunning.

If your goal is to view geonodes it may also be easier to just run commands like from infinigen.assets.trees import BushFactory then BushFactory(0).spawn_asset(0) via the blender command window, as shown in docs/ImplementingNewAssets.md

I recognize it would be useful to have a proper interface for this so I will look into adding one as part of future refactors.