Animate a OBJ or 3DS file

How to animate a OBJ or 3DS file on java ?...
[52 byte] By [tyrant4Javaa] at [2007-11-26 19:13:06]
# 1

Please specify your problem more clearly. Which of the following do you have problems with?

1. Loading an OBJ/3DS file into a model object of some kind.

2. Rendering the model object.

3. Manipulating the vertices of the model object.

4. Saving a model object as an OBJ/3DS file.

YAT_Archivista at 2007-7-9 21:12:18 > top of Java-index,Other Topics,Java Game Development...
# 2
3. Manipulating the vertices of the model objectI see sample code for load 3ds or OBJ file but not for animate or move a model.
tyrant4Javaa at 2007-7-9 21:12:19 > top of Java-index,Other Topics,Java Game Development...
# 3
Okay: what class are the objects your loader gives you?
YAT_Archivista at 2007-7-9 21:12:19 > top of Java-index,Other Topics,Java Game Development...
# 4
I am using the Java 3D API for load of the OBJ file ( with ObjectFile class )
tyrant4Javaa at 2007-7-9 21:12:19 > top of Java-index,Other Topics,Java Game Development...
# 5

Yuck. Still, if you dig deeply enough into the mess of objects it gives you, you'll find some GeometryArrays. You might want to load a simple OBJ file (e.g. two triangles) and use reflection to get a dump of the tree it produces. Animation will be done either by manipulating vertices directly or by splicing TransformGroups into the tree.

YAT_Archivista at 2007-7-9 21:12:19 > top of Java-index,Other Topics,Java Game Development...
# 6
Ok. I found this site , http://www.daltonfilho.com/, with a sample code to animate a OBJ file. However, with JOGL or another API is more easy ?... or not ?
tyrant4Javaa at 2007-7-9 21:12:19 > top of Java-index,Other Topics,Java Game Development...