Creating multiple prim and proxy prim pairs and projecting duplicates prims (possible bug)

Hello!

It seems that when I create multiple prim and proxy prim pairs, then each time I project material onto the prim, it creates duplicates of the prims, that already have been used for projecting.

Consider the following:

import omni.replicator.core as rep

with rep.new_layer("test"):
    toruses = []
    for idx in range(3):
        torus = rep.create.torus(
            position=(idx * 200, 0, 0), semantics=[("class", f"torus{idx}")], name=f"great_torus{idx}"
        )
        toruses.append(torus)

    for idx, torus in enumerate(toruses):
        cube = rep.create.cube(visible=False, semantics=[("class", f"cube{idx}")])

        with torus:
            rep.create.projection_material(cube, [("class", f"projectmat{idx}")])

Projecting onto great_torus1 is fine. Projecting onto great_torus2 duplicates great_torus1 under great_torus2. And projecting onto great_torus3 duplicates great_torus1 and great_torus2.

Perhaps I’m doing something wrong but this seems like a bug. Thanks!

I also would like to point out, that I was using Code version 2023.1.1. It seems that Isaac Sim 2023.1.1 does not have this issue

@lePoisson IsaacSim currently has a newer version of kit than Code and also uses a newer version of Replicator. I recommend using IsaacSim if possible to benefit from the updates and fixes. Glad to hear its fixed in the latest.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.