You can do this also with 3D Object Converter
http://web.t-online.hu/karpo/
This tool can convert a 3ds object to text \ xml format or c code.
Open gl 'c' output example:
glDisable(GL_TEXTURE_2D); glEnable(GL_LIGHTING); glEnable(GL_NORMALIZE); GLfloat Material_1[] = { 0.498039f, 0.498039f, 0.498039f, 1.000000f }; glBegin(GL_TRIANGLES); glMaterialfv(GL_FRONT,GL_DIFFUSE,Material_1 glNormal3d(0.452267,0.000000,0.891883); glVertex3d(5.108326,1.737655,2.650969); glVertex3d(9.124107,-0.002484,0.614596); glVertex3d(9.124107,4.039649,0.614596); glEnd();
or 'c' output
Point3 Object1_vertex[] = { {5.108326,1.737655,2.650969}, {9.124107,-0.002484,0.614596}, {9.124107,4.039649,0.614596}}; long Object1_face[] = { 3,0,1,2, 3,3,4,5 3,6,3,5};
Then you can simply replace parts of this code with java code.
Ps This tool is not free, and you can only use it for a 30-day trial period. But the 'c' code and xml converters are available for this period.