From: Max G. <gi...@li...> - 2000-10-14 21:43:31
|
Hello! Is there any way of checking if a GL context is made already current (gljMakeCurrent())? Calling gljMakeCurrent() twice crashes JVM, haven't checkeg gljFree() twice... but is there some clean way of checking it? BTW, is it possible to change GL4Java's behavior from crashing JVM to just throwing an exception in case of duplicate context activation? This is true for GL4J 2.4.0.0 and Sun's JVMs 1.2.2 and 1.3rc1 and IBM's 1.3 / Linux. Max -- Max Gilead (gi...@li...) http://3d.linart.krakow.pl/OfficinaArtificialis --- -- XMage: Image / 3D / OpenGL Java library - http://xmage.sourceforge.net ----------------------------------------------------------------------------- -- This email was published on recyclable bytes and no AI was harmed -- -- during its creation. -- |
From: Max G. <gi...@li...> - 2000-10-22 19:17:05
|
Hello! It seems like this message slipped by unnoticed. Since it is important issue I'm sending it again. -------- Original Message -------- From: Max Gilead <gi...@li...> Subject: Activating and freeing GL context To: GL4Java mailing list <gl4...@li...> Hello! Is there any way of checking if a GL context is made already current (gljMakeCurrent())? Calling gljMakeCurrent() twice crashes JVM, haven't checkeg gljFree() twice... but is there some clean way of checking it? BTW, is it possible to change GL4Java's behavior from crashing JVM to just throwing an exception in case of duplicate context activation? This is true for GL4J 2.4.0.0 and Sun's JVMs 1.2.2 and 1.3rc1 and IBM's 1.3 / Linux. Max -- Max Gilead (gi...@li...) http://3d.linart.krakow.pl/OfficinaArtificialis --- -- XMage: Image / 3D / OpenGL Java library - http://xmage.sourceforge.net ----------------------------------------------------------------------------- -- This email was published on recyclable bytes and no AI was harmed -- -- during its creation. -- |
From: Sven G. <sgo...@ja...> - 2000-10-23 15:33:16
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 23 October 2000 17:27, Max Gilead wrote: > Hello! > > It seems like this message slipped by unnoticed. Since it is important > issue I'm sending it again. > > Sorry, Max, I have noticed it and I hope I can handle it later ... may be this or tomorrow night .. sorry, yours, Sven > > -------- Original Message -------- > From: Max Gilead <gi...@li...> > Subject: Activating and freeing GL context > To: GL4Java mailing list <gl4...@li...> > > Hello! > > Is there any way of checking if a GL context is made already current > (gljMakeCurrent())? Calling gljMakeCurrent() twice crashes JVM, haven't > checkeg gljFree() twice... but is there some clean way of checking it? > > BTW, is it possible to change GL4Java's behavior from crashing JVM to > just throwing an exception in case of duplicate context activation? This > is true for GL4J 2.4.0.0 and Sun's JVMs 1.2.2 and 1.3rc1 and IBM's 1.3 / > Linux. > > Max > > > -- > Max Gilead (gi...@li...) > http://3d.linart.krakow.pl/OfficinaArtificialis > --- > -- XMage: Image / 3D / OpenGL Java library - > http://xmage.sourceforge.net > --------------------------------------------------------------------------- >-- -- This email was published on recyclable bytes and no AI was > harmed -- > -- during its > creation. -- > _______________________________________________ > gl4java-usergroup mailing list > gl4...@li... > http://lists.sourceforge.net/mailman/listinfo/gl4java-usergroup - -- mailto:sgo...@ja... www : http://www.jausoft.com ; pgp: http://www.jausoft.com/gpg/ voice : +49-521-2399440, +49-170-2115963; fax: +49-521-2399442 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.3 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE59Fj6HdOA30NoFAARAuXFAKCdMsDCUhiB+jUDo8AnxAaqH3OpjQCgoFgO 4vkU3OSIgiu/VkiESnqSpn4= =Ff4P -----END PGP SIGNATURE----- |
From: Jean-Yves B. <jea...@wa...> - 2000-10-26 08:02:38
|
Hello Max. 1. == I tried to call several times gljmakeCurrent(true) in the display method and I didn't get any crash on Windows. I use sun jvm from jdk 1.2.2. 2. == When I need to make gl call outside of display() method, I use the following piece of code: ///// synchronized(MyConstants.synchronizator) // MyConstants.synchonizator is a static String used to // synchronize all gl call. { if (canvas.gljmakeCurrent(true)) { GLFunc gl = canvas.getGl(); GLUFunc glu = canvas.getGlu(); // Here all my gl calls... // .... canvas.glFree(); } /////// Maybe it is too heavy code. I don't know if gljmakeCurrent() and glFree() takes lot of time or not to execute. 3. == Anyway, I agree with you: Checking if a GL context is made already current would be nice. Jean-Yves Max Gilead a *crit : > Hello! > > It seems like this message slipped by unnoticed. Since it is important > issue I'm sending it again. > > -------- Original Message -------- > From: Max Gilead <gi...@li...> > Subject: Activating and freeing GL context > To: GL4Java mailing list <gl4...@li...> > > Hello! > > Is there any way of checking if a GL context is made already current > (gljMakeCurrent())? Calling gljMakeCurrent() twice crashes JVM, haven't > checkeg gljFree() twice... but is there some clean way of checking it? > > BTW, is it possible to change GL4Java's behavior from crashing JVM to > just throwing an exception in case of duplicate context activation? This > is true for GL4J 2.4.0.0 and Sun's JVMs 1.2.2 and 1.3rc1 and IBM's 1.3 / > Linux. > > Max > > -- > Max Gilead (gi...@li...) > http://3d.linart.krakow.pl/OfficinaArtificialis > --- > -- XMage: Image / 3D / OpenGL Java library - > http://xmage.sourceforge.net > ----------------------------------------------------------------------------- > -- This email was published on recyclable bytes and no AI was > harmed -- > -- during its > creation. -- > _______________________________________________ > gl4java-usergroup mailing list > gl4...@li... > http://lists.sourceforge.net/mailman/listinfo/gl4java-usergroup -- -------------------------------------- Jean-Yves BRUD POLYQUARK - Ingenierie & Creation 3D Palahou - 31330 LARRA France Tel: 05.62.79.03.33 Fax: 05.62.79.03.38 Mail: jea...@wa... -------------------------------------- |
From: Sven G. <sgo...@ja...> - 2000-10-26 16:24:16
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 22 October 2000 12:16, you wrote: > Hello! > > It seems like this message slipped by unnoticed. Since it is important > issue I'm sending it again. > > > > -------- Original Message -------- > From: Max Gilead <gi...@li...> > Subject: Activating and freeing GL context > To: GL4Java mailing list <gl4...@li...> > > Hello! > > Is there any way of checking if a GL context is made already current > (gljMakeCurrent())? Calling gljMakeCurrent() twice crashes JVM, haven't > checkeg gljFree() twice... but is there some clean way of checking it? > Hmm .. well no application - in my experience - crashes, if gljMakeCurrent replaces a current context ! Well, we can add a gljGetCurrentContext native function to GLContext. Also we may can add a gljMakeCurrentNoReplace thing to GLContext ! How do you vote ? > BTW, is it possible to change GL4Java's behavior from crashing JVM to > just throwing an exception in case of duplicate context activation? This > is true for GL4J 2.4.0.0 and Sun's JVMs 1.2.2 and 1.3rc1 and IBM's 1.3 / > Linux. > Never happens to me. Please send a little code, where the error occures (a complete class, please). > Max > Sven > > -- > Max Gilead (gi...@li...) > http://3d.linart.krakow.pl/OfficinaArtificialis > --- > -- XMage: Image / 3D / OpenGL Java library - > http://xmage.sourceforge.net > --------------------------------------------------------------------------- >-- -- This email was published on recyclable bytes and no AI was > harmed -- > -- during its > creation. -- - -- mailto:sgo...@ja... www : http://www.jausoft.com ; pgp: http://www.jausoft.com/gpg/ voice : +49-521-2399440, +49-170-2115963; fax: +49-521-2399442 ! PEACE ON MOTHER EARTH - and the middle east, etc., of course - NOW ! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.3 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE5+FpZHdOA30NoFAARAm5cAKCbdZi6ND60ocC0+49cQcuZcGntcACfUQU7 7OLi50xfhUYmPLAMMG1rWSU= =/8uJ -----END PGP SIGNATURE----- |
From: Sven G. <sgo...@ja...> - 2000-10-26 20:18:36
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Request: Anybody interesting, in distributing the source in a cvs archive ? Yours, Sven - -- mailto:sgo...@ja... www : http://www.jausoft.com ; pgp: http://www.jausoft.com/gpg/ voice : +49-521-2399440, +49-170-2115963; fax: +49-521-2399442 ! PEACE ON MOTHER EARTH - and the middle east, etc., of course - NOW ! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.3 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE5+JGBHdOA30NoFAARAiwAAJ4+ONNKo9H7CtS3BNrfXdDwFr9yxgCgl92T 5tGRE+B/KHhYQ9HLAm2kFkw= =H/8e -----END PGP SIGNATURE----- |
From: Max G. <gi...@li...> - 2000-10-26 21:49:51
|
Sven Goethel wrote: > Hmm .. well no application - in my experience - crashes, > if gljMakeCurrent replaces a current context ! Okay, I'll send a small code snippet so everyone can test it. Max -- Max Gilead (gi...@li...) http://3d.linart.krakow.pl/OfficinaArtificialis ------ XMage: Image / 3D / OpenGL Java library - http://xmage.sourceforge.net ----------------------------------------------------------------------------- -- Developers must not be afraid to get a little mud on their shoes as -- -- they explore new territory for the first time. Architectural insight is -- -- not the product of master plans, but of hard won experience. -- -- - 'Big Ball of Mud' B. Foote and J. Yoder -- |
From: Max G. <gi...@li...> - 2000-10-28 12:13:03
|
Max Gilead wrote: > Sven Goethel wrote: > > Hmm .. well no application - in my experience - crashes, > > if gljMakeCurrent replaces a current context ! > Okay, I'll send a small code snippet so everyone can test it. Shit, I cannot reproduce the bug right now. I thought it's so staightforward that it's not worth saving the code. Although I was able to crash JVM without problem. If it happens again I'll save this precious code ;-) Sorry then. Thx for attention, Max -- Max Gilead (gi...@li...) http://3d.linart.krakow.pl/OfficinaArtificialis --- -- XMage: Image / 3D / OpenGL Java library - http://xmage.sourceforge.net ----------------------------------------------------------------------------- -- Developers must not be afraid to get a little mud on their shoes as -- -- they explore new territory for the first time. Architectural insight is -- -- not the product of master plans, but of hard won experience. -- -- - 'Big Ball of Mud' B. Foote and J. Yoder -- |
From: Thorsten R. <tho...@iv...> - 2000-10-30 14:11:22
|
Hi *, does anybody know if it's possible to use texture compression with gl4java ? ciao, Thorsten |