KeyShot Forum

Technical discussions => General discussion => Topic started by: Higuchi on April 05, 2021, 10:51:54 PM

Title: Texture map doesn't work well on AR of iPhone via USDZ
Post by: Higuchi 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/
Title: Re: Texture map doesn't work well on AR of iPhone via USDZ
Post by: INNEO_MWo on April 06, 2021, 03:29:55 AM
Hello Ryosuke.


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


CheerEO
Marco
Title: Re: Texture map doesn't work well on AR of iPhone via USDZ
Post by: Higuchi 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.
Title: Re: Texture map doesn't work well on AR of iPhone via USDZ
Post by: INNEO_MWo 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
Title: Re: Texture map doesn't work well on AR of iPhone via USDZ
Post by: Higuchi 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.
Title: Re: Texture map doesn't work well on AR of iPhone via USDZ
Post by: INNEO_MWo on April 08, 2021, 09:55:03 PM
Can you share an example to show this issue. A KSP would help.
Title: Re: Texture map doesn't work well on AR of iPhone via USDZ
Post by: Higuchi 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.
Title: Re: Texture map doesn't work well on AR of iPhone via USDZ
Post by: Higuchi 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!
Title: Re: Texture map doesn't work well on AR of iPhone via USDZ
Post by: INNEO_MWo on April 12, 2021, 09:59:57 PM
Thank you Ryosuke for sharing the solution. That should help other users.