Issues importing models
I am trying to go from Reality Capture, into Oculus Medium so I can sculpt my meshes, and then import back into Reality Capture.
I am having an issue where when I import back into Reality Capture, the mesh is misaligned. Oculus Medium doesn't allow me to export a .rcinfo file as far as I know. Is there any way to get the alignment correct?
Here are some pictures for reference. https://imgur.com/a/ymI3f
-
Hi Jesse,
there are plenty of related solutions described here.
If you name your new file exactly as the old was and put it in the same folder as the rcinfo file, it might work.
The other possibility is that your software changes something about the orientation, which happens more often than not...
-
could you link me to one if you know of one? I tried finding one for more than an hour. I found some hopeful suggestions and I tried all suggestions I found here. I also have tried playing around with both software for almost 10 hours. I must be missing something.
Thank you for your time to help me with my problem.
-
Hi Jesse,
No problem! :-)
I've summarised the quintessence: the rcinfo file and the mesh need to have the same name. It's saver to name the new mesh like the old one (rename the old one beforehand, obviously) and move it to the original location because I think there can be full paths and file names in the rcinfo file which would need changing as well (not 100% certain though).
If this does not work for you, then the problem might be caused by something else.
I just had a thought. Did you re-define the ground plane, meaning did you rotate the mesh in RC before exporting it? If yes, you might want to reset it before export and see if that helps. The reason is that RC doesn not really rotate the mesh, it just changes the way it is displayed. This might screw with the coordinates at export. I'm not sure this is it, but worth a shot...
-
I tried naming the mesh the same and placing it in the same location. Same results as before, however this time it seems the mesh is imported into reality capture in a different location (lower).
Is there a way to manually adjust the imported mesh's alignment? I tried to find a way, but could not.
I did not redefine the ground plane.
-
Hi Wyatt,
are you sure that the position is off? Because in my experience RC does not display different components at exactly the same position, also the grid is only for orientation and does not correspont to the 0-Plane. Only it seems like the grid is representing some kind of subdivision of the mesuring unit (1 - 0.1 - 0.01 etc) though not absolute, just relative...
-
I figured it out --
1) When importing the RC mesh into Medium, you have to make sure you don't change the transform or orientation
2) Clean the model in Medium
3) Remove the original RC .obj file from its folder
4) Export your Medium model as .obj with the exact same name as the original RC mesh
5) Import model into RC
Works perfectly!
-
@Wyatt Roy-
Can you go into a little more detail on the various steps?
I've tried this, and so far it's not working. The models are always offset when coming back into RC.It may have something to do with Medium's export tools (which are not good), but I'd appreciate any help.
Thanks.
-
Sure! So let's see.
1) You use RC to make a photogrammetric model of something
2) You unwrap the model in RC,
3) Texture the model in RC
4) Export the model as a .obj and save it somewhere locally -- I save it on my desktop. There should be a .obj file as well as a .mtl file and a jpg or png image file (and a .rcinfo file).
5) I close RC and boot up my Oculus
6) I open Medium
7) I import object as clay (I forget what the exact wording is in the menu). I usually make the layer fill 95% of the space
8) Medium thinks for a while
9) the model appears in the workspace
10) DON'T CHANGE THE TRANSFORM! This means don't make the model bigger or smaller or rotated. In fact, even before you put any work into editing the model at all, it might be a good idea to test to make sure you imported it correctly by exporting it (to test, skip the next step)
11) Clean up the model in Medium
12) Export model -- I usually simplify the model to under a million triangles. Save it in the same place as you saved the original RC export
13) Save the Medium file, so you can go in and tweak things later if you want
14) Close Medium
15) Go to your desktop, or wherever you saved the .onj.
16) Copy the name of the RC-exported .obj model, then move that model into a different folder.
17) Rename your Medium-exported model to the exact same name as the RC-exported model.
18) Open RC again, open the same project, and click "import model"
19) What you're essentially doing is tricking RC into using the same .rcinfo file for the new Medium model. That's why it's crucial that your cleaned up Medium model has the exact same name as the original RC model had. When you import the new model into RC, it should appear in 1D view as another model within the normal component,
20) Unwrap/Texture the new model
21) Export the model as a new .obj and you're all done!
Please sign in to leave a comment.
Comments
13 comments