thothbot / parallax

Cross-platform Java 3D SDK
http://thothbot.github.io
MIT License
84 stars 26 forks source link

Is it possible to create more than one GwtRenderingContext in the same view ? #71

Open andnovar opened 8 years ago

andnovar commented 8 years ago

Initially I create a rendering context for rendering a scene and then I have a button to add models to the scene but it loads a preview first in a new GwtRenderingContext. At the moment when I add the ViewerWidget it does not render the preview but adds the element to the page and at the same time detach the rendering1 clears content.

rendering1 = new GwtRenderingContext(PageExample.this.content); rendering2 = new GwtRenderingContext(ViewerWidget.this.viewer);

I just don't get to create different widgets. content and viewer are SimpleLayoutPanel in PageExample.java ui bind with PageExample.ui.xml and ViewerWidget.java ui bind with ViewerWidget.ui.xml

thothbot commented 8 years ago

It should be possible, if not then it is a bug

andnovar commented 8 years ago

Most likely since I can load both GwtRenderingContext indivually but not together.

thothbot commented 8 years ago

Ok, I'll take a look at this

andnovar commented 8 years ago

Thanks !