From: Kenneth B. R. <kbr...@al...> - 2001-02-20 19:58:14
|
> On Tuesday 20 February 2001 05:42, Joe & Bobbey Huwaldt wrote: > > > > Is there a method by which I can draw on top of a GLCanvas using the > > regular AWT methods? For example, I would like to render a 3D scene using > > GL4Java, then draw some items on top of part of that scene using a regular > > AWT graphics context. My first thought was that I would override paint(), > > but I see that you have prevented that. Did you provide any other way to > > do the same thing? Is it even possible (I haven't looked at the source > > code, so I don't know how the implementation works)? > > In the upcoming 2.5.0-test3 this should work, if you use the new factory api, > because the java window itself will have all the capabilities needed > while using the JDK 1.3 class GraphicsConfiguration internaly > (-> no more new native window will be created) ! Actually this is not guaranteed to work. The AWT may not be able to draw to the same window being drawn to by OpenGL. I believe the root of the problem is a driver issue on Windows; I think it is illegal to mix Windows GDI and OpenGL calls to the same device context. > > I want to do this because it is often easier to draw simple geometry and > > images using the AWT methods than it is to try and do the same thing > > through OpenGL. It would be really nice if I could draw AWT graphics > > elements over top of an OpenGL scene. There are several C/C++ libraries which use OpenGL to draw non-3D images which you might be able to borrow from or port pieces of to make this easier. See GLUI, for example: http://www.cs.unc.edu/~rademach/glui/ -Ken |
From: Sven G. <sgo...@ja...> - 2001-02-20 20:12:02
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 20 February 2001 20:58, Kenneth B. Russell wrote: > > > I want to do this because it is often easier to draw simple geometry > > > and images using the AWT methods than it is to try and do the same > > > thing through OpenGL. It would be really nice if I could draw AWT > > > graphics elements over top of an OpenGL scene. > > There are several C/C++ libraries which use OpenGL to draw non-3D > images which you might be able to borrow from or port pieces of > to make this easier. See GLUI, for example: > http://www.cs.unc.edu/~rademach/glui/ > > -Ken > well, I remember ;-): while I tried an implementation for the swing opengl rendering, I started an implementation of the Graphics class, which implements it's rendering using OpenGL ;-) may this will help I can send this little implementation with a test class, but it must be improved .. the most important thing to be improved may the font implementation .. bye, sven - -- mailto:sgo...@ja... www : http://www.jausoft.com ; pgp: http://www.jausoft.com/gpg/ voice : +49-521-2399440; fax: +49-521-2399442; icq-uin: 108264795 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6ks+THdOA30NoFAARAvxEAJ4+vb2iMZrrJibHzy0QCPD6TIChuQCcCFDy HlMSEz37AqYMnFD/2go17+I= =xKFi -----END PGP SIGNATURE----- |
From: Thorsten R. <ro...@iv...> - 2001-02-21 11:46:48
|
> while I tried an implementation for the swing opengl rendering, > I started an implementation of the Graphics class, > which implements it's rendering using OpenGL ;-) > > may this will help > > I can send this little implementation with a test class, > but it must be improved .. Yes, please send it ... (I'm also working on an implementation of the Graphics class) ciao, Thorsten |
From: Sven G. <sgo...@ja...> - 2001-02-21 22:03:12
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 21 February 2001 12:47, Thorsten Roemer wrote: > > while I tried an implementation for the swing opengl rendering, > > I started an implementation of the Graphics class, > > which implements it's rendering using OpenGL ;-) > > > > may this will help > > > > I can send this little implementation with a test class, > > but it must be improved .. > > Yes, please send it ... > (I'm also working on an implementation of the Graphics class) > > ciao, Thorsten > yo .. the files are within the demos-package: demos/SwingDemos/test there exist some test's within its own directory, try GLPanel-GLGraphics/GLGraphics.java would be cool, if someone tries to make it useful ! bye, 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; icq-uin: 108264795 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6lDshHdOA30NoFAARAobEAJwKGAt8L0A/rhsQTHl403bblQHkEACgj9rX 0SUfOYWvrSScxRL73VNVOmE= =Ubg6 -----END PGP SIGNATURE----- |
From: Joe & B. H. <jhu...@gt...> - 2001-02-21 04:57:52
|
>>> I want to do this because it is often easier to draw simple geometry and >>> images using the AWT methods than it is to try and do the same thing >>> through OpenGL. It would be really nice if I could draw AWT graphics >>> elements over top of an OpenGL scene. > > There are several C/C++ libraries which use OpenGL to draw non-3D > images which you might be able to borrow from or port pieces of > to make this easier. See GLUI, for example: > http://www.cs.unc.edu/~rademach/glui/ Thanks for the info! I'll take a look. Ad astra, Joe Huwaldt |