Dear friends,
I'm facing big issues on canvas resizing and i'm wondering what the heck it could be
I'm currently developing a CityGML viewer based on JME2 and it is quite complete as you can see in the following attached image:
http://cityvu.3dgis.it/files/cityvu-ok.jpg
It is mainly a JME2 LWJGL-based Canvas embedded in a Swing application and i use
((AWTGLCanvas) canvas).addComponentListener(new ComponentAdapter() {
public void componentResized(ComponentEvent ce)
{
doResize();
}
});
to track down size modifications.
doResize is really simple as it simply pass new size to resizeCanvas
protected void doResize()
{
int w = ((AWTGLCanvas) canvas).getWidth();
int h = ((AWTGLCanvas) canvas).getHeight();
impl.resizeCanvas(w, h);
canvas.makeDirty();
}
well the result is the following:
http://cityvu.3dgis.it/files/cityvu-ko.jpg
Seems like resolution is double than the specified but debugging seems everything is ok...
Tried to dig into the forum but nothing :(
Any suggestion?