Model loading problem

Hi! This is the first time I’ve used the model loader. I’m trying to load a model from 3ds format but it seems to be scewed in some odd way. Have a look

Does this have anything to do with how the model has been exported? If you want to try loading the model your self it’s located on

If I try to load simpler models consisting of two boxes it seems to work fine.

If anyone wants the textures to do a full test I'll upload them on request.

Is anyone looking at the problem? Sorry for being a pain in the arse but we have deadline on the project soon and I would hate to be stuck with rendering boxes  :frowning: I understand that you guys have things to do of way higher priority so I'm just trying to get a grasp of wether I can hope for a solution or not.

A really quick solution might be trying another model format. MS3D worked best for me.

My guess would be that you use non-uniform scales - which are not supported in jME - do you?

If yes convert them to uniform scale (by modifying the actual vertex coordinates instead).

I'm as green in 3DSMAX as you can be so I really don't know if I'm using uniform or non-uniform scales. How do I check for that?

By the way, thanks for the quick answer  :slight_smile:

Cool. I seem to have trouble finding the NWN toolkit. Do you have a link?

I just figured out that as long as I avoid rotating and scaling while making a model in 3DSMAX then it is loaded perfectly. Does anyone know how to get around this from inside 3DSMAX? The models obviously get a bit primitive when rotation and scaling isn't used.  :smiley:

If you model them yourself just use XForms instead of scaling. Rotation should be fine.

:x when try load ASE model got this error:

java.lang.ArrayIndexOutOfBoundsException: 0

at com.jmex.model.XMLparser.Converters.AseToJme$ASEModelCopy.convertToTriMesh(Unknown Source)

at com.jmex.model.XMLparser.Converters.AseToJme$ASEModelCopy.load(Unknown Source)

at com.jmex.model.XMLparser.Converters.AseToJme$ASEModelCopy.<init>(Unknown Source)

at com.jmex.model.XMLparser.Converters.AseToJme.convert(Unknown Source)

at jmetest.renderer.loader.TestASEJmeWrite.simpleInitGame(Unknown Source)

PS When load THIS model in Xith3D all look ok

model and texture can send if you emailed me:

Try using the Collada exporter from since Collada support is now in jME.  Hopefully that will solve your problems.


do you think its good way for resolving this problem?

may be good way it's look at source Xith3D and get parser from it :slight_smile:

any way i'm converting ase model to 3ds file and got some trouble.

Other 3d drive (jptc) not supported ASe models but load this 3ds file with ANY problem?

I've encountered a lot of problems myself dealing with various model formats in jME.  However, the COLLADA support promises to be much better, has more capabilities, and is currently being maintained (particularly since it was just added yesterday).  I'm trying to make the switch over to it right now myself.

It seems pretty easy so far:

ColladaImporter.load(modelURL.openStream(), texturesURL, "Model Name");
Node model = ColladaImporter.getModel();

The ColladaImporter is Java class?

if true can you place here link on ColladaImporter package? i'm don't  can find it

on they site i'm see some source on C++ and tools for 3d max

Like darkfrog said, COLLADA support is very new… (just a few hours old). You'll need to use the latest CVS version of jME.

great :slight_smile:

And…last questions :))))))

if i'm import model and store it's to jme model

it's being supported old version of JME?

i'm use MonkeyWorld3D, and  they use old (and some times own)  JME classes

*in future i'm planing do refactoring and remove all old code

I checked in ModelLoader earlier this morning that should allow you to load and see a COLLADA model.

If you don't mind I'll hijack the thread back to the original subject  :smiley:

It seems that the problem was (as described above) that non-uniform scales are loaded incorrectly. After making the model from scratch with no non-uniform scales the model seems to be loaded perfectly. Thanks for the help

and :slight_smile: some another error (3ds model with material)

Exception in thread "main" java.lang.NullPointerException

at com.jmex.model.XMLparser.Converters.TDSChunkingFiles.MaterialBlock.initializeVariables(Unknown Source)

at com.jmex.model.XMLparser.Converters.TDSChunkingFiles.MaterialBlock.<init>(Unknown Source)

at com.jmex.model.XMLparser.Converters.TDSChunkingFiles.EditableObjectChunk.processChildChunk(Unknown Source)

at com.jmex.model.XMLparser.Converters.TDSChunkingFiles.ChunkerClass.chunk(Unknown Source)

at com.jmex.model.XMLparser.Converters.TDSChunkingFiles.EditableObjectChunk.<init>(Unknown Source)

at com.jmex.model.XMLparser.Converters.TDSChunkingFiles.TDSFile.processChildChunk(Unknown Source)

at com.jmex.model.XMLparser.Converters.TDSChunkingFiles.ChunkerClass.chunk(Unknown Source)

at com.jmex.model.XMLparser.Converters.TDSChunkingFiles.TDSFile.<init>(Unknown Source)

at com.jmex.model.XMLparser.Converters.MaxToJme.convert(Unknown Source)

at Main.main(


trying load models: 10 (ase, md2, 3ds, obj)

model loaded: 1 (md2)

Some error spoted: 9

maybe you should remove in you engine this features in main page? :)))))))))))