CustomShape limitations
Hello,
I have hit the maximum limit of 200 faces & vertices, which are allowed per shape. (Unfortunately breve is not very verbose about this kind of error)
After modifying the constants MAX_VERTS and MAX_FACES in volInt.h and recompiling breve, I could create custom shapes of reasonable size.
Now here is my question: why is there such a severe limitation on the number of faces and vertices per shape in breve?
How far can I savely extend the values assigned to the constants without making breve crash?
cheers,
--pyg
»
Submitted by pygmalion on Wed, 2006-07-19 08:48.
- Login to post comments

CustomShape limitations
As far as I know, there are no hard limits on MAX_VERTS and MAX_FACES, except that they use up memory resources. You can increase them as much as you'd like -- I didn't realize the existing limits were so severe!
- jon
CustomShape limitations
That' cool - CustomShapes here I come :D
I was just a little bit confused, because when I started CustomShape-tuning with astronomically high values for those constants, breve would already crash upon start-up. I guess there is some static memory allocation or other scary things going on gehind the scenes...
Anyway there are probably more important things than gigantomanic CustomShapes :)
Nevertheless I think the same problem might also show up when trying to import shapes via MeshShape, but I din't try this yet.
Is there any chance of convex CustomShapes being integrated into breve?
Currently the only hack I can think of is breaking non-convex shapes down into their convex parts and linking them together ...