Is it possible to create a simple 3D model (for example in 3DS MAX) and then import it to Android?
Is it possible to create a simple 3D model (for example in 3DS MAX) and then import it to Android?
That's where I got to:
int vertices[] = context.getResources().getIntArray(R.array.vertices);gl.glDrawElements(GL10.GL_TRIANGLES, 212*6, GL10.GL_UNSIGNED_SHORT, mIndexBuffer); - you can find that number (212 in this case) on top of the OFF fileHere you can find my project page, which uses this solution: Github project > vsiogap3d
you may export it to ASE format. from ASE, you can convert it to your code manually or programatically. You will need vertex for vertices array and faces for indices in Android. don't forget you have to set
gl.glFrontFace(GL10.GL_CCW);
because 3ds max default is counter clockwise.
It should be possible. You can have the file as a data file with your program (and as such it will be pushed onto the emulator and packaged for installation onto an actual device). Then you can write a model loader and viewer in java using the Android and GLES libraries to display the model.
Specific resources on this are probably limited though. 3ds is a proprietry format so 3rd party loaders are in shortish supply and mostly reverse engineered. Other formats (such as blender or milkshape) are more open and you should be able to find details on writing a loader for them in java fairly easily.
Not sure about Android specifically, but generally speaking you need a script in 3DS Max that manually writes out the formatting you need from the model.
As to whether one exists for Android or not, I do not know.