Hello,
I am trying to use one of my extensions (Python) that uses Fabric Scene Delegate in a new Kit app (106.4.0), but it just won’t work. No errors or any other log level. I backed to try the Kit Base Editor 106.4.0 .kit profile, but nothing. The extension USDRT SCENEGRAPH API (usdrt.scenegraph) is enabled. I affixed the settings in .kit to “app.useFabricSceneDelegate = true”.
To test I am running the first basic example script from Authoring geometry with USDRT and rendering with Fabric Scene Delegate — USDRT 7.5.0 documentation and of course, zooming in.
import omni.usd
from usdrt import Usd, Sdf, UsdGeom, Rt, Gf, Vt
stage_id = omni.usd.get_context().get_stage_id()
stage = Usd.Stage.Attach(stage_id)
prim = stage.DefinePrim("/World/Triangle", "Mesh")
mesh = UsdGeom.Mesh(prim)
points = mesh.CreatePointsAttr()
points.Set(Vt.Vec3fArray([Gf.Vec3f(1.0, 0, 0), Gf.Vec3f(0, 1.0, 0), Gf.Vec3f(-1.0, 0, 0)]))
face_vc = mesh.CreateFaceVertexCountsAttr()
face_vc.Set(Vt.IntArray([3]))
face_vi = mesh.CreateFaceVertexIndicesAttr()
face_vi.Set(Vt.IntArray([0, 1, 2]))
rtbound = Rt.Boundable(prim)
world_ext = rtbound.CreateWorldExtentAttr()
world_ext.Set(Gf.Range3d(Gf.Vec3d(-1.0, 0, -1.0), Gf.Vec3d(1.0, 1.0, 1.0)))
It does work on Composer 2023.2.5 Beta.
Please, what am I missing here? Thanks
Also, it would be nice to have here tags for Fabric, Fabric Scene Delegate, and USDRT. It’s difficult to find certain topics on these subjects.