JmeBinaryReader and bounds

Hi all,

Cep, would it be possible to add a way in which I can change the boundingVolumes during loading time?



Currently, it uses BoundingSpheres, but BoundingBoxes fit my models better, i was thinking perhaps?


JmeBinaryReader jbl = new JmeBinaryReader();
jbl.setChildBoundType(JmeBinaryReader.BoxBounds);

[code]

or something similar

DP[code]

JmeBinaryReader jbl = new JmeBinaryReader();

jbl.setChildBoundType(JmeBinaryReader.BoxBounds);

or something similar

DP[code]



or something similar



DP

This would help me to.

I agree. When I get home, I’ll add it in and post here how to use it.

Another way you could let the user chose bounds is making a parameter in the xml file( witch would not be as good for me). You could do both by letting the File override the parameter.

JmeBinaryReader jbr=new JmeBinaryReader();



jbr.setProperty(“bound”,“box”); // (or “bound”,“sphere”), but default is sphere



jbr.loadBinaryFormat(file);



In and commited. When jME’s BoundingVolume design becomes more complex with lots of various BoundingVolume types, I’ll make a special tag for BoundingVolume things.