Author Topic: Texture map doesn't work well on AR of iPhone via USDZ  (Read 150 times)

0 Members and 1 Guest are viewing this topic.

Offline Ryosuke

Texture map doesn't work well on AR of iPhone via USDZ
« on: April 05, 2021, 10:51:54 pm »
I've been struggling about the error of texture mapping on AR of iPhone via USDZ. According to my tests, any mapping data doesn't work well. Does any one can make it? It doesn't seem to be related just to Texture but Label as well.

I know USDZ can contain texture data, as you can see it below supported by Apple. You can easily play AR on you iPhone!
https://developer.apple.com/jp/augmented-reality/quick-look/

Offline INNEO_MWo

  • Hero Member
  • *****
  • Posts: 1159
  • Total likes: 46
  • Senior Technical Consultant @ INNEO (Germany)
    • german KeyShot page from INNEO Solutions
Re: Texture map doesn't work well on AR of iPhone via USDZ
« Reply #1 on: April 06, 2021, 03:29:55 am »
Hello Ryosuke.


What is the problem with texture mapping in your USDz file?


CheerEO
Marco

Offline Ryosuke

Re: Texture map doesn't work well on AR of iPhone via USDZ
« Reply #2 on: April 07, 2021, 10:26:31 pm »
Thank you for the reply.

Yes, my .usdz cannot express texture mapping data on AR. For example, wood, marble stone, logo, bump, and so on. Every model which I added texture mapping looked black out on AR, although it can properly work on Keyshot real time view.

But, after that, I tested same material for simple geometric model like a cube. Then, it could work well on AR, namely I could see wood material on it. Based on this test, that error does not seem to always occur. I cannot figure out the factor of this problem so far.

Offline INNEO_MWo

  • Hero Member
  • *****
  • Posts: 1159
  • Total likes: 46
  • Senior Technical Consultant @ INNEO (Germany)
    • german KeyShot page from INNEO Solutions
Re: Texture map doesn't work well on AR of iPhone via USDZ
« Reply #3 on: April 08, 2021, 10:06:20 am »
Hello Ryosuke.


Reduce your product scene (that one, that doesn't work) to one specific part (one of them, that looks black). Then check the normals of this part. Flip them if you see any red polygons in the flip normals window.
Now bake a USDZ file and check it with your phone.
If this works - then check and correct the normals for every part.


And sadly, there is no real good working way to correct all normals with one magic click. Scripting doesn't work currently. Export the scene as OBJ or FBX and re-import with normal calculation also does not 100% job (it might help with a handful / few parts not correcting manually) and you have to re-map paste all the materials and textures.


Hope that helps


CheerEO
Marco

Offline Ryosuke

Re: Texture map doesn't work well on AR of iPhone via USDZ
« Reply #4 on: April 08, 2021, 06:03:36 pm »
Thank you for the advice, but I know this issue and I've make them correct.
https://manual.keyshot.com/manual/tools-3/flip-normals/

I think this normal direction is not related to my original problem, because I've gotten proper consequence with just simple diffuse color material. But, when I changed the material to the another one including bitmap data for texture mapping, the model became black out which is a bit different from the black out caused by normal direction issue.

Offline INNEO_MWo

  • Hero Member
  • *****
  • Posts: 1159
  • Total likes: 46
  • Senior Technical Consultant @ INNEO (Germany)
    • german KeyShot page from INNEO Solutions
Re: Texture map doesn't work well on AR of iPhone via USDZ
« Reply #5 on: April 08, 2021, 09:55:03 pm »
Can you share an example to show this issue. A KSP would help.

Offline Ryosuke

Re: Texture map doesn't work well on AR of iPhone via USDZ
« Reply #6 on: April 08, 2021, 10:18:44 pm »
Sorry, it's difficult to open my data to the public...

Possibly, It might occur with only this given IGES data, but it seems to take a long time to find out radical factor of this issue.

Offline Ryosuke

Re: Texture map doesn't work well on AR of iPhone via USDZ
« Reply #7 on: April 12, 2021, 06:34:38 pm »
Hi there,

I finally achieved satisfied consequence. As far as I guess, the factor of that failure was caused file name which contains Japanese languages. In general, sometimes it happens caused by same factor when we Japanese people use Windows or MacOS. After changing the file name, the error didn't happen so far.

Hope it would be your reference!

Offline INNEO_MWo

  • Hero Member
  • *****
  • Posts: 1159
  • Total likes: 46
  • Senior Technical Consultant @ INNEO (Germany)
    • german KeyShot page from INNEO Solutions
Re: Texture map doesn't work well on AR of iPhone via USDZ
« Reply #8 on: April 12, 2021, 09:59:57 pm »
Thank you Ryosuke for sharing the solution. That should help other users.