SteamVR

SteamVR

SteamVR Workshop
Customize your SteamVR experience by finding new backgrounds, 3D environments, controllers and base station models.
Learn More
John Yelcir 23 Jun, 2019 @ 7:17am
Trouble importing a scene from RealityCapture
I'm attempting to import a scene from RealityCapture using the directions here: https://developer.valvesoftware.com/wiki/SteamVR/Environments/Photogrammetry

When I use the import VMDL from Mesh File, I get just a red wireframe. There's only 2 items listed in the Asset Browser. A .vmdl file and a .jpg file.

I tried exporting as .obj and also as .fbx. Same thing both times.

It seems to me like the .vmdl file isn't connected to the .jpg file properly or maybe I didn't export the textures correctly. This is my first time attempting this. Any suggestions are welcome!
< >
Showing 1-6 of 6 comments
Rectus 13 23 Jun, 2019 @ 7:34am 
Sounds like the imprter failed to generate a material file. You can manually set up materials in the material editor. Save them in the same place where the importer put the .jpg with the names you gave them in the importer.
John Yelcir 23 Jun, 2019 @ 6:43pm 
I think you're right. When I open the .vmdl file in the Material Editor, it shows a Materials node, with "error" underneath it.


If I view the Material Widget though, it just pops up a blank box. How do I link the jpg in here?

Also, there's only one jpg file. I didn't give names to anything.
Rectus 13 24 Jun, 2019 @ 12:24am 
The Material Editor is a separate tool from the Model Editor: https://developer.valvesoftware.com/wiki/SteamVR/Environments/Environment_Tutorial:_Materials,_Details_and_Props

The importer dialog should have had an autofilled box for the material name. I it didn't, it should look for what the original mesh file referenced the material as. You can create a material remap from the top menu of the model editor, and it should show the name of the original material.
Last edited by Rectus; 24 Jun, 2019 @ 12:24am
John Yelcir 24 Jun, 2019 @ 8:01am 
hmm. The tutorial mentioned a dialog: https://developer.valvesoftware.com/wiki/File:Tutorial_objimport.png

And you mention an importer dialog, but it doesn't ever show for me. In the model editor, I click on "New VMDL From Mesh File". It shows a file location dialog, but no other options. Am I missing something?

I'll take a look at that tutorial also.
Rectus 13 24 Jun, 2019 @ 8:11am 
The tools behave differently depending on if the mesh file you import is in the addon directory structure or not. Mesh files under the addon directory will import as-is and not generate any materials. If you pick a mesh file from outside the addon directory it will pop up that importer dialog and let you generate materials.
John Yelcir 24 Jun, 2019 @ 8:20am 
Yep, that's exactly what it was. Thank you! It's now generating a .vmat file.

Originally posted by Rectus:
The tools behave differently depending on if the mesh file you import is in the addon directory structure or not. Mesh files under the addon directory will import as-is and not generate any materials. If you pick a mesh file from outside the addon directory it will pop up that importer dialog and let you generate materials.
< >
Showing 1-6 of 6 comments
Per page: 1530 50