Re: offscreen rendering

New Message Reply Date view Thread view Subject view Author view

Allan Schaffer (aschaffe)
Wed, 26 Apr 1995 22:43:56 -0700


On Apr 17, 10:32am, Tran Thai wrote:
>
> What is the recomended methode to render a frame offscreen?
>
> On a small system I want to render the animation offscreen
> and save each frame has a .jpeg image to be latter playedback
> realtime with a cosmo compress card.

Unfortunately this is fairly difficult in the current release of
Performer. IRIS GL (the rendering toolkit used by Performer) does
not provide any functionality for off-screen rendering.

Luckily, the Performer 2.0's use of OpenGL will make this much
simpler. Assuming it works the way I expect, you should be able to
render directly to an off-screen buffer (pixmap). This is a slower
rendering path because it forgoes any available hardware
acceleration, but allows you to use Xlib calls to write the pixmap to
a file, display it, or whatever.

For now, your best bet is to incorporate use of a program like
"/usr/sbin/scrsave" (from eoe2.sw.gltools in 5.3) into your
application, or run it by hand. The source to scrsave is shipped in
4Dgifts.sw.iristools.

Good luck,

Allan

-- 
Allan Schaffer                                              aschaffe++at++sgi.com
Silicon Graphics                   http://reality.sgi.com/employees/aschaffe

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:26 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.