google / usd_from_gltf

Apache License 2.0
547 stars 85 forks source link

Texture filter mode unsupported on iOS viewer #70

Open brothermechanic opened 3 years ago

brothermechanic commented 3 years ago

Hello I try to learning conversion process and get this message Warning: Texture filter mode [min=NEAREST, mag=NEAREST] unsupported on iOS viewer. Sampler(s): sampler0 [UFG_WARN_TEXTURE_FILTER_UNSUPPORTED] Why? And how to solve it It happends with all my textures

$ /home/bm/bin/usd_from_gltf/build/bin/usd_from_gltf 2/ar-test_v2.glb ar-test_v2.usdz
Warning: Texture filter mode [min=NEAREST_MIPMAP_LINEAR, mag=LINEAR] unsupported on iOS viewer. Sampler(s): sampler0 [UFG_WARN_TEXTURE_FILTER_UNSUPPORTED]

and with sample models by this command $ python "/home/bm/bin/usd_from_gltf/tools/ufgbatch/ufgtest.py" samp_gltf.csv samp_glb.csv samp_embed.csv samp_draco.csv samp_specgloss.csv ref.csv -i "/home/bm/bin/usd_from_gltf/build/src/testdata" -o "/home/bm/bin/usd_from_gltf/build/build/testdata" --exe "/home/bm/bin/usd_from_gltf/build/bin/usd_from_gltf" --nodiff --nodeploy

sunshinewithmoonlight commented 3 years ago

I also encountered this warning . In addition, ar mode crashed when I opened this formatted model on my iPad, but non-ar mode can preview the model.

v-prgmr commented 3 years ago

I get the same warning too. But my models work in both AR mode and within embedded viewer on iOS. My problem is that the file size gets increased by 3x after conversion from .glb to .usdz. Anybody knows the reason?