Reputation: 2520
My Artist created a 3d shoe model as FBX in 3d studio Max . which looks as the following image.
i use jMonkeyEngine in my Program, and it does not support FBX file so i export FBX to wavefront OBJ file , the 3d studio max also gives me the corresponding mtl file as well.
so when i load the exported obj model into my program which uses jMonkeyEngine as a library,it does not look as real shoe , not it has any texture on it.
the program also shows one warning
WARNING: OBJ mesh style_7-geom-0 doesnt contain normals! It might not display correctly
my simpleInitApp method
Spatial myModel = assetManager.loadModel("/Textures/Shoes/style_7.obj");
myModel.scale(0.09f);
rootNode.attachChild(myModel);
both the OBJ file and the material file are in the same directory. so i think as per the doc jMonkeyEngine directly load the material from the same directory where the OBJ resides.
if you want i can upload here OBJ file and the material file plus all of the needed images here.
My absolute goal is to display the same Model in JmonkeyEngine as shown in screenshot1.
what i am missing ? what did i do wrong ?
OBJ Model Material File Resources
Thanks
Upvotes: 4
Views: 2593
Reputation: 3807
The reason why your 3D model isn't looking so 3D is because the model was not exported with normals. Normals are what allow the 3D engine to do the shading (which is what makes it actually look 3D). Without normals, the engine cannot calculate the angles needed to do the shading, you can calculate them at runtime by doing the math dynamically or by just exporting the model with normals (preferred).
Upvotes: 5