Android – use arcore with obj and MTL files

When using the Android arcore example, I noticed that the example uses the following line:

mVirtualObject.createOnGlThread(this, "andy.obj", "andy.png"); 

Andy.png is the PNG file texture to "stretch" on the andy.obj 3D object

I want to replace the model and PNG file with the project in Google poly

But when downloading obj files from poly, I was getting obj MTL files

I think MLT is a texture file like PNG, but I can't use it

Can I convert it to a PNG file? Or use MTL files in arcore?

resolvent:

. * MTL is a material file referenced from obj, which is used to define texture and lightning configuration. The obj loading library used in arcore example is very basic, so you must find a better one or implement obj file loading yourself. Another option is to use Android 3D library, which has provided model loading and hidden low-level OpenGL content. For examples of these high-level libraries, see also https://stackoverflow.com/a/48456836/385536.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>