how connect 3Dmax with java?

i want to make 3d maze by reading from text file
for example when i read 0, then i draw wall
when i read 1 i draw path …and so on
and i want to move the object in the maze by using AI techniques

my questions are:

  • can I read from file and draw by using 3D Max and program the
    object moving using java, if yes, how can i connect the java and 3D Max … and how can i move the object??

if there are any resoures, or any other silution may help me
please tell me about it

You bascially export the model from max into a 3d file format, and load it into java using an appropriate model loader and then dispaly it.

If you want to use text, your best bet is to use the OBJ Format, you’ll need an OBJ loader, once you make your maze in 3ds max just export it as an obj file, and then load it into java using your OBJ Loader.

btw what do you want to load it into ? something like OpenGL using LWJGL/JOGL or something like Java2d?

could use a sceneograph like JME http://www.jmonkeyengine.com , which uses OpenGL and has built in support for the OBJ format, so you wont have to write an OBJ loader, it also supports other formats that 3ds max can export to such as COLLADA, 3DS and ASE.

a good tutorial to get you stared would be the asteroids one over at http://www.cokeandcode.com/asteroidstutorial