Search - User list
Full Version: LOP/SOP interop: Mesh as packed geometry prototype
Root » Solaris and Karma » LOP/SOP interop: Mesh as packed geometry prototype
elovikov
Is it possible to remove parent Xform from packed geometry prototype after importing them in LOPs (using native instances method)?

I guess it's fine or even better for scene organisation to have a parent Xform but in some sense it's redundant, Mesh is already Xformable and can carry transform.

It's probably niche but I do really wish I can have Mesh as a prototype (so it's an instance, not a proxy) for clean custom import.
It's also in my opinion more aligned with what we have in SOPs with packed primitives
elovikov
I came up with this ugly workaround, but modifying it to support multiple prototypes would be not so easy.
May be there are more elegant ways to do that?
tamte
are your meshes instanced though?
I thought that root of the instance is unique, that's why you can vary the transformation
if you make Mesh prim root of your instance then suddenly you made also the topology data unique per "instance" and therefore not instanced anymore

if you look at flattened stage code you will see that each "instance" has the full mesh stored

to me it looks like for Native instancing you need that root Xform, I may be wrong though

but for Pointinstances you can likely have just Meshes as a prototype
elovikov
Thanks, Tomas!

you're right, also realised that when tried to import such scene
it's just not working and what I'm trying to do just doesn't make sense in usd

I've tried other attempts, even with manual authoring, I always have empty implicit prototypes
I was just looking at the tree view, but under the hood all instances have their own mesh data. Intuitively I think I would get a reference but it's not like that.

usd documentation also says that prototype root doesn't have attributes and metadata
again, I thought via referencing I'd get also root data and then override if I need in instances (tried to apply game engine prefab logic). However it looks like heavy prim as prototype is a bad idea.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB