![]() ![]() register ( hide_bear ) # Setup randomization with rep. ![]() prims ( path_pattern = '/Root/Geometry/Bear' ) with bear : rep. light ( rotation = ( 315, 0, 0 ), intensity = 3000, light_type = "distant" ) render_product = rep. new_layer (): # Add Default Light distance_light = rep. This will lead to a new viewport when the script is run showing the captured perspective. Notice that in this scene we are using a different camera than the one the viewport defaults to. ![]() Without adding the new layer to the USD file, the changes made via the script will alter the scene permanently. We do this such that all of the randomization and changes to the scene are self contained within the new layer. In this script, we import omni.replicator and start a new USD layer. To run the following script follow set up instructions in Setting up the Script Editor. For faster rendering you can switch the rendering mode to realtime. Once a local nucleus server is set up the Attic scene can be found in the folder omniverse://localhost/NVIDIA/Samples/OldAttic/Attic_d through the content browser. To set up a local nucleus server, follow instructions in Setting up nucleus server. In this example, you will be using the Attic scene provided by NVIDIA via a local Nucleus server. For both of them make sure you have followed Setting up nucleus server and for the Isaac Sim example that you have downloaded the Isaac folder. One with the generic NVIDIA assets and the other leveraging the warehouse of Isaac Sim, the Omniverse robotics simulation application. Through this example we will show you how to use two scenes. Here, we will show you how you can randomize what is visible on the scene, but you should be able to use any of the randomizers following this structure. Through this tutorial you will learn how to use a previously developed scene with Replicator. Using the Replicator with a fully developed scene Learning Objectives
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |