#jogamp @ irc.freenode.net - 20170322 05:06:23 (UTC)
20170322 05:06:23 -jogamp- Previous @ http://jogamp.org/log/irc/jogamp_20170321050623.html
20170322 05:06:23 -jogamp- This channel is logged @ http://jogamp.org/log/irc/jogamp_20170322050623.html
20170322 05:27:50 * monsieur_max (~maxime@anon) has joined #jogamp
20170322 07:17:44 * monsieur_max (~maxime@anon) Quit (Quit: Leaving.)
20170322 07:45:24 * elect__ (~elect@anon) has joined #jogamp
20170322 07:51:16 * elect__ (~elect@anon) Quit (Read error: Connection reset by peer)
20170322 07:51:44 * elect__ (~elect@anon) has joined #jogamp
20170322 08:07:43 <elect__> xranby, there is a guy on the forum asking for raspberry 3
20170322 08:40:38 <xranby> elect__: i have posted an answer
20170322 08:41:50 <elect__> xranby, very interesting, I think that should go somewhere into a wiki
20170322 08:42:57 <elect__> also it'd be nice to integrate those changes in 2.3.3
20170322 08:47:12 <xranby> we have a bugreport for it
20170322 08:47:45 <xranby> yes i have added all changes to the 2.3.3 list
20170322 08:48:25 <xranby> http://jogamp.org/wiki/index.php/SW_Tracking_Report_Objectives_for_the_release_2.3.3
20170322 09:11:12 <elect__> shame on me
20170322 09:11:45 <elect__> I just discovered how to inject gl commands from user input using glRunnable
20170322 09:11:49 <elect__> oh god
20170322 09:12:48 * monsieur_max (~maxime@anon) has joined #jogamp
20170322 09:15:30 <elect__> so easy
20170322 09:15:59 <elect__> I wish I discovered this a couple of years ago..
20170322 09:20:40 <elect__> https://github.com/java-opengl-labs/modern-jogl-examples/blob/master/src/main/kotlin/main/tut05/depthClamping.kt#L161-L169
20170322 09:22:13 <elect__> https://github.com/java-opengl-labs/modern-jogl-examples/blob/master/src/main/java/main/tut05/DepthClamping.java#L174-L185
20170322 10:01:19 <elect__> wanna see something awesome
20170322 10:01:59 <bruce-> show me!
20170322 10:02:53 <elect__> brought that code down to
20170322 10:02:54 <elect__> https://github.com/java-opengl-labs/modern-jogl-examples/blob/master/src/main/kotlin/main/tut05/depthClamping.kt#L162-L166
20170322 10:03:04 <elect__> kotlin is literally awesome
20170322 10:03:36 <elect__> the magic happens here https://github.com/java-opengl-labs/modern-jogl-examples/blob/master/src/main/kotlin/main/framework/util.kt
20170322 10:05:31 <bruce-> why do you need this exactly?
20170322 10:06:03 <elect__> to take down boilerplate code
20170322 10:06:31 <elect__> when I want to inject gl commands from the user input thread
20170322 10:06:41 <bruce-> oh
20170322 10:06:52 <elect__> without blocking the main rendering thread
20170322 10:07:08 <elect__> or doing something sick (I used to do for years until today..)
20170322 10:07:22 <bruce-> I now collect the inputs in the input thread
20170322 10:07:26 <elect__> like setting a boolean variable and do something accordingly in the display()
20170322 10:07:29 <bruce-> then the draw thread executes those
20170322 10:07:54 <elect__> can you show me something?
20170322 10:08:00 <elect__> I am curious
20170322 10:09:58 * hija (~petros@anon) Quit (Ping timeout: 264 seconds)
20170322 10:12:27 <elect__> bruce-,
20170322 10:27:20 <monsieur_max> same as bruce, inputs just queues action that'll be handled in the next game loop
20170322 10:30:01 <elect__> can you elaborate more
20170322 10:30:20 <elect__> what are they? Lambdas? How do you queue them? What do you use?
20170322 10:32:56 <bruce-> https://www.dropbox.com/s/0f3yg24c7knzn2x/Screenshot%202017-03-22%2011.32.42.png?dl=0
20170322 10:34:19 <elect__> thanks
20170322 10:36:09 <bruce-> so there is something that behind the scenes that handles all the buffered keyboard events right before calling draw()
20170322 10:36:44 <monsieur_max> elect__: on my side, this is a finite list of actions, you push on arrow up, or gamepad up, or anything that is mapped to up, it just put the Action.UP in a queue. In the draw loop, this action is handled by the game engine
20170322 10:36:47 <elect__> I see that essentially you search among keyboard.pressed for the element you want and execute it
20170322 10:36:57 <elect__> so it's an arbitrary order
20170322 10:37:30 <bruce-> no it is in the order of the keypresses
20170322 10:40:04 <elect__> ah right, in the setup you simply attach a lambda to the corresponding key
20170322 10:41:12 <elect__> cool, however, I see you are also using kotlin, which are your feedbacks so far?
20170322 10:42:01 <bruce-> I love it
20170322 10:44:56 <elect__> monsieur_max, so you basically use 'Action'.s as a function map, don't you?
20170322 10:47:52 <elect__> bruce-, small tip, that 'for(i in 0..16)' will loop 16 inclusive, if that is not your intention, change it to 15 or '0 until 16' or 'repeat(16){}'
20170322 10:48:32 <bruce-> I know :)
20170322 10:49:01 <elect__> ok
20170322 10:51:18 <bruce-> that code produces this btw: https://www.instagram.com/p/BQBtF7eDXhI/
20170322 10:51:54 * hija (~petros@anon) has joined #jogamp
20170322 10:53:34 <elect__> :D
20170322 11:02:23 * xranby1 (~xranby@anon) has joined #jogamp
20170322 11:18:53 * caelum19 (~Caelum@anon) has joined #jogamp
20170322 13:03:41 * caelum191 (~Caelum@anon) has joined #jogamp
20170322 13:05:28 * caelum19 (~Caelum@anon) Quit (Ping timeout: 240 seconds)
20170322 13:42:57 * hija (~petros@anon) Quit (Ping timeout: 240 seconds)
20170322 14:11:05 * caelum191 (~Caelum@anon) Quit (Ping timeout: 240 seconds)
20170322 14:13:33 * caelum19 (~Caelum@anon) has joined #jogamp
20170322 15:52:00 * caelum191 (~Caelum@anon) has joined #jogamp
20170322 15:53:05 * caelum19 (~Caelum@anon) Quit (Ping timeout: 240 seconds)
20170322 16:57:51 * monsieur_max (~maxime@anon) Quit (Quit: Leaving.)
20170322 16:59:14 * hija (~petros@anon) has joined #jogamp
20170322 17:05:20 * hija (~petros@anon) Quit (Ping timeout: 260 seconds)
20170322 17:23:11 * hija (~petros@anon) has joined #jogamp
20170322 18:06:13 * monsieur_max (~maxime@anon) has joined #jogamp
20170322 18:17:26 * elect__ (~elect@anon) Quit (Ping timeout: 260 seconds)
20170322 18:22:51 <xranby> bruce-: elect__: did using the jogamp fat jar solve all kotlin + jogl issues?
20170322 18:23:27 <xranby> i recall there was some issues that native code loaded using one classloader was unavailable to other classloaders
20170322 18:23:37 <xranby> however if everything is inside one jar...
20170322 18:23:44 <xranby> everything should work fine
20170322 18:24:22 <bruce-> I never had any problems with that
20170322 18:25:24 <bruce-> I am using building against jogl-all-main 2.3.2 in maven
20170322 18:25:56 * monsieur_max (~maxime@anon) Quit (Remote host closed the connection)
20170322 18:31:55 <xranby> awesome then!
20170322 18:40:51 * monsieur_max (~maxime@anon) has joined #jogamp
20170322 19:13:21 * monsieur_max (~maxime@anon) Quit (Remote host closed the connection)
20170322 19:47:34 * monsieur_max (~maxime@anon) has joined #jogamp
20170322 19:51:27 * hija (~petros@anon) Quit (Ping timeout: 240 seconds)
20170322 21:47:04 * hija (~petros@anon) has joined #jogamp
20170322 22:04:21 * hija (~petros@anon) Quit (Quit: Leaving.)
20170322 22:15:15 * monsieur_max (~maxime@anon) Quit (Quit: Leaving.)
20170322 22:29:49 * hija (~petros@anon) has joined #jogamp
20170322 22:39:48 * hija (~petros@anon) Quit (Ping timeout: 240 seconds)
20170323 01:45:43 * caelum191 (~Caelum@anon) Quit (Quit: Leaving.)
20170323 05:06:24 -jogamp- Continue @ http://jogamp.org/log/irc/jogamp_20170323050624.html