Android 3D object with physics

I was an Android programmer for a while, but I never touched 3D graphics (OpenGL 2 ES).

To keep this question simple, this corresponds to what I need to do ...

A piece of textured material waving in the wind that I want to draw in GLSurfaceView. I want to be able to control wind speed, but what would be really nice is to move the material with the help of a touch. Thus, some kind of physical engine will be involved.

This question is for experienced developers of 3D graphics for Android. How would you do it and what tools do I need?

+4
source share
1 answer

Sounds like a 3D simulation. From the wiki page:

Tissue modeling is one of the most difficult aspects of CG, as it is a deceptively simple real-world item that is taken for granted and actually has very complex internal and environmental interactions. After several years of development, Blender has a very durable fabric simulator that is used to make clothes, flags, banners, etc. the fabric interacts with other moving objects and acts on them, the wind and other forces, as well as the general aerodynamic model, all of which are under your control.

See: http://wiki.blender.org/index.php/Doc:2.4/Manual/Physics/Cloth

Google Code has an Android project that implements a flag waving in the wind:

http://code.google.com/p/waving-flag-android/

Hope this helps you.

0
source

Source: https://habr.com/ru/post/1443469/


All Articles