I recently started development on a 3D tile-based game, and I am running into a problem using the Xith3D scenegraph. As a test, I am currently using the ASE loader to render an area of square tiles, and for some reason some of my tiles will randomly decide to not render on the screen (The more tiles in the map, the more often I will see one disappear). This only happens however when I translate or rotate the scene. If I start moving the scene random tiles will appear to flicker, and if I stop moving the scene at the right moment the tile will just be gone until I start moving again. The initial rendering of the scene always displays every tile. I attached a screenshot of an instance where at one point one of of the tiles just disappeared. There doesn’t seem to be any pattern to this. Has anyone else ran into a problem like this? I’m guessing it’s something to do with the way I am setting up the scenegraph, but I wanted to see if anyone else has seen this before posting any code.
Are you using transperency?
Nope, no transparency is being used. The tiles themselves are loaded from ASE files with JPEG’s used for textures. I have picking set up for all of them and when one disappears like that, I don’t get any hits when I try to click where the tile should be, as if it’s totally not being drawn…
This is now very strange…
Could you post the code, so we can take a look at it. …mmh… you’ll better add the files as attachments, so we can better test it. It looks to me as if this is going to be a tough one 
I went ahead and zipped up all my java files and resource files, I don’t have a whole lot of code so far besides the GUI. You’ll have to excuse all the extra junk I’ve put in there for testing different things, hopefully it’s not too difficult to follow. I’ll be working more on the problem myself in the meantime and see if I can come up with any ideas. Let me know if you need anything else, thanks for the helping out!
(link removed)
UPDATE: Good news, I managed to fix my problem! I changed the manner in which I was applying transforms to my scene: if I modify the transform of the View object for my scene, it seems to work flawlessly, instead of trying to modify the transform of the TransformGroup for my map. Here’s a method I set up that increments the the view coordinates by x, y, and z. Arne, I found the picking code you had written in one of the threads and got it working with my game. Thanks a lot, I found that to be very helpful!
public void moveCamera(float x, float y, float z) {
Transform3D t = new Transform3D();
Transform3D r = new Transform3D();
Vector3f v = new Vector3f();
view.getTransform().getTranslation(v);
Matrix3f m = new Matrix3f();
view.getTransform().getRotation(m);
t.set(new Vector3f(v.x+x, v.y+y, v.z+z));
r.setRotation(m);
t.mul(r);
view.setTransform(t);
}
I don’t know if this will help any, but I noticed that when I draw the tiles in order (apparently I was drawing them randomly before due to the nature of the HashMap I stored them in), that the only tiles that seem to disappear are over towards one corner, sometimes side, of the map. Also, the more I zoom out the less I seem to see of the disappearing tiles… Any help would be appreciated.