Hi Clement,

My guess is that way you hacking the screen size change by creating a new
context is screwing up the way context ID's and OpenGL objects are managed.

My recommendation would be to just switch off window decoration and change
the window size of the context rather than creating a new one.

Robert.

On 30 January 2015 at 16:04, <[email protected]> wrote:

> Hi all,
>
>   I am trying to output my volume image on full screen with MFC by
> changing GraphicsContext in camera.  First I get GraphicsContext from
> camera and then close it.  Then I created a new GraphicsContext with
> setting screen number and size of full screen and then set it to camera.
> It works to show full screen and also restore back to mfc window, but the
> image cannot show probably.  There is no image on screen (volume data) and
> show the axes I drawn only.  If I changed the display setting to stereo
> (Anaglyphic) and set grayscale on and off.  Then the image will come out.
> I am not sure how to fix it.  See if anyone can help me.  Thanks.
>
>
> Regards,
> Clement
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to