From: Sven G. <sgo...@ja...> - 2001-08-17 02:06:48
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 16 August 2001 03:22, Joe Warmbrodt wrote: > All, > > I was wondering if someone could give me some advice. > > With GL4Java, I want to render an 3D image into an offscreen buffer and > save it as a GIF. > > I already know how to save a GIF file, and I already know how to render > stuff to the screen. > > I can't figure out how to render into an offscreen buffer (like maybe a > BufferedImage) and that's what is confusing me. > > Can anyone help with this? Any advice or starter info would be > appreciated. > > Thanks! > > jo...@mo... > 1.) save a rendered image .. look at the demo morph3d.java - uses an TGATextureGrabber -> TextureGrabber, - which grabs the pixels with the given spec. buffer name - and save's them into a file, e.g.: tga format well, it would be cool, if you can make another derivation of gl4java.util.textures.TextureGrabber, e.g. PNGTextureGrabber !! you can, of course use this with on- and offscreen rendering 2.) using offscreen rendering .. have a look at gl4java.swing.GLJPanel::paintComponent(..): usage of: GLContext.createOffScreenCtx that's it .. cheers, sven > > _______________________________________________ > gl4java-usergroup mailing list > gl4...@li... > http://lists.sourceforge.net/lists/listinfo/gl4java-usergroup - -- mailto:sgo...@ja... www : http://www.jausoft.com ; pgp: http://www.jausoft.com/gpg/ voice : +49-521-2399440 ; fax : +49-521-2399442 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7fHwvHdOA30NoFAARAkWJAKCVBPBsih73aiOLDYnZ+uFrjC2aHwCgqUIT U7qhAwOBFfvGLQF5l7KXGgQ= =w5va -----END PGP SIGNATURE----- |