Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [MANTA] display to existing OGL context?


Chronological Thread 
  • From: Abe Stephens <abe@sci.utah.edu>
  • To: Hansong Zhang <hansong@sgi.com>
  • Cc: "'manta@sci.utah.edu'" <manta@sci.utah.edu>
  • Subject: Re: [MANTA] display to existing OGL context?
  • Date: Tue, 04 Apr 2006 11:51:21 -0600

Hansong Zhang wrote:

A VTK user who's trying to integrate Manta in a transparent way wants to know how to display images generated by Manta on an OpenGL context he has already opened. What's the easiest way of doing this? Does OpenGLDisplay already support this possibility?


In the GLXImageDisplay (used by the fox front end), the X11 window id of the output destination window is passed from fox to GLXImageDisplay which opens a second connection to the X11 server and creates its own gl context. Then manta renders images using this connection and context.

This configuration prevents the opengl context from being shared between fox and Manta. I'd imagine that the same configuration could work with VTK although it's been quite some time since I have used that toolkit. Provided that you can pass a X11 window id to manta, GLXImageDisplay should work. (Note that a window resizing bug was detected with this image display during a demo this spring.)

https://code.sci.utah.edu/svn/Manta/trunk/Engine/Display/GLXImageDisplay.h
https://code.sci.utah.edu/svn/Manta/trunk/fox/dm_demo/dm_demo.cc

Abe







Archive powered by MHonArc 2.6.16.

Top of page