MaterialLoader for OgreXML

Hello,



I was just playing around with the ogre loaders contained in com.jmex.model.ogrexml.

I want to keep up with the latest svn but create my own game using this feature.

Problem:



Please change these attributes of MaterialLoader:



private StreamTokenizer reader -> protected StreamTokenizer reader

private Map<String, Material> materialMap -> protected Map<String, Material> materialMap

private boolean skip -> protected boolean skip



Or add this method:



protected void add(InputStream in) throws IOException…



similar to:



public void load(InputStream in) throws IOException…





I want to add some materials to those read before.

This should not be such a problem - my local code contains this already.



And:

Sorry, I did not know who is the one maintaining the ogre loader.

Well Momoko_Fan first developed it for jME2. He is mainly working on the jME3 implementation now however, and I don’t know how good a job we’re doing porting features back and forth between the two.



In any case, you should probably have a look at this thread&post and see this new project by PaulSyntax:

http://code.google.com/p/ogrejmeloader/



If you could contact him so that the two of you might work together on that code that’d be great. I’ll see about giving you both commit access as soon as I see the project is being updated again.

erlend_sh said:

Well Momoko_Fan first developed it for jME2. He is mainly working on the jME3 implementation now however, and I don't know how good a job we're doing porting features back and forth between the two.

In any case, you should probably have a look at this thread&post and see this new project by PaulSyntax:
http://code.google.com/p/ogrejmeloader/

If you could contact him so that the two of you might work together on that code that'd be great. I'll see about giving you both commit access as soon as I see the project is being updated again.

Huh? Momokos OgreXML importer is the best model importer available for jme2 and many people started extending it, why did Paul start a new one and why do you say that momokos is dormant?

Woops, bad phrasing! All I really meant to say is that I'm unsure whether or not the work for the OgreXML importer is kept on a parallel between jME2 & 3.



I think Paul started that project so that he'd have a place to develop his own branch before merging it with the jme trunk.

I don't know but last time I checked that branch is was completely different with my OgreXML loader. For the most part, improvements in the OgreXML importer in jme2 do not carry back to jme3 since they have different designs, in both the animation system and the importer itself.

erlend_sh said:

I think Paul started that project so that he'd have a place to develop his own branch before merging it with the jme trunk.

That would have been a chance to use branches properly ;)