Forum

Author Topic: Texture import / export problems.  (Read 11006 times)

nkontgas

  • Newbie
  • *
  • Posts: 3
    • View Profile
Texture import / export problems.
« on: September 24, 2016, 03:20:15 AM »
Hello All,

I am somewhat new to photogrammetry with Photoscan. The version that I am using us 1.2.5 pro.

I align my photos, build the sparse cloud, dense cloud, mesh, and textures. They come out beautiful. I edit the dense cloud to get rid of unnecessary points, and I use the gradual selection tool to get rid of uncertain or difficult to reproject points.

The final model and textures are lovely. When I try to export them (I have tried exporting as FBX and as Waveform OBJ).

The problem is when I go to export the model and texture, the mesh comes out fine, and the texture seems to export, but when I try to open these things in Unity 5.4, the only texture that appears is the "shaded" model texture (like if you click the 'shaded' icon, between the 'solid' icon, and the 'dense cloud classes' icon).

The 'shaded' model is not very good looking, and is downright ugly when compared to the 'textured' outcome within Photoscan.

I have tried importing (fbx and obj) to Maya 2016 and "embedding" the textures using the Maya FBX plugin. I have tried importing to MeshLab and re-exporting to Unity.

I am not sure what else to try. I am not an experienced 3d modeller, so there may be steps to getting the textures to show up correctly that I am not aware of.

When I load my model in MeshLab, and in Maya, the textures DO show up correctly. I want to just point this out. However when I export to Unity (as either OBJ, or FBX), it is back to only having the 'shaded' version of the texture.

Any assistance or advice would be greatly appreciated.

Thank you so much and kindest regards,

Nick


nkontgas

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Texture import / export problems.
« Reply #1 on: September 24, 2016, 07:42:37 AM »
Hello All,

I am replying to my own post to add further information. I hope this is helpful.

I am having a problem getting textures to import into Unity 5.4 from Agisoft Photoscan. Please read the detailed description below. Any assistance that may be offered will be greatly appreciated.

I am not an experienced 3d modeller, although I have some experience with the software listed, and can at least navigate the menus.

Photoscan is where my most experience lies, followed by Unity 5.x.

I am just picking up Maya and MeshLab, and I have downloaded blender (as I have seen it recommended often as a good solution when working with Photoscan).


**Tools Used:**

 - Unity 5.4
 - Agisoft Photoscan 2.5
 - MeshLab (latest release as of date of this posting)
 - Maya 2016


**The problem I am having:**

 - I am using Agisoft Photoscan 2.5 to build very high quality meshes and textures for export to Unity 5.4. Agisoft Photoscan generates the mesh, vertex colors, and high res textures. The mesh, and vertex colors are viewable in Unity 5.4, however the high res textures are not viewable.

 - In MeshLab, the mesh, vertex colors, and high resolution texture are all visible.

 - In Maya 2016, the mesh, vertex colors, and high resolution texture are all visible.

 - I have done a lot of online searching, but the things I have been able to find don't really address the problem I'm having directly.


**Things I have tried:**

 - I have exported from Photoscan as FBX with both JPEG and PNG texture formats. I have tried importing these directly into Unity 5.4 (vertex colors and mesh visible, cannot apply the high resolution textures)

 - I have exported from Photoscan as OBJ with mtl files. Same result

 - I have imported to Maya 2016, applied the texture files to the model, and exported with the "embed media" option selected in the FBX export plugin. Import into Unity 5.4, but still the same result.

 - I have imported to MeshLab as an OBJ, (sometimes MeshLab recognizes the MTL files, sometimes not). I have then re-exported and attempted to use in Unity 5.4 (same result).

 - In Unity, I have tried manually overriding the default texture resolution of 2k, setting them to match the texture resolution that I used from photoscan (2k resolution x4, 8k resolution x1, 4k resolution x2, 8k resolution x4).

**Conclusion:**

 - Photoscan seems to be exporting the textures correctly, as I am able to load them up in both  MeshLab and Maya 2016 without a problem.

 - Somewhere along this workflow pipeline I am missing something. My lack of experience with 3d modelling and texturing for import into Unity leaves me baffled and frustrated, and unable to find the solution myself.

Thank you so much for reading, and I am looking forward to solving this problem.

Nick
« Last Edit: September 25, 2016, 10:17:39 AM by nkontgas »

phillyphanatic

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Texture import / export problems.
« Reply #2 on: February 05, 2017, 04:56:09 AM »
Nick,

I'm having similar issues. I want to get the Photoscan model into the Hololens (.fbx only). Apparently, the textures need to be baked into the fbx model. I've tried using Blender to do this but the best I can achieve is the shaded texture colors as you mentioned (not the high-res texture).

I've tried quite a few options (like importing/exporting from Meshlab, then into Blender, etc) but still no luck!

-Ricky