Importing a 3d model and displaying it in a swing component

1.4k views Asked by At

I want to import a 3d model (preferably a wavefront obj file) and then be able to display that model in a swing component. From there I want to be able to move (translate) the model based on live input data.

Any suggestions on how this could be done?

1

There are 1 answers

1
Will Hardwick-Smith On BEST ANSWER

I managed to load a local obj file with the j3d library using a slightly modified version of the code found here:

https://java.net/projects/j3d-examples/sources/svn/content/branches/dev-1_4/src/ObjLoad/ObjLoad.java?rev=192