Omniverse Create .mdl Material Application Using C++ Sometimes Fails

Matthew, I’m not satisfied that you’re still having issues, so I took some time to mess around with the helloWorld.cpp sample. I can’t reproduce what you’re seeing, but I’ll paste my code here and maybe you can make some sense of it. I made these changes:

  • Added a domelight function that allows you to specify the texture
  • Added a new createMaterialV2() function that allows you to specify a path to the material (like you did)
  • Added a createBoxReference() function so that you can reference the first box that you create rather than generating new geometry. This is also slightly related to a referencing and instancing question on the forums.

Note that it’s required that your O:/ drive is mapped to a Nucleus server that has the /NVIDIA folder mounted.

I hope to feed some of these changes back into the Connect Sample after I clean it up a bit.

helloWorld.cpp (33.8 KB)

1 Like