garbage when drawing cubes

I try to use Xith3D to visualize some AI nodes. I only draw cubes (lots of them), but i get garbage on screen. The cubes are the same as from the CubeDemo. Is there something that could couse this???

It seems as if you’re rendering the wireframe of the cubes instead.
You must have switched that on somewhere -> switch it off.

The garbage are the colored lines, the gray wireframe cubes in the background are ok. When i switch to POLYGON_FILL the screen is filled with color polygons, and nothing can be seen. It is like the scene is full of distored poligons. They appear at places where the cubes are placed densely, and only seen when viewed from distance.

I assume CubeDemo does work?

I recommend using the org.xith3d.geometry package (included in xith-tk.jar) for drawing primitives incidently.

Will.

Thanks for the geometry package, it looks very useful. Tryed the CubeDemo, and it produces similar problem when drawing 1500 cubes. At 500 there are no glitches. At 10000 the screen is full with color lines. When drawing with textures, gliches appear too as black areas. Anyway, i will add/remove cubes based on their distance from the view as a workaround, hope that helps.

you can also set that (the removing of cubes close to the view) with changing the front-clipping distance in View.

Have you tried to move your viewpoint? Does the “crap-geometry” move with you or can you move away and look at it from a distance?

PS: this bug seems to be very interesting :wink:

It seems this bug is specific to your setup otherwise others would have reported it for sure - have you tried on another machine? Do you have the latest video card drivers? If you do, maybe you should try some slightly older drivers incase it is a driver bug. Is Java up to date? etc…

Will.

The problem was in the drivers indeed. I have a Fujitsu-Siemens laptop with custom Catalyst drivers preinstalled. After changing to stock Mobility Catalyst 5.9 drivers (changed a line in the drivers inf file to be able to install it http://www.driverheaven.net/showthread.php?t=85395&page=4 ) the gliches went away. Thank you. Go Xith3D! Here is a fully zoomed-out view of 13000+ AI nodes:

Glad you fixed it, the screenshot looks cool :slight_smile:

Will.