google / usd_from_gltf

Apache License 2.0
550 stars 86 forks source link

Crash when a GLB's diffuse and specGloss maps have different dimensions #72

Open Aloalo opened 3 years ago

Aloalo commented 3 years ago

I'm building 64bit usd_from_gltf on Windows 10. These two draco compressed GLBs have the KHR_materials_pbrSpecularGlossiness extension, and they both fail in FloatImage::ConvertSpecDiffToMetalBase with either access violation or bad allocation. If I resize the diffuse and specGloss maps to be the same size they convert correctly.

https://www.dropbox.com/s/12hzs9diz1fua5v/Midi_dress_blue_Light%20Grey.glb?dl=0 https://www.dropbox.com/s/3za1es5bwtvfii4/Seersucker%20Tailored%20Blazer_Colorway%201.glb?dl=0