Using 2 Views crashes

Hi guys,

I modified the AseTransformGroup example from the Getting Started to have 2 views attached to the same universe and it crashes badly.

It’s able to render both views correctly for a couple of renderOnce() and then it crashes.

I attached the modified AseTransformGroup.java with this post if someone wants to try it. I also attached the error report file.

I am using Windows XP x64 edition and my graphics card is a ATI Radeon X800 GTO.

The strange thing is that I also modified the HelloXith3D example to have 2 views and it doesn’t crash. But on the other hand, only 1 view is rendered correctly. The other one is just black. Even more strange, the view that gets correctly rendered changes randomly every time I run the program. So it’s not a case of: the first added view always gets rendered correctly or vice versa.

why would u use 2 views?

you cant just look at a world with one view or at least that would make sense

Using more than one view is quite usefull and quite powerfull. Look at a view as a camera. Each view can see the same world from a different perspective. For instance, let’s say you have a fighter that launches a missile and there is a camera attached the missile. You might want to have a view that shows you what the missile sees while you still have the other view with the fighter. This is pretty good because you only have one instance of the world.

I found this old topic that asked for the multiple views feature to be functional in Xith3D.
Using multiple views
http://www.java-gaming.org/forums/index.php?topic=2893.0

I guess it’s still not possible.

Hi folks,
It seems there are posts on this same subject going back years now.

Does anyone have a simple example of rendering 2 views of the same scene using any technique at all?

It seems like it should be possible, but all the code I’ve tried ends up crashing the Java virutal machine after the first few frames.

Thanks for you time!

Also, just checked and the (perhaps) obvious way of creating the two View objects and attaching 2 canvas’ etc …

  • works OK on my non NVidia (old intel notebook) system (although one of the views is slightly wrong (seems to be just the position of the view)

and

  • the same code Throws the JVM error on my Nvidia 5600

Please if anyone knows the deal with multiple views on a single scene I will be very grateful!