Rajawali / Rajawali

Android OpenGL ES 2.0/3.0 Engine
https://rajawali.github.io/Rajawali/
Other
2.32k stars 700 forks source link

load obj file fail,NumberFormatException: For input string: "nan" #2502

Open JonaNorman opened 1 year ago

JonaNorman commented 1 year ago

Rajawali Version or Branch

develop

Device and Android Version

12

Summary

Our designer uses Cinema 4D to export the obj file, but using rajawali will prompt nan parsing exception, but using three js can load normal

Trace or Log Output

org.rajawali3d.loader.ParsingException: java.lang.NumberFormatException: For input string: "nan" 2023-03-24 17:56:09.835 30912-31033 System.err org.rajawali3d.examples W at org.rajawali3d.loader.LoaderOBJ.parse(LoaderOBJ.java:300) 2023-03-24 17:56:09.835 30912-31033 System.err org.rajawali3d.examples W at org.rajawali3d.loader.LoaderOBJ.parse(LoaderOBJ.java:117) 2023-03-24 17:56:09.835 30912-31033 System.err org.rajawali3d.examples W at org.rajawali3d.examples.examples.loaders.LoadModelFragment$LoadModelRenderer.initScene(LoadModelFragment.java:45) 2023-03-24 17:56:09.835 30912-31033 System.err org.rajawali3d.examples W at org.rajawali3d.renderer.Renderer.onRenderSurfaceSizeChanged(Renderer.java:353) 2023-03-24 17:56:09.835 30912-31033 System.err org.rajawali3d.examples W at org.rajawali3d.view.TextureView$GLThread.guardedRun(TextureView.kt:1228) 2023-03-24 17:56:09.835 30912-31033 System.err org.rajawali3d.examples W at org.rajawali3d.view.TextureView$GLThread.run(TextureView.kt:947)