You can subscribe to this list here.
1999 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(12) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2000 |
Jan
(39) |
Feb
(22) |
Mar
(41) |
Apr
(44) |
May
(47) |
Jun
(25) |
Jul
(28) |
Aug
(39) |
Sep
(35) |
Oct
(31) |
Nov
(31) |
Dec
(3) |
2001 |
Jan
(18) |
Feb
(43) |
Mar
(47) |
Apr
(38) |
May
(9) |
Jun
(20) |
Jul
(8) |
Aug
(11) |
Sep
(15) |
Oct
(43) |
Nov
(27) |
Dec
(73) |
2002 |
Jan
(42) |
Feb
(47) |
Mar
(49) |
Apr
(58) |
May
(12) |
Jun
(68) |
Jul
(42) |
Aug
(9) |
Sep
(19) |
Oct
(36) |
Nov
(28) |
Dec
(12) |
2003 |
Jan
(13) |
Feb
(24) |
Mar
(40) |
Apr
(52) |
May
(39) |
Jun
(46) |
Jul
(17) |
Aug
(5) |
Sep
(4) |
Oct
(9) |
Nov
(13) |
Dec
(12) |
2004 |
Jan
(1) |
Feb
(17) |
Mar
(4) |
Apr
(2) |
May
(1) |
Jun
(1) |
Jul
(1) |
Aug
(1) |
Sep
(1) |
Oct
(6) |
Nov
(6) |
Dec
(3) |
2005 |
Jan
|
Feb
|
Mar
(8) |
Apr
(1) |
May
|
Jun
(1) |
Jul
(2) |
Aug
(5) |
Sep
(4) |
Oct
(3) |
Nov
(3) |
Dec
(1) |
2006 |
Jan
(2) |
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
(5) |
Sep
(8) |
Oct
(9) |
Nov
(8) |
Dec
(5) |
2007 |
Jan
(3) |
Feb
(11) |
Mar
(5) |
Apr
(5) |
May
(1) |
Jun
(2) |
Jul
(1) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
(5) |
2008 |
Jan
(7) |
Feb
(8) |
Mar
(30) |
Apr
(17) |
May
(20) |
Jun
(8) |
Jul
(19) |
Aug
(10) |
Sep
(7) |
Oct
(2) |
Nov
(1) |
Dec
|
2009 |
Jan
(13) |
Feb
(7) |
Mar
(13) |
Apr
(27) |
May
(95) |
Jun
(77) |
Jul
(43) |
Aug
(25) |
Sep
(24) |
Oct
(32) |
Nov
(6) |
Dec
(6) |
2010 |
Jan
|
Feb
(2) |
Mar
(30) |
Apr
(58) |
May
(60) |
Jun
(72) |
Jul
(32) |
Aug
(45) |
Sep
(19) |
Oct
(4) |
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2016 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <aco...@wa...> - 2001-10-17 07:54:21
|
>also try adding c:\jdk1=2E4\jre\bin to your system classpath, >this may fix the problem=2E >Sometimes GL4JAVA wouldn't fint jawt=2Edll wich is in this directory and wouldn't >load gl4java dependent dlls I meant try adding c:\jdk1=2E4\jre\bin to your system PATH and not classpath sorry for the confusion Regards, Alban Cousini=E9 |
From: Ant R. <an...@li...> - 2001-10-16 23:15:43
|
thanks for all the help guys! I'm off to try all your suggestions now. Just a note: I had previously made sure that the .dll files were copied = to all those directories....I'll go try and copy a new version over them = again though. BTW, I was curious what everyone was using gl4java to currently develop, = have you got any sites out there that I can have a peak at? :) ant. ----- Original Message -----=20 From: Alban Cousini=E9=20 To: an...@li... ; gl4java=20 Sent: Friday, October 19, 2001 5:56 PM Subject: [gl4java-usergroup] RE: java.lang.UnsatisfiedLinkError(2) also try adding c:\jdk1.4\jre\bin to your system classpath, this may fix the problem. Sometimes GL4JAVA wouldn't fint jawt.dll wich is in this directory and = wouldn't load gl4java dependent dlls Regards, Alban Cousini=E9 |
From: <aco...@wa...> - 2001-10-16 16:50:42
|
also try adding c:\jdk1.4\jre\bin to your system classpath, this may fix the problem. Sometimes GL4JAVA wouldn't fint jawt.dll wich is in this directory and wouldn't load gl4java dependent dlls Regards, Alban Cousinié |
From: Lamy Jean-B. <a1...@So...> - 2001-10-16 11:54:45
|
Le Lundi 15 Octobre 2001 14:51, vous avez =E9crit : > Sounds like a path issue dude. Check, double check and then recheck y= our > settings. Do a "set path" from your cmd prompt to make sure. Sorry I c= an't > be much more help than that but I am pretty sure it is a path problem. > > I do't get any errors while compiling but get the following message on > runtime: > > "Sorry, can't find the library: GL4JavaJauGljJNI13 > java.lang.UnsatisfiedLinkError: C:\WINNT\system32\GL4JavaJauGljJNI13.= dll: > Can't find dependent libraries." > > I've tried to reverting back to my old display driver (which used the = 1.2.2 > release of openGL) but I still get the same problem. I've also tried > rebuilding my gl4java projects from scratch, but still no success. I'= ve > tried my old version of my IDE but this now also outputs the same erro= r. > I'm sure I've got all my gl4Java .dll files in the correct places. > > Does anyone have any ideas as to what the solution may be? > > thanks. In fact, i think the error message should be interpreted as following : "when loading the shared library C:\WINNT\system32\GL4JavaJauGljJNI13.dl= l, a (another) dependant library was not found." So the trouble is not C:\WINNT\system32\GL4JavaJauGljJNI13.dll, but anot= her lib... windows doesn't say which one (in similar case, Linux does). My own experiments seems to show that jawt.dll is broken (?) in the JDK = (i cannot load jawt.dll by any means). But the jawt.dll of the JRE seems ri= ght, and the one with Java Web Start does too. So i guess you have used JDK ? You may try JRE... Jiba |
From: <aco...@wa...> - 2001-10-16 08:21:47
|
Your problem looks like either you don't have dlls at the right place, or you forgot copying some dlls=2E Wich version of GL4Java do you use ? If you are testing version 2=2E8=2E0=2E5 prerelease, don't forget to dowload= also the new dlls that work with it, since these are not the same dlls as with version 2=2E7=2E2 Then check out that you have the right dlls at the right place : the 4 dlls required are the following : GL4JavaGljMSJDirect=2Edll GL4JavaJauGljJNI=2Edll GL4JavaJauGljJNI12=2Edll GL4JavaJauGljJNI13=2Edll they can be found in 3 different locations according to your setup : in C:\jdk1=2Ex\bin in C:\Program Files\JavaSoft\JRE\1=2Ex\bin in C:\WINNT\system32 In order to avoid problems, I personnaly copy the 4 dlls in each of these 3 locations=2E That way, they are always found and I am sure gl4java uses the right version of the dlls, not an old version I would have forgotten in some path of the system=2E regards, Alban Cousini=E9 |
From: <NM...@th...> - 2001-10-15 18:52:21
|
Sounds like a path issue dude. Check, double check and then recheck your settings. Do a "set path" from your cmd prompt to make sure. Sorry I can't be much more help than that but I am pretty sure it is a path problem. Noah "Ant Ribot" <an...@li...> To: "gl4java" <gl4...@li...> Sent by: cc: gl4...@li...urc Subject: [gl4java-usergroup] can't find the library: eforge.net GL4JavaJauGljJNI13 10/15/2001 01:52 PM Having a few problems since upgrading my IDE and device drivers. IDE was upgraded to CodeWarrior 6 (from 4). Device drivers were upgraded to NVidia 21.83 Win 2000 XP drivers (with OpenGL 1.3 support). I do't get any errors while compiling but get the following message on runtime: "Sorry, can't find the library: GL4JavaJauGljJNI13 java.lang.UnsatisfiedLinkError: C:\WINNT\system32\GL4JavaJauGljJNI13.dll: Can't find dependent libraries." I've tried to reverting back to my old display driver (which used the 1.2.2 release of openGL) but I still get the same problem. I've also tried rebuilding my gl4java projects from scratch, but still no success. I've tried my old version of my IDE but this now also outputs the same error. I'm sure I've got all my gl4Java .dll files in the correct places. Does anyone have any ideas as to what the solution may be? thanks. |
From: Ant R. <an...@li...> - 2001-10-15 18:47:10
|
Having a few problems since upgrading my IDE and device drivers. IDE was upgraded to CodeWarrior 6 (from 4). Device drivers were upgraded to NVidia 21.83 Win 2000 XP drivers (with = OpenGL 1.3 support). I do't get any errors while compiling but get the following message on = runtime: "Sorry, can't find the library: GL4JavaJauGljJNI13 java.lang.UnsatisfiedLinkError: = C:\WINNT\system32\GL4JavaJauGljJNI13.dll: Can't find dependent = libraries." I've tried to reverting back to my old display driver (which used the = 1.2.2 release of openGL) but I still get the same problem. I've also = tried rebuilding my gl4java projects from scratch, but still no success. = I've tried my old version of my IDE but this now also outputs the same = error. I'm sure I've got all my gl4Java .dll files in the correct = places. Does anyone have any ideas as to what the solution may be? =20 thanks. |
From: <aco...@wa...> - 2001-10-15 09:40:32
|
I found the problem : adding glj=2EgljCheckGL() and glj=2EgljFree() at the end of display solves t= he problem=2E it was working without those methods in 2=2E7 though=2E Implementation in 2= =2E8 should have some differences=2E Sorry for the inconvenience=2E=2E=2Enext time i'll roll my tongue in my mout= h 7 times before saying something !!! :) that's a french expression when people speak too fast ! Regards, Alban Cousini=E9 |
From: Kenneth B. R. <kbr...@al...> - 2001-10-12 15:45:30
|
> I overwrited them and everything went...hum...normal. There is no more stack > trace, but the window updates once and stops updating, unless you resize the > application so it would go for another frame and pause again... Try typing Ctrl-Break into the command prompt to see the stack backtraces while the application is hung. |
From: <aco...@wa...> - 2001-10-12 10:59:33
|
When I installed the 2.8.0.5 dlls, I have copied them into /winnt/system32 I just figured there where also dlls into /program files/javasoft/jre/1.4/bin from version 2.7.2 I overwrited them and everything went...hum...normal. There is no more stack trace, but the window updates once and stops updating, unless you resize the application so it would go for another frame and pause again... I must say I'm using a java.awt.Frame to contain the animCanvas. Could this be the problem ? Alban |
From: <aco...@wa...> - 2001-10-12 10:46:32
|
Hi Sven, Keneth, Max, Hi everybody :) I've been downloading gl4java 2=2E8=2E0=2E5 prerelease and installed the fol= lowing files : gl4java=2Ejar gl4java-glutfonts=2Ejar png=2Ejar GL4JavaGljMSJDirect=2Edll GL4JavaJauGljJNI=2Edll GL4JavaJauGljJNI12=2Edll GL4JavaJauGljJNI13=2Edll All the files are coming from the sourceforge site and are labelled "gl4java 2=2E8"=2E I'm running windows 2000 pro SP2 Whenever I execute the function gljMakeCurrent() I get the following stack trace=2E If I put the function into comment, nothing would display=2E java=2Elang=2EUnsatisfiedLinkError: lockJAWT at gl4java=2EGLContext=2ElockJAWT(Native Method) at gl4java=2EGLContext=2EgljMakeCurrent(GLContext=2Ejava:2364) at OM=2ESceneToolkit=2EOMRenderCanvas=2Edisplay(OMRenderCanvas=2Ejav= a:155) at gl4java=2Eawt=2EGLCanvas=2EsDisplay(GLCanvas=2Ejava:674) at gl4java=2Eawt=2EGLCanvas=2Epaint(GLCanvas=2Ejava:490) at gl4java=2Eawt=2EGLCanvas=2Eupdate(GLCanvas=2Ejava:369) at sun=2Eawt=2ERepaintArea=2Epaint(RepaintArea=2Ejava:194) at sun=2Eawt=2Ewindows=2EWComponentPeer=2EhandleEvent(WComponentPeer=2Ejava:262= ) at java=2Eawt=2EComponent=2EdispatchEventImpl(Component=2Ejava:3561) at java=2Eawt=2EComponent=2EdispatchEvent(Component=2Ejava:3363) at java=2Eawt=2EEventQueue=2EdispatchEvent(EventQueue=2Ejava:448) at java=2Eawt=2EEventDispatchThread=2EpumpOneEventForHierarchy(EventDispatchTh read=2Ejava:193) at java=2Eawt=2EEventDispatchThread=2EpumpEventsForHierarchy(EventDispatchThre ad=2Ejava:147) at java=2Eawt=2EEventDispatchThread=2EpumpEvents(EventDispatchThread=2Ejava:141= ) at java=2Eawt=2EEventDispatchThread=2EpumpEvents(EventDispatchThread=2Ejava:133= ) at java=2Eawt=2EEventDispatchThread=2Erun(EventDispatchThread=2Ejava= :101) This is the code that causes the problem : public void display(){ //Ensure GL is initialised correctly if (!glj=2EgljMakeCurrent())return; //opengGL display code // | // | } I'm very impatient to check out the performance increase from java=2Enio use= =2E Is this a bug or did I forget some init commands ? (the code works smoothly with gl4java 2=2E7=2E2 though) Do you have an idea of a workaround for the bug ? Regards, Alban Cousini=E9 PS : As soon as you can send me max's FAQ, I can start working on it=2E |
From: Sven G. <sgo...@ja...> - 2001-10-12 03:01:54
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 11 October 2001 20:34, Max Gilead wrote: > Hello there! > > Sven Goethel wrote: > >max gillead is n.a., and i do not have a copy, > > Believe me or not I was not reading emails for about month now. This > pause is over and I am available :-) > a whole lot of thanxs ... dear max, it is nice to hear from you now i was concerned about your constitution now .. i hope things will go as good as you want things to go > >anyway his FAQ was outdated ... > > Sad but true. Apart from several generic topics it would be best to > create new FAQ that answers *current* questions. > thats true .. and "Alban Cousinié <aco...@wa...>" announced to do rebuild the FAQ. > I will mail old FAQ to Sven. thanxs in advance, max i will forward the FAQ to the franz. alban. cousin ;-) he wants to update the FAQ based upon the mailing list. thanxs 'ya all a lot > > Max hopefully this ain't you last email to us .. live long and prosper sven -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7xlWnHdOA30NoFAARApN1AJ41CojOXfE6heR09yhsr2A04mtOGQCfUZLM rUS5hCWlM9o8CReDZmvJK4Q= =tNZl -----END PGP SIGNATURE----- |
From: Max G. <gi...@li...> - 2001-10-11 18:34:47
|
Hello there! Sven Goethel wrote: >max gillead is n.a., and i do not have a copy, > Believe me or not I was not reading emails for about month now. This pause is over and I am available :-) >anyway his FAQ was outdated ... > Sad but true. Apart from several generic topics it would be best to create new FAQ that answers *current* questions. I will mail old FAQ to Sven. Max -- -------------------------------------------------------------- -- Max Gilead -- gi...@li... -- -- UIN 107356015 -- #yellowdragon on irc.openprojects.net -- -------------------------------------------------------------- |
From: Kenneth B. R. <kbr...@al...> - 2001-10-11 02:52:53
|
> Question : in his Grand Canyon demo page, Kenneth Russell reports it is not > possible yet use fullscreen mode with gl4java under Windows due to > incompatibility. Is there any plan to solve this issue into gl4java 2.8 ? Or > is it on the Sun microsystems side that the problem is ? It was a problem in the JDK which has since been fixed, though I haven't yet verified the fix. (Have been waiting for changes for JDK 1.4 support to be integrated into GL4Java; will then restructure the demo and throw out most of its native code.) |
From: Sven G. <sgo...@ja...> - 2001-10-10 12:49:54
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 10 October 2001 12:05, Alban Cousinié wrote: > When gl4java launches it displays : > > GLINFO: loaded OpenGL library OPENGL32.DLL! > GLINFO: loaded GLU library GLU32.DLL! > GLINFO: found wglGetProcAddress in OPENGL32.DLL > GLINFO: glDrawRangeElements (3): not implemented ! > GLINFO: glTexImage3D (3): not implemented ! > GLINFO: glTexSubImage3D (3): not implemented ! > GLINFO: glCopyTexSubImage3D (3): not implemented ! > and so on... > > Question : when gl4java says glDrawRangeElements is not implemented, is it > because my Opengl32.dll does not support the function, or because it is not > coded yet into gl4java ? > the first .. it is not supported by your opengl ICD, your native opengl implementation > Question : in his Grand Canyon demo page, Kenneth Russell reports it is not > possible yet use fullscreen mode with gl4java under Windows due to > incompatibility. Is there any plan to solve this issue into gl4java 2.8 ? i am working on the jvm 1.4 review of kenneth's code and it's merging into 2.8.0 ! the jvm 1.4 fullscreen feature may be integrated in this version, if it is not that hard to do so. > Or is it on the Sun microsystems side that the problem is ? i do not know i mostly maintain and test the unix platform, and i sometimes jsut do some win32 binaries and do a very quick test for this (IMHO ugly) platform. as far as i know, sun also have more successfull and bugfree releases for linux and solaris than for win32 ;-) > > Question : the link to the gl4java FAQ is broken on www.jausoft.com is it > because noone wants to host / maintain the FAQ, or is it just a broken link > ? If you need it, I'd be glad to help hosting it and maintaining it on my > web site. yes - indeed, i am looking for a FAQ maintainer. max gillead is n.a., and i do not have a copy, anyway his FAQ was outdated ... so, if you or any other is willing to create a nice FAQ - e.g. based upon this mailinglist, this would be nice. and for this case, i want the FAQ pages being send to myself, so i can put them on the sourceforge gl4java doc pages to be sure this FAQ won't disabpear ;-) > > Regards, > > Alban Cousinié > peace, sven - - -- my concern about the current attack: http://www.jausoft.com/20010911-wtc/ 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 iD8DBQE7xEPAHdOA30NoFAARAiK0AKClO3hUxOHTorElZ6qkN7BnigQaGQCgp6FT /Dn8J3aJdsD32A9F6sSXRrk= =W9FO -----END PGP SIGNATURE----- |
From: Lamy Jean-B. <a1...@So...> - 2001-10-10 11:41:38
|
> well, you can use heavyweight components within a swing layout also ;-) > > these are hardware accelerated and do have the same restriction > as kenneth mentioned (overlapping, etc.) This can solve most of the overlapping problem : JPopupMenu.setDefaultLightWeightPopupEnabled(false); Jiba |
From: <aco...@wa...> - 2001-10-10 10:01:33
|
When gl4java launches it displays : GLINFO: loaded OpenGL library OPENGL32=2EDLL! GLINFO: loaded GLU library GLU32=2EDLL! GLINFO: found wglGetProcAddress in OPENGL32=2EDLL GLINFO: glDrawRangeElements (3): not implemented ! GLINFO: glTexImage3D (3): not implemented ! GLINFO: glTexSubImage3D (3): not implemented ! GLINFO: glCopyTexSubImage3D (3): not implemented ! and so on=2E=2E=2E Question : when gl4java says glDrawRangeElements is not implemented, is it because my Opengl32=2Edll does not support the function, or because it is no= t coded yet into gl4java ? Question : in his Grand Canyon demo page, Kenneth Russell reports it is not possible yet use fullscreen mode with gl4java under Windows due to incompatibility=2E Is there any plan to solve this issue into gl4java 2=2E8 = ? Or is it on the Sun microsystems side that the problem is ? Question : the link to the gl4java FAQ is broken on www=2Ejausoft=2Ecom is i= t because noone wants to host / maintain the FAQ, or is it just a broken link ? If you need it, I'd be glad to help hosting it and maintaining it on my web site=2E Regards, Alban Cousini=E9 |
From: <NM...@th...> - 2001-10-09 08:10:29
|
Hi, I've recently managed to get the GLJPanel displaying on my system(Win 2000. JDK 1.3.1). I've noticed, however, that there is a weird error occurring regarding axis orientation. I may be missing something but it seems as though the Y axis is correct in GLCanvas but is inverted when the same world is rendered in GLJPanel. Odd error. I've included an example below that illustrates the issues. STEP 1: The code below will originally launch an Internal Frame containing a GLCanvas. In the canvas I draw 3 cones, a Red pointing out towards us along the Positive Z Axis, a Blue one pointing down the positive X Axis and a Green one pointing up the Positive Y Axis. STEP 2: If you then go into the code and ONLY: (SEE COMMENTS IN CODE TOO) Uncomment lines : 16, 23 Comment lines : 13, 78 STEP 3: and recompile you will then see the same example but this time with a GLJPanel in the internal frame. The example is in all other cases identical. In this case all axis are the same except that the Y Axis, the Green Cone, is now pointing in the opposite direction. Obviously a JPanel and a Canvas should not produce different orientation. Am I not setting something correctly? Or is this a bug? Thanks in advance for your help, Noah Keen HERE IS THE EXAMPLE CODE : import javax.swing.*; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import gl4java.*; import gl4java.awt.*; import gl4java.utils.glut.*; import gl4java.swing.*; /*** COMMENT THE LINE BELOW TO RUN GLJPANEL *****/ public class GLCanvasTest extends GLCanvas { /*** UNCOMMENT THIS TO RUN GLJPANEL ********/ //public class GLCanvasTest extends GLJPanel { public GLCanvasTest() { super(200, 200); /*** UNCOMMENT BELOW TO RUN GLJPANEL ****/ //super(); } /** * Sets up all basic OpenGL parameters. Adds lights and sets default material. **/ public void init() { gl.glShadeModel(GL_SMOOTH); gl.glEnable(GL_LIGHTING); gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f); gl.glEnable(GL_LIGHT1); float ambient[] = {0.2f, 0.2f, 0.2f, 0.0f}; float diffuse[] = {0.6f, 0.6f, 0.6f, 0.0f}; float specular[] = {1.0f, 1.0f, 1.0f, 0.0f}; float position[] = {1.0f, 1.0f, 1.0f, 0.0f}; gl.glLightfv(GL_LIGHT1, GL_AMBIENT, ambient); gl.glLightfv(GL_LIGHT1, GL_DIFFUSE, diffuse); gl.glLightfv(GL_LIGHT1, GL_SPECULAR, specular); gl.glLightfv(GL_LIGHT1, GL_POSITION, position); gl.glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); gl.glEnable(GL_NORMALIZE); // init the projection and ModelView matrix gl.glMatrixMode(GL_PROJECTION); gl.glLoadIdentity(); gl.glMatrixMode(GL_MODELVIEW); gl.glLoadIdentity(); } /** * Rotates, translates and displays the world **/ public void display() { /* Standard GL4Java Init */ if ( cvsIsInit()==false || glj.gljMakeCurrent() == false ) { return; } // clear old gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); //draw drawAxis(); // a GL4Java necessity glj.gljSwap(); /*** COMMENT THE LINE BELOW TO RUN GLJPANEL *****/ glj.gljFree(); } /** * Empty. For simplicity **/ public void reshape(int width, int height) { } /** * Draws three arrows on the X, Y and Z axis. * A cone which points from the origin to the POS plane of the axis * * NOTE!!!! - glu.gluCylinder() by default draws from the origin along * the POS Z axis. * **/ private void drawAxis() { float red[] = {1.0f, 0.0f, 0.0f, 0.0f}; float green[] = {0.0f, 1.0f, 0.0f, 0.0f}; float blue[] = {0.0f, 0.0f, 1.0f, 0.0f}; // draw a GREEN Y axis gl.glPushMatrix(); gl.glRotatef(-90.0f, 1.0f, 0.0f, 0.0f); gl.glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, green); glu.gluCylinder(glu.gluNewQuadric(), 0.05f, 0.0f, 0.5f, 5, 5); gl.glPopMatrix(); // draw a GREEN Y axis gl.glPushMatrix(); gl.glRotatef(90.0f, 0.0f, 1.0f, 0.0f); gl.glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, blue); glu.gluCylinder(glu.gluNewQuadric(), 0.05f, 0.0f, 0.5f, 5, 5); gl.glPopMatrix(); // draw a RED Z AXIS gl.glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, red); glu.gluCylinder(glu.gluNewQuadric(), 0.05f, 0.0f, 0.5f, 5, 5); } static GLCanvasTest canvas; public static void main(String[] args) { JFrame frame = new JFrame("Test"); JDesktopPane desktop = new JDesktopPane(); JInternalFrame iFrame = new JInternalFrame("Test", true, true, true, true); canvas = new GLCanvasTest(); frame.setSize(300,300); iFrame.setSize(200, 200); iFrame.setVisible(true); iFrame.getContentPane().add(canvas); desktop.add(iFrame); iFrame.getContentPane().add(canvas); frame.getContentPane().add(desktop); desktop.setVisible(true); frame.setVisible(true); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { canvas.cvsDispose(); System.exit(0); } }); } } |
From: Sven G. <sgo...@ja...> - 2001-10-09 03:29:21
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 09 October 2001 04:11, Kenneth B. Russell wrote: > > i've red that the swing library is the new user-interface library, and > > you shouldn't really use awt, except when you can't use the swing one > > compatibility etc.. ). > > > > so i wanted to use swing... > > > > but when i installed gl4java, in a file ( swingusage.txt ?) there was > > that you should use awt for performance.... what does it mean? i can't > > write fast opengl code thru swing? > > Sven can correct me if I'm wrong, but currently the GL4Java Swing > implementation uses off-screen buffers which are not hardware > accelerated. It is theoretically possible to keep track of the > visible region of the GLJPanel in the component hierarchy (as > long as no lightweight component is placed over it) and render > directly to the screen, though this is not done in the current > implementation. <snip> well, you can use heavyweight components within a swing layout also ;-) these are hardware accelerated and do have the same restriction as kenneth mentioned (overlapping, etc.) have a look at GL4Java/demos/testTextPPM1.java, where swing/awt is mixed .. live long and prosper sven -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7wm75HdOA30NoFAARAvzGAKCXAr2m2Rm0YYEB7ddGVkzT6S/SGwCfeUYR wohZPNUcrW+lCeKHORSd/rQ= =aPxZ -----END PGP SIGNATURE----- |
From: Kenneth B. R. <kbr...@al...> - 2001-10-09 02:12:06
|
> i've red that the swing library is the new user-interface library, and you > shouldn't really use awt, except when you can't use the swing one > compatibility etc.. ). > > so i wanted to use swing... > > but when i installed gl4java, in a file ( swingusage.txt ?) there was that > you should use awt for performance.... what does it mean? i can't write fast > opengl code thru swing? Sven can correct me if I'm wrong, but currently the GL4Java Swing implementation uses off-screen buffers which are not hardware accelerated. It is theoretically possible to keep track of the visible region of the GLJPanel in the component hierarchy (as long as no lightweight component is placed over it) and render directly to the screen, though this is not done in the current implementation. A description of this technique is available in this book by the author of the former Magician OpenGL binding: http://www.symbolstone.org/technology/java/nmbook/index.html |
From: Gabor F. <xl...@po...> - 2001-10-08 17:52:29
|
Hi, i'm relatively new to java/gl4java, so maybe i'm asking stupid questions...... i used opengl a lot when programming in c++, but now i tried gl4java + java.... i've red that the swing library is the new user-interface library, and you shouldn't really use awt, except when you can't use the swing one compatibility etc.. ). so i wanted to use swing... but when i installed gl4java, in a file ( swingusage.txt ?) there was that you should use awt for performance.... what does it mean? i can't write fast opengl code thru swing? thanks, gabor |
From: Sven G. <sgo...@ja...> - 2001-10-06 00:34:51
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 04 October 2001 15:29, wj...@th... wrote: > I've got the GLJPanel samples working on 98, NT, and 2000 (all laptops with > varying quality video cards). I had to pull down the number of colors on > the display down to 256 colors on some of them (not sure how strong the > video cards are). I assume this is the issue? Anyway, when the numColors is > too high, the error is very cryptic. Line 234(?) fails with the "setpixel > failed" message. A better message would be in order, I suppose. I'm kind of > new at this, I don't see why this order of calls should EVER fail (these > are in SetDCPixelFormat): > > ChoosePixelFormat > SetPixelFormat > > but it does! > > So if you get the "setpixel failed" message, try reducing the number of > colors and the samples will work. > sorry .. but 256 colors ain't supported yet i guess so, 'cause there are never ever tested (but you .. did it and it fails, ok). please use only _one_ mailinglist of gl4java, thanxs last but not least: thanxs for helping and fixing the offscreen jawt bug. peace, sven -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7vlGSHdOA30NoFAARAvBNAJsGBSfv/BBpAzsnhi8j8QujISHS0gCdFoKa xZaMBiFfXw6XMJIMNI79ZDM= =c9Me -----END PGP SIGNATURE----- |
From: <wj...@Th...> - 2001-10-04 13:29:43
|
I've got the GLJPanel samples working on 98, NT, and 2000 (all laptops with varying quality video cards). I had to pull down the number of colors on the display down to 256 colors on some of them (not sure how strong the video cards are). I assume this is the issue? Anyway, when the numColors is too high, the error is very cryptic. Line 234(?) fails with the "setpixel failed" message. A better message would be in order, I suppose. I'm kind of new at this, I don't see why this order of calls should EVER fail (these are in SetDCPixelFormat): ChoosePixelFormat SetPixelFormat but it does! So if you get the "setpixel failed" message, try reducing the number of colors and the samples will work. Bill K "Kenneth B. Russell" <kbr...@al...> To: wj...@th... Sent by: cc: gl4...@li..., gl4...@li...urc gl4...@li... eforge.net Subject: Re: [gl4java-usergroup] GLJPanel Under Windows 2000 10/04/2001 08:20 AM Please respond to kbrussel > I am trying to get the GLJPanel working on Windows... Thanks for the clear bug report. This patch should fix the problem. Will be checked in to the cvs tree shortly. >cvs diff -c OpenGL_Win32_jawt.c Index: OpenGL_Win32_jawt.c =================================================================== RCS file: /cvsroot/gl4java/GL4Java/GL4Java/CNativeCode/OpenGL_Win32_jawt.c,v retrieving revision 1.5 diff -c -r1.5 OpenGL_Win32_jawt.c *** OpenGL_Win32_jawt.c 2001/07/24 12:07:18 1.5 --- OpenGL_Win32_jawt.c 2001/10/04 06:19:09 *************** *** 426,431 **** --- 426,435 ---- return JNI_FALSE; } + if (joffScreenRenderer) { + pData->dsi_win = theWindow; + } + /* fetch the states of doubleBuffer and stereo */ (void) PixelFormatDescriptorFromDc( theWindow, &pfd); _______________________________________________ gl4java-usergroup mailing list gl4...@li... https://lists.sourceforge.net/lists/listinfo/gl4java-usergroup |
From: Kenneth B. R. <kbr...@al...> - 2001-10-04 06:20:22
|
> I am trying to get the GLJPanel working on Windows... Thanks for the clear bug report. This patch should fix the problem. Will be checked in to the cvs tree shortly. >cvs diff -c OpenGL_Win32_jawt.c Index: OpenGL_Win32_jawt.c =================================================================== RCS file: /cvsroot/gl4java/GL4Java/GL4Java/CNativeCode/OpenGL_Win32_jawt.c,v retrieving revision 1.5 diff -c -r1.5 OpenGL_Win32_jawt.c *** OpenGL_Win32_jawt.c 2001/07/24 12:07:18 1.5 --- OpenGL_Win32_jawt.c 2001/10/04 06:19:09 *************** *** 426,431 **** --- 426,435 ---- return JNI_FALSE; } + if (joffScreenRenderer) { + pData->dsi_win = theWindow; + } + /* fetch the states of doubleBuffer and stereo */ (void) PixelFormatDescriptorFromDc( theWindow, &pfd); |
From: <wj...@Th...> - 2001-10-03 15:23:19
|
I'm a novice to GL4Java (pretty new to GL in for that matter). I tried to run some of the GLJPanel samples, and I can't get any of them to run successfully. I am successfully using GLCanvas. I am trying to get the GLJPanel working on Windows. I'm using Windows 2000. I can get create a GLContext successfully, but the native call to gljMakeCurrent fails. I compiled all the native code and poked around in a bit, and it seems to me that something is missing in the Windows version of Java_gl4java_GLContext_gljMakeCurrentNative. The line it dies on is: if ( ret==JNI_TRUE && !disp__wglMakeCurrent(GET_USED_WINDOW(thisWin), (HGLRC)((PointerHolder)glContext)) ) The first parameter is 0. It appears to be that dsi_win is initialized to NULL in the jawt_create_offscreen call, and it is never set to anything else. The only chance it would get to be changed is in jawt_lock, but since dsi_win_created is never updated anywhere, it's initial value of 1 remains unchanged, and dsi_win is never set. It is actually set in gljDestroyNative, but I don't think that helps here... This is a bit different from the X11 code though. It has this code: if(ownwind || joffScreenRenderer==JNI_TRUE) { pData->dsi_win=(void *)(PointerHolder)theWindow; pData->dsi_win_created=1; } So, here are some questions: 1 - Has anyone run the GLJPanel samples under Windows? 2 - How does dsi_win get updated if dsi_win_created is never changed? Thanks in advance! Bill K |