#jogamp @ irc.freenode.net - 20160504 05:06:20 (UTC)


20160504 05:06:20 -jogamp- Previous @ http://jogamp.org/log/irc/jogamp_20160503050620.html
20160504 05:06:20 -jogamp- This channel is logged @ http://jogamp.org/log/irc/jogamp_20160504050620.html
20160504 06:40:29 * elect (~GBarbieri@anon) has joined #jogamp
20160504 06:46:59 <elect> hi
20160504 07:12:55 * monsieur_max (~maxime@anon) has joined #jogamp
20160504 07:33:08 * Eclesia (~husky@anon) has joined #jogamp
20160504 07:34:39 <Eclesia> hi
20160504 08:16:05 * jvanek (jvanek@anon) has joined #jogamp
20160504 12:24:04 * jvanek (jvanek@anon) Quit (Quit: Leaving)
20160504 12:43:51 * doev (~doev@anon) has joined #jogamp
20160504 12:45:07 <doev> Hi. I try to start some code I have written some years ago. There was no problem, but today I get an exception: "can not enumerate platforms [error: CL_PLATFORM_NOT_FOUND_KHR]"
20160504 12:45:26 <doev> Is there anything I need to install?
20160504 12:45:59 <doev> Today I use some other hardware, but it is still a nvidia gpu.
20160504 13:06:14 * doev (~doev@anon) Quit (Remote host closed the connection)
20160504 13:10:18 <elect> try update the drivers
20160504 13:12:35 <monsieur_max> elect: you always say that :(
20160504 13:13:41 <elect> sometimes it helps
20160504 13:13:57 <elect> it might be an CL extention problem
20160504 13:37:44 * rmk0 (~rmk0@anon) Quit (Remote host closed the connection)
20160504 15:47:43 * monsieur_max (~maxime@anon) Quit (Quit: Leaving.)
20160504 15:50:03 * elect (~GBarbieri@anon) Quit (Ping timeout: 240 seconds)
20160504 16:02:09 * Eclesia (~husky@anon) has left #jogamp
20160504 16:53:52 * monsieur_max (~maxime@anon) has joined #jogamp
20160504 17:50:12 * i-make-robots (~dan@anon) has joined #jogamp
20160504 17:50:23 <i-make-robots> hi!
20160504 17:50:43 <i-make-robots> https://www.instagram.com/p/BE9AE8YIfB7/
20160504 17:51:15 <i-make-robots> is there a way to access gl2.* methods without having to pass around an instance of gl2? LWJGL uses a class filled with static methods.
20160504 17:59:32 <bruce-> http://download.java.net/media/jogl/jogl-2.x-docs/javax/media/opengl/GLContext.html#getCurrentGL()
20160504 18:05:06 <i-make-robots> so instead of passing around gl2 i have to pass around glcontext?
20160504 18:05:22 <i-make-robots> oh i see the static now
20160504 18:08:40 <i-make-robots> do i have to setCurrent() in GLWindow.init() ?
20160504 18:09:01 <i-make-robots> er, gleventlistener:init() ?
20160504 18:10:13 <i-make-robots> i guess not.
20160504 19:17:22 * Eclesia (~eclesia@anon) has joined #jogamp
20160504 21:00:36 * monsieur_max (~maxime@anon) Quit (Quit: Leaving.)
20160504 21:16:48 * elect (~elect@anon) has joined #jogamp
20160504 21:17:36 <elect> anyone there?
20160504 21:17:53 <elect> I have a question about glcontext and key listener
20160504 21:31:34 <Eclesia> not sure if I can answer but I used it
20160504 21:34:29 <elect> essentially, I have a newt window
20160504 21:34:36 <elect> with a key listener
20160504 21:34:41 <elect> when escape is pressed
20160504 21:34:49 <elect> I just call animator.stop
20160504 21:34:50 <elect> ()
20160504 21:35:07 <elect> but the dispose() method of the glEventListener is not called
20160504 21:35:33 <Eclesia> you just stopped the animator that's all.
20160504 21:35:54 <elect> if I call glWindow.destroy()
20160504 21:36:03 <elect> I need to be in the same contex
20160504 21:36:04 <elect> t
20160504 21:36:16 <elect> so I do
20160504 21:36:17 <elect> glWindow.getContext().makeCurrent();
20160504 21:36:42 <elect> but the animator fires then an exception
20160504 21:36:49 <elect> because it reaches a timeout
20160504 21:36:55 <elect> finishLifecycleAction(com.jogamp.opengl.util.Animator$2): ++++++ timeout reached ++++++ main-Display-.x11_:0-1-EDT-1
20160504 21:36:55 <elect> finishLifecycleAction(com.jogamp.opengl.util.Animator$2): OK false- pollPeriod 1000, blocking true -> res false, waited 1000/1000 - main-Display-.x11_:0-1-EDT-1
20160504 21:36:55 <elect> - com.jogamp.opengl.util.Animator[started true, animating true, paused false, drawable 1, totals[dt 0, frames 60, fps 0.0], modeBits 1, init'ed true, animThread Thread[main-AWTAnimator#00,5,main], exclCtxThread false(null)]
20160504 21:36:55 <elect> [2]: com.jogamp.opengl.util.AnimatorBase.finishLifecycleAction(AnimatorBase.java:633)
20160504 21:37:19 <Eclesia> what if you stop the animator before destroying the window ?
20160504 21:37:38 <elect> yeah yeah
20160504 21:37:41 <elect> im doing that
20160504 21:37:51 <elect> anyway, I have all these troubles only on ubuntu
20160504 21:37:53 <elect> windows is fina
20160504 21:37:55 <elect> e
20160504 21:38:00 <Eclesia> (I don't have the problem since I stack the keyevents in a list and process it in the gl display call)
20160504 21:38:12 <elect> I thought about that
20160504 21:38:29 <elect> but I wanted to get it the right way, making the context current
20160504 21:38:38 <elect> stopping the animator and destroying the window
20160504 21:41:32 <Eclesia> sorry :(
20160504 21:43:01 <elect> if I stop the animator in the key listener
20160504 21:43:10 <elect> and in the display() I do
20160504 21:43:14 <elect> if(!animator.isAnimating()) {
20160504 21:43:14 <elect> glWindow.destroy();
20160504 21:43:14 <elect> }
20160504 21:43:25 <elect> then it exit without errors
20160504 21:46:28 <Eclesia> maybe you could set the window to visible=false before making the context current, this should disable the animator
20160504 21:46:57 <Eclesia> and the gl displays event
20160504 21:47:54 <Eclesia> \o/ first preview of the WYSIWYG editor : http://unlicense.developpez.com/gallery/Project_WidgetEditor_l.png
20160504 21:53:19 <elect> this works
20160504 21:53:19 <elect> animator.stop();
20160504 21:53:19 <elect> animator.remove(glWindow);
20160504 21:53:19 <elect> glWindow.destroy();
20160504 21:55:39 <elect> forget
20160504 21:55:43 <elect> it doesnt always works
20160504 21:55:45 <elect> :/
20160504 21:57:10 <elect> this seems working always instead
20160504 21:57:10 <elect> animator.remove(glWindow);
20160504 21:57:10 <elect> glWindow.destroy();
20160504 22:15:33 * elect (~elect@anon) Quit (Ping timeout: 244 seconds)
20160504 22:23:05 * Eclesia (~eclesia@anon) Quit (Quit: Leaving.)
20160504 22:32:47 * bigpet (uid25664@anon) Quit (Quit: Connection closed for inactivity)
20160505 01:07:52 * i-make-robots (~dan@anon) Quit ()
20160505 05:06:21 -jogamp- Continue @ http://jogamp.org/log/irc/jogamp_20160505050621.html