I’m experiencing a problem where a simple scene can crash Xith3D. I don’t know if I’m doing something wrong or it’s a known issue.
I managed to track this to the simplest example. This is based on the SimpleGeometry example from the GSG. The following code starts up correctly and draws the two objects:
This is a subset of the SimpleGeometry example. However if I comment one of the shapes being added to the scene the window appears for a split-second and crashes instantly without further info:
Just commenting a Shape3D does it. I have tried different ways but have seen always exactly the same pattern: when there is only one Shape3D in the scene (no matter which one) the program crashes.
The problem occurs with any of the examples that use a single Shape3D (ie HelloXith3D)
This is the debug info after starting a Xith3D application:
if this is on linux you should try to switch off vertex buffering
(seek a thread with -DXITH3D_USE_VERTEX_BUFFER … or so in this forum)
or upgrade your graphics driver as i remember there was some trouble with 44.96