java.lang.IllegalArgumentException: Number of remaining buffer elements is 0, mu

I get this error when I zoom out all the way. It happened right after I added LOD control to my objects.

java.lang.IllegalArgumentException: Number of remaining buffer elements is 0, must be at least 1. Because at most 1 elements can be returned, a buffer with at least 1 elements is required, regardless of actual returned element count

I used the following to set the LOD on my objects:

(ran from cmd): OgreXMLConverter -l 10 -p 30000 as I have my unit of measure in mm and I wanted the last LOD to be loaded on > 30 meters.

Am I doing anything wrong? or more like what am I doing wrong :wink:

Why don’t you try the built-in command line converter options? They should be correct :slight_smile:

it doesn’t work for me… I wish it did… any idea why am I getting that error when zooming out a lot though?

What about posting the complete stacktrace instead of just the error?

I fixed it by having less LOD levels and less reduction…the only thing left is how to set the distance for the LOD the -d command in OgreCommandTool does not work (it crashes the command)