0

I'd like to run a Maya OBJ file (i don't think it matters if it's from maya or not) inside java. I already built a 3D-model inside Maya and i exported it as an OBJ file (.obj). i'm interested in building applications for Andriod and i'm working with eclipse, i'm really new at these things but i would very much appreciated it if you know any tutorials/sites that would help me learn more about such issues like loading an OBJ file into java and running it inside an application.

it would be also amazing if anyone could provide me with a code on how i can load and run such a thing in Java.

Hadi Abu
  • 1,359
  • 1
  • 10
  • 14
  • 1
    Also http://stackoverflow.com/questions/7233987/java-loading-obj-files – om-nom-nom May 23 '13 at 17:52
  • @om-nom-nom I disagree - the first question you referenced is specifically targeted towards JOGL, the second is only interested in textual data from the file. – Michael Berry May 23 '13 at 17:54
  • @berry120 well, I've missed that op wants to work with android. Anyways, there is already an question for it too http://stackoverflow.com/questions/3162667/android-opengl-obj-file-loader – om-nom-nom May 23 '13 at 17:57

2 Answers2

1

When you want to parse a file format, like OBJ, all you need to do is read the spec and write a function that parses it. This is much simpler for text based formats like .OBJ.

You can read the .OBJ spec here.

An implementation of an .OBJ loader in Java can be found here.

wardd
  • 592
  • 3
  • 8
0

I believe JMonkey can load this format, has good scenegraph support, and has relatively new (but developing) Android integration.

Michael Berry
  • 70,193
  • 21
  • 157
  • 216