the3deer / android-3D-model-viewer

Android OpenGL 2.0 application to view 3D models. Published on Play Store
https://play.google.com/store/apps/details?id=org.andresoviedo.dddmodel2
MIT License
1.42k stars 376 forks source link

lighting effects #230

Open zhangwenxiang opened 1 year ago

zhangwenxiang commented 1 year ago

Hello, how to light can make the object more three-dimensional. Now only the ambient light and a spotlight。

andresoviedo commented 1 year ago

Hello @zhangwenxiang If you mean perspective, that can be adjusted in ModelRenderer frustrum params. If you mean realism, the app currently supports only Phong lighting model. I have developed shadow mapping in 1 branch Besides that, any advice is welcome. Regards

zhangwenxiang commented 1 year ago

Hi, what I want is to diffuse the light, which can make the object more three-dimensional. But it was not found in the project. Is there any idea before modifying my target.