Multiple Views in One Window
Posted: Sat 26. May 2012, 00:44
I'm hoping someone can give me some suggestions on an idea that I've been (unsuccessfully) trying to implement. I'm working on some software that will be used in a museum exhibit, rather like an arcade game. Through the game, visitors are supposed to get an idea of what it would be like to inhabit a piecewise-flat manifold (for the moment, of dimension 2).
Here's the problem: I would like to be able to "composite" several different views of the manifold into a single window. (An example is attached.) From this 2010 post http://www3.math.tu-berlin.de/jreality/ ... ?f=3&t=453 I know that JReality currently supports only a "1 viewer, 1 view" system. However, in the interest of a clean user-experience, I would really like to avoid having multiple windows.
Here's what I've tried/considered so far:
--------------------
1) Use swing/AWT to put multiple viewers in a JFrame:
This sort of worked, but I had a lot of trouble with views that flickered or failed to render.
2) Render the views to BufferedImages offscreen, then "blit" them together and post the result:
I found I couldn't call "renderOffscreen" successfully without having a window running for each viewer. Also, I think this may not work for performance reasons.
3) Adapt JReality's JOGLRenderer
The problem JOGLRenderer's "cross-eyed stereo" code solves seems similar to the one I'm trying to solve. After looking at the code for this class (and its helpers) I'm thinking this might be too much of a project. However, if someone has a simplified version of this code (or could tell me more about how it was implemented), maybe I could make some progress here.
--------------------
I have about 2-3 months to work on this feature (along with other responsibilities). The views that I'm trying to put together work fine individually.
Thanks,
Joseph Thomas
University of Arizona
Here's the problem: I would like to be able to "composite" several different views of the manifold into a single window. (An example is attached.) From this 2010 post http://www3.math.tu-berlin.de/jreality/ ... ?f=3&t=453 I know that JReality currently supports only a "1 viewer, 1 view" system. However, in the interest of a clean user-experience, I would really like to avoid having multiple windows.
Here's what I've tried/considered so far:
--------------------
1) Use swing/AWT to put multiple viewers in a JFrame:
This sort of worked, but I had a lot of trouble with views that flickered or failed to render.
2) Render the views to BufferedImages offscreen, then "blit" them together and post the result:
I found I couldn't call "renderOffscreen" successfully without having a window running for each viewer. Also, I think this may not work for performance reasons.
3) Adapt JReality's JOGLRenderer
The problem JOGLRenderer's "cross-eyed stereo" code solves seems similar to the one I'm trying to solve. After looking at the code for this class (and its helpers) I'm thinking this might be too much of a project. However, if someone has a simplified version of this code (or could tell me more about how it was implemented), maybe I could make some progress here.
--------------------
I have about 2-3 months to work on this feature (along with other responsibilities). The views that I'm trying to put together work fine individually.
Thanks,
Joseph Thomas
University of Arizona