Problems porting from older jME to 1.0

Hello,

I was trying to port my old jME project to the recent 1.0 version

(more about this project will be uploaded to the user showcase in the near future)



I am using some classes that don't seem to exist in the new version

In particular, these imports can't be resolved:


import com.jme.scene.CompositeMesh.IndexRange;
import com.jme.scene.CompositeMesh;
import com.jme.util.LoggingSystem;



Maybe someone has a quick solution to this problem

The logging was replaced by java.util.logging… The Composite Mesh is replaced by TriMesh objects having several GeomBatches.

ok, thank you.



CompositeMesh:

I think I will be able to deal with the TriMesh class



LoggingSystem:

Now I will have to find out, how to replace statements like this:


LoggingSystem.getLogger().info("***** numEdges: "+numEdges);

its simply Logger.getLogger("");  or Logger.getLogger(getClass.getName());

ok, thank you very much …

hmmm, I could not get it running with the newer version.



maybe I will post the source code of the original in the near future.



however, in the user showcase, there is a link to the program now …

What was the problem in porting? Anything specific?

a common way is putting this type of declaration at the top of your classfiles:



private static final Logger logger = Logger.getLogger(MyClass.class.getName());



and then using that logger throughout the class…

The logger is fine (don’t have problems with it)



the main problem was:

I converted the CompositeMesh and IndexRange objects to TriMesh and TriangleBatch objects

Then I started the main() again but I could not see any geometry displayed!

-

I also have a question here: Can a Floatbuffer be shared by many TriangleBatches?

In the old implementation there was one giant vertex buffer that could be shared by many small triangle strips…



My next attempt will be to begin with simpler (planar) geometry and train myself using the new geometry classes.

I hope that a new step by step beginning and tests would help.

Problem is only that I don’t have enough time for this project…



If you are interested in this program: There is a link to the sources in the user showcase now (http://www.jmonkeyengine.com/jmeforum/index.php?topic=7292.0)

From what I know, the buffers can be shared, although it is discouraged.



I'll have a look at your code to see if I can figure out what is wrong.