Cant find substitute for scene.batch

Hi,



I'm using a TriangleBatch from JME 1.0 (import com.jme.scene.batch.TriangleBatch;) and would like to convert it to 2.0.

In the wiki it states:



Removed classes

com.jme.scene.batch.GeomBatch com.jme.scene.SceneElement



but com.jme.scene.SceneElement doesn't exist!



What am i doing wrong?



Thanks :stuck_out_tongue:

I guess its meant like "both classes were removed".



and Batches have not been replaced, they're just gone  :wink:

ha, ok! thanks :stuck_out_tongue:



so, how do i replace my trianglebatch? is there an alternative?

paste the statement that produces the compiler-error.

import com.jme.scene.batch.TriangleBatch;



TriangleBatch batch = getBatch(0);

Might be helpful to post actually what is going on there, those obviously will cause problems; but in order to give you advice on what to change a little more info would help :wink:

The Geometry object is now the batch. Before that Geometry was a collection of Batches. So your code would be like Geometry batch = this;

Thanks, that was it :stuck_out_tongue:

Momoko_Fan said:

The Geometry object is now the batch. Before that Geometry was a collection of Batches. So your code would be like Geometry batch = this;


Now there's a professional (mind reader)  ;)