From: Sven G. <sgo...@ja...> - 2000-08-31 18:16:20
|
aNt wrote: > > > Subject: [gl4java-usergroup] MAC PORT > > > > MAC PORT (MacOS 9.0 PPC) > > ======================== > > > > I got it :-) ! > > I have created a shared library, > > which is installed as an extension ... > > It works. > > nice one, huray :) > > > Now I have still the problem, how I can query the functions (pointers) > > of the OpenGL functions, located within the OpenGL shared library ! > > they all should be in the apple sdk for opengl: > http://www.apple.com/opengl/ > > should all be there. > Nono. The problem is, that I DYNAMICALLY fetch the function pointer out of the GL library, for all GL functions. This is done, because not all GL functions are implemented in some implementations ! So, there are no more dummy nope functions, and no more DLL's for special GL implementations ! For Windows, I use: wglGetProcAddress if not succesfull, I use: LoadLibrary GetProcAddress FreeLibrary For Unix, I use: dlopen dlsym dlclose if on of the following exist (queried by mechanism above), I will use: glXGetProcAddress, or glXGetProcAddressARB, or glXGetProcAddressEXT otherwise, using the dlsym mechanism above ! So - how is it done for the MAC ? 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 |
From: aNt <an...@to...> - 2001-03-31 21:33:23
|
well how cool is this ? way cool I say. just got it all working today. renders like a dream under X. way faster and cooler then I'v seen yet. you can scroll window over the java application frame and nothing in the frame pauses. it as if it was all being rendered in the same place. very nice. very very very nice. oh anyone done a file loader yet ? love to see some code that loads 3dsmax files or something like that (textures and all that). anyways gerard ziemski u are the man. thank u very much for doing the port, its great. tops.. to u all aNt |
From: aNt <an...@to...> - 2001-06-18 11:28:47
|
gezza's. > >is it right using the accumulation buffer is really _slow_ ? > arrr indeed. but then I set up my GeForce2Ultra to OpenGL and it flys. > >I'm trying to use the accum buffer because I need to set an alpha value to= a >fixed display list with glColor's in it. With the accum buffer I should be >able to add an already rendered display list with any alpha by glAccum >(GL_ADD, alpha), right ? that=B9s the one. u could also do the hack it to make things faster. make a plain object and put it in front of your camera. make the plain object 30% transparent. don=B9t clear the back buffer. and u will have the 30% transparent shape do the clearing for u. simple uh :) >Is there a way to set the color (r,g,b) without setting the alpha too ? theres: gl.glColor3f(r, g, b); and gl.glColor4f(r, g, b, a); all in them there docs :). tops aNt |
From: Thorsten R. <tho...@iv...> - 2001-06-19 09:33:17
|
Hi *, > >is it right using the accumulation buffer is really _slow_ ? > > arrr indeed. but then I set up my GeForce2Ultra to OpenGL and it flys. grrrrrr ... ;-) > >I'm trying to use the accum buffer because I need to set an alpha valu= e to > > a fixed display list with glColor's in it. With the accum buffer I sh= ould > > be able to add an already rendered display list with any alpha by glA= ccum > > (GL_ADD, alpha), right ? > > that=B9s the one. u could also do the hack it to make things faster. ma= ke a > plain object and put it in front of your camera. make the plain object = 30% > transparent. don=B9t clear the back buffer. and u will have the 30% > transparent shape do the clearing for u. > > simple uh :) work's well... thanx! > >Is there a way to set the color (r,g,b) without setting the alpha too = ? > > theres: gl.glColor3f(r, g, b); and gl.glColor4f(r, g, b, a); all in the= m > there docs :). But gl.glColor3f (r,g,b) sets the alpha to 1f. I need the alpha value=20 unchanged... ciao, Thorsten |
From: dando <on...@ya...> - 2001-06-20 09:16:10
|
I still can't seem to get glJPanels to work... Anyone having problems with them? The demos compile fine but the Panels fail to show. I'm getting this error message... GLJPanel: problem in use() method GLJPanel: problem in use() method GLJPanel: problem in use() method Please help! -Danny _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |