Here is a Cone I have made and exported to a Lightwave .obj file.
http://postimg.org/image/4opl76s7t/
I then load the object into Java3D using the following code parts
import com.sun.j3d.loaders.objectfile.ObjectFile;
public static Scene loadWavefrontScene(String location) throws IOException {
ObjectFile loader = new ObjectFile(ObjectFile.RESIZE);
return loader.load(new FileReader(location));
}
And I add the Scene object’s group to the main group using .getSceneGroup() and .addChild(group)
And then I rotate the object around the X axis.
http://postimg.org/image/fj4qjulon/
http://postimg.org/image/gdu1qpj5b/
http://postimg.org/image/l5z9oeofj/
The object seems to have had it’s origin changed. How can I load models and keep their origin in the original place?