It's a minor issue, but I was wondering how people normally switch between views.
There is a removeAllLocales in VirtualUniverse, but there is not removeAllViews or no other way of removing View objects from VirtualUniverse.
Since the method removeAllCanvas3D() is not implemented in View either, to switch to a new View does it suffice to call:
virtualUniverse.addView (view) and
The problem is that if you keep switching between views, a canvas3d will be added to the view's canvases list everytime, which makes performance to really drop (unless I'm missing something). To avoid that, I had to change some of the methods at View.java (like implementing numCanvas3D() ). I tried to extend View but it wouldn't work. Is this illegal? Why?
And concerning threads, it seems to work ok if I do all this switching of views between a synchronized block, but should I care about stop and start the rendering thread again (could I gain anything?)
thanks for creating Xith3D, because it's the best!