First I'd like to say that I am a true beginner in the 3D world I have coded a small terrain test. It's very basic ; it's loads a bitmap and creates for each pixel a square made of two triangles. Every cell shares its normal with the neighbours so the (gouraud) rendering looks smooth.It looks fine but i got a 25fps for a 40*40 map, ie 40*40*2=3200 triangles... on a Athlon2000+, GeForce4200, 1Go RAM I started from the cubetest and testutils classes.So i'd like to know if i am really bad (probably) or if the performance of Xith are not so good Or maybe i miss some configuration point because the xith terrain demo is hanging the whole PC when launched...

Thanks for quickly answering. I put some code below. It is very long and quite unoptimized for the triangles generation. But even if the generation is badly coded, does it impact the performance (since the data are created just once)

And as i said, the XithTerrainDemo is hanging my PC (and another too which is a Athlon550,GeForce256,512Mo RAM)

// Make extra transfrom we may want to play with (scale etc.)TransformGroupsceneRootTransform = newTransformGroup();Transform3Dt = newTransform3D();t.setIdentity();t.setTranslation(newVector3f(-2, 0, -2));sceneRootTransform.setTransform(t);testRotateYGroup.addChild(sceneRootTransform);

Well, Xith3d is fast. David, Yuri and the other few maintainers say it's not fully optimized yet and there will be done more in the future, but it's already pretty fast and very usable IMHO.

Currently with a GF4 4200 I've got a scenery with about five moving/rotating objects with about 43000 polygons in total, @ 85 to 90 FPS on a 1024x768x32bpp screen. The (<2 GHz) CPU is idling at below 30% load, so actually it's just up to the graphics card.

Of course, fewer (geometry static) objects with many polygons render better than many objects with fewer polygons, but still it gives a hint.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org