How to load and display .obj file in Android with OpenGL-ES 2

前端 未结 3 2011
无人及你
无人及你 2020-12-29 05:49

I am trying to load an .obj file into my Android application and display it using OpenGL 2.

You can find the file here: EDIT: I removed the file, yo

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-29 06:42

    Thank @Björn Kechel for very elegant implementation. I just want to add a case that may cause an undesirable result. Because a face can have more than 3 vertices, we should be able to deal with 4 vertices, likes below

提交回复
热议问题