#jogamp @ irc.freenode.net - 20150129 05:05:22 (UTC)
20150129 05:05:22 -jogamp- Previous @ http://jogamp.org/log/irc/jogamp_20150128050522.html
20150129 05:05:22 -jogamp- This channel is logged @ http://jogamp.org/log/irc/jogamp_20150129050522.html
20150129 07:27:21 * monsieur_max (~maxime@anon) has joined #jogamp
20150129 08:22:25 * doev (~doev@anon) has joined #jogamp
20150129 08:27:56 * eclesia (~husky@anon) has joined #jogamp
20150129 08:28:03 <eclesia> good morning
20150129 08:30:11 * doev (~doev@anon) Quit (Ping timeout: 252 seconds)
20150129 08:44:39 * mjacob_ is now known as mjacob
20150129 08:49:12 * jvanek (jvanek@anon) has joined #jogamp
20150129 09:08:48 * doev (~doev@anon) has joined #jogamp
20150129 09:57:38 * doev (~doev@anon) Quit (Ping timeout: 264 seconds)
20150129 10:47:29 * doev (~doev@anon) has joined #jogamp
20150129 11:32:48 * doev (~doev@anon) Quit (Ping timeout: 276 seconds)
20150129 13:48:11 * doev (~doev@anon) has joined #jogamp
20150129 15:40:52 * eclesia (~husky@anon) Quit (Ping timeout: 240 seconds)
20150129 15:41:52 * eclesia (~husky@anon) has joined #jogamp
20150129 16:54:29 * monsieur_max (~maxime@anon) Quit (Quit: Leaving.)
20150129 16:58:48 * eclesia (~husky@anon) has left #jogamp
20150129 17:21:12 * doev (~doev@anon) Quit (Ping timeout: 276 seconds)
20150129 17:30:44 * monsieur_max (~maxime@anon) has joined #jogamp
20150129 17:51:38 * doev (~doev@anon) has joined #jogamp
20150129 17:55:24 * doev (~doev@anon) Quit (Client Quit)
20150129 21:19:46 <i-make-robots> which is better to use: SWT, AWT, or SWT-AWT bridge?
20150129 21:19:53 <i-make-robots> it's not clear to me from the JOGL pages.
20150129 21:21:21 <rmk0> that may be the wrong question
20150129 21:21:35 <rmk0> i think it's more that you might have a SWT or AWT program that needs to do opengl rendering
20150129 21:22:15 <rmk0> if you had no need of anything in SWT or AWT, you'd like use NEWT
20150129 21:22:19 <rmk0> *likely
20150129 21:22:57 <i-make-robots> You're right.
20150129 21:23:09 <i-make-robots> I'm struggling to find a sample that does what i want so I can learn from there.
20150129 21:23:20 <rmk0> what is it you're looking for?
20150129 21:23:39 <i-make-robots> basically, I want a jPanel with a GLCanvas, then a splitter, then some normal swing components on the other side of the splitter
20150129 21:23:50 <i-make-robots> i'm working up to "click on 3d shape, get context-sensitive menu"
20150129 21:24:05 <rmk0> will throw an example together
20150129 21:24:10 <i-make-robots> thank you!!
20150129 21:24:35 <i-make-robots> all my robot projects thank you in advance. I'm going to merge them into a single interface with plugins for each machine.
20150129 21:25:55 <i-make-robots> i tried eclipse snippet 209, LWJGL, and a few other solutions. nothing quite fits.
20150129 21:29:51 * void256 (~void@anon) has joined #jogamp
20150129 21:31:42 <i-make-robots> rmk0 - can you animate the gl side, please? A spinning triangle is enough. My robot models will be moving with timed animations.
20150129 21:32:25 <rmk0> yep
20150129 21:32:47 <i-make-robots> you are my favorite human right now.
20150129 21:34:19 * monsieur_max (~maxime@anon) Quit (Ping timeout: 255 seconds)
20150129 21:39:39 * rmk0 fights JSplitPane
20150129 21:40:56 <void256> fight back rmk0 !
20150129 21:41:41 <void256> http://supplyfour.org/wp-content/uploads/2014/10/bruce-lee-defeat.jpg
20150129 21:41:43 <void256> ;)
20150129 21:42:01 <i-make-robots> do the dead accept reality?
20150129 21:42:44 <void256> they have no choice ... as the alive
20150129 21:43:01 <void256> I mean the alive have no choice either
20150129 21:43:17 <void256> *neither
20150129 21:43:28 <void256> maaaan! I should code more and chat less >_<
20150129 21:47:06 <rmk0> https://github.com/io7m/jogl-swing-trivial
20150129 21:47:45 <rmk0> i used NewtCanvasAWT because it means that you can treat the canvas as an ordinary GLWindow and don't have to have, say, separate AWT-specific mouse and keylisteners
20150129 21:48:18 <rmk0> it doesn't draw a triangle as that'd involve setting up shaders and so on, just fades the canvas between different colors
20150129 21:48:40 <rmk0> any crappy behaviour on the part of the UI is the fault of swing's awful layout managers!
20150129 21:52:48 <i-make-robots> trying....
20150129 21:52:55 <zubzub> using swing makes baby jesus cry
20150129 21:53:06 <i-make-robots> what do you suggest instead?
20150129 21:53:15 <i-make-robots> I'm looking for ways to make my distros simpler.
20150129 21:53:37 <i-make-robots> right now Yosemite has new security junk that makes downloading a DMG file a pain in the ass.
20150129 21:53:59 <i-make-robots> on every platform I have to have a batch file to find java and set some junk up, it's never as elegant as I'd like.
20150129 21:54:33 <zubzub> qt? :p
20150129 21:56:52 <i-make-robots> wtf, now github won't clone to desktop.
20150129 22:02:07 <i-make-robots> qt is qt jambi?
20150129 22:05:05 <i-make-robots> rmk0 - it works! Thank you.
20150129 22:05:18 <i-make-robots> now I have a question that already makes me feel stupid.
20150129 22:05:43 <i-make-robots> when I create an eclipse project the main class name has to match the project name. I see here your main class is way more literal. How do I do that?
20150129 22:07:41 <i-make-robots> nm, i found it.
20150129 22:07:45 <i-make-robots> thank you google.
20150129 22:08:36 <rmk0> .. never heard of that restriction before
20150129 22:10:21 <rmk0> if you take those five lines at the start of MainWindow:
20150129 22:10:22 <rmk0> final GLProfile profile = GLProfile.getDefault();
20150129 22:10:22 <rmk0> final GLCapabilities caps = new GLCapabilities(profile);
20150129 22:10:22 <rmk0> final GLWindow gl_window = GLWindow.create(caps);
20150129 22:10:22 <rmk0> gl_window.setSize(512, 512);
20150129 22:10:24 <rmk0> gl_window.addGLEventListener(new MainGLEventListener());
20150129 22:10:27 <rmk0> that's how you use NEWT
20150129 22:10:56 <rmk0> so... if you wanted to remove swing entirely, that's all you'd need
20150129 22:11:40 <rmk0> obviously if you wanted some sort of UI there too, you'd need to render that UI in opengl, or embed it into another toolkit via some horrible means
20150129 22:18:28 * zzuegg_ (~zzuegg___@anon) has joined #jogamp
20150129 22:20:12 * zzuegg (~zzuegg___@anon) Quit (Ping timeout: 276 seconds)
20150129 22:24:43 <i-make-robots> rmk0 - do you have a website and a real name? I'm going to blog this, I'd like to give attribution.
20150129 22:25:19 <rmk0> http://io7m.com
20150129 22:25:23 <rmk0> real name's on the commits
20150129 22:30:04 <i-make-robots> tyvm
20150129 22:33:50 <i-make-robots> rmk0 - why the crazy serialvesionuid on MainWindow?
20150129 22:35:54 <rmk0> oh, my eclipse settings demanded it
20150129 22:36:02 <i-make-robots> i usually put 1L.
20150129 22:36:19 <rmk0> it was eclipse-generated
20150129 22:36:46 <i-make-robots> I notice that you set the glWindow size before it is added to the panel, and it doesn't adjust to resizing. is that trivial to fix?
20150129 22:37:09 <rmk0> i'm not sure what the best way to handle it is
20150129 22:37:11 <i-make-robots> i imagine there's a window event i have to catch
20150129 22:37:18 <rmk0> it felt like it was misbehaving slightly if i didn't set the size explicitly
20150129 22:37:39 <i-make-robots> maybe it can set explicitely before adding, then resize on demand?
20150129 22:37:47 <rmk0> possibly
20150129 22:41:11 <i-make-robots> i'm seeing online I'd probably need a componentlistener to catch the resize.
20150129 22:41:17 <i-make-robots> do you concur?
20150129 22:42:07 <rmk0> .. this is above my pay grade!
20150129 22:48:20 * void256 (~void@anon) Quit (Quit: ChatZilla 0.9.91.1 [Firefox 35.0.1/20150122214805])
20150129 22:48:34 <i-make-robots> heh.
20150129 22:50:01 <i-make-robots> huh. the component listener only fires some of the time, and it won't let me adjust the slider to the left.
20150129 22:54:58 <i-make-robots> Hrm. the programs aren't quitting right. In windows there's a lot of javaw.exe running in the background, sucking up CPU.
20150129 22:59:19 * zzuegg__ (~zzuegg___@anon) has joined #jogamp
20150129 23:00:42 * zzuegg_ (~zzuegg___@anon) Quit (Ping timeout: 245 seconds)
20150129 23:00:45 <rmk0> i-make-robots: you need to add a listener to shut everything down when the window closes
20150129 23:00:54 <rmk0> swing does nothing by default
20150129 23:01:04 <rmk0> suppose i should've added that
20150129 23:12:06 <i-make-robots> i got the setDefaultCloseOperation(), that seems to fix the unclosen.
20150129 23:12:16 <i-make-robots> the resizing is still being wonky.
20150129 23:13:56 <i-make-robots> like... i size too small and the gl disappears completely, while the rest of the window start to draw f'd up (graphic artifacts, 5th dimension garbage)
20150130 00:02:37 <i-make-robots> ok, I'm getting really frustrated here with the resize problem. Any hints, please?
20150130 00:02:48 <sgothel> awt / swing ?
20150130 00:03:07 <sgothel> look at NewtCanvasAWT and its usage of AWTParent... something ..
20150130 00:03:22 <sgothel> the latter uses some AWT listener to propagate some details to NEWT
20150130 00:03:28 <sgothel> (like resize .. AFAIK)
20150130 00:03:55 <sgothel> AWTParentWindowAdapter
20150130 00:05:19 <i-make-robots> I have a horizontal splitter and it's not calling updates correctly to the jpanel with the glcanvas.
20150130 00:05:33 <i-make-robots> when i resize the parent window, things are ok.
20150130 00:05:44 <i-make-robots> (some visual artifacts while moving, but they get cleaned up)
20150130 00:05:46 <sgothel> sounds like heavy- lightweight mix issues ..
20150130 00:06:02 <sgothel> we have unit test demonstrating this erroneous behavior ..
20150130 00:06:03 <i-make-robots> I'll pastebin what I've got.
20150130 00:06:09 <sgothel> no thx
20150130 00:06:21 <sgothel> but look in our unit test ..
20150130 00:06:35 <sgothel> heavy- lightweight mixing is always an issue
20150130 00:07:09 <sgothel> TestBug642JSplitPaneMixHwLw01AWT
20150130 00:07:21 <sgothel> TestJScrollPaneMixHwLw01AWT
20150130 00:07:42 <sgothel> jogl unit test package: com.jogamp.opengl.test.junit.jogl.awt
20150130 00:09:05 <i-make-robots> please forgive me. Long time C coder, Java pretty terrible noob. how do i tell when I'm mixing heavy and light?
20150130 00:09:18 <i-make-robots> (it tips over to one side, duh.)
20150130 00:09:39 <sgothel> swing us lightweight (sw rendering, no native window/peer)
20150130 00:09:51 <sgothel> where AWT like GLCanvas is heavy .. i.e. using a native window
20150130 00:10:32 <sgothel> if you must use lightweight and some overlay and other 'nice stuff' - then you need to use GLJPanel .. (lower performance ..)
20150130 00:11:16 <sgothel> an opaque GLCanvas should work .. or NewtCanvasAWT .. but has issues w/ real UI mixing of said light/heavy weight stuff
20150130 00:11:34 <sgothel> the latter may work on platform-1 .. but then stops working on another .. etc
20150130 00:11:41 <sgothel> a world of pain :)
20150130 00:12:03 <sgothel> see the referenced unit tests .. I have included a few remarks .. etc
20150130 00:15:59 <i-make-robots> right now i don't even know where to find those referencs.
20150130 00:16:10 <sgothel> jogl git repo
20150130 00:16:47 <sgothel> jogl/src/test/com/jogamp/opengl/test/junit/jogl/awt/TestBug642JSplitPaneMixHwLw01AWT.java
20150130 00:16:49 <i-make-robots> got it
20150130 00:20:23 <i-make-robots> if I understand what you're saying... using a splitpane right now is still a bad idea, the code needs to mature a bit more?
20150130 00:23:01 <i-make-robots> rmk0 was super helpful with a demo earlier, it had a jpanle with a glcanvas on the left and some swing components on the right. only problem was it wouldn't resize ok. Spent the last several hours trying to figure it out.
20150130 03:07:15 * zzuegg__ (~zzuegg___@anon) Quit (Ping timeout: 264 seconds)
20150130 03:22:43 * zzuegg__ (~zzuegg___@anon) has joined #jogamp
20150130 05:05:22 -jogamp- Continue @ http://jogamp.org/log/irc/jogamp_20150130050522.html