#jogamp @ irc.freenode.net - 20150710 05:06:24 (UTC)


20150710 05:06:24 -jogamp- Previous @ http://jogamp.org/log/irc/jogamp_20150709050624.html
20150710 05:06:24 -jogamp- This channel is logged @ http://jogamp.org/log/irc/jogamp_20150710050624.html
20150710 05:49:36 * elect (~elect@anon) has joined #jogamp
20150710 05:50:01 <elect> hi
20150710 06:21:03 <jk4> hi
20150710 06:43:14 * monsieur_max (~maxime@anon) has joined #jogamp
20150710 06:55:10 <xranby_> greetings
20150710 07:34:07 * eclesia (~husky@anon) has joined #jogamp
20150710 07:34:16 <eclesia> good morning
20150710 08:47:47 * gouessej (5ee4b442@anon) has joined #jogamp
20150710 08:47:54 <gouessej> Hi
20150710 08:48:37 <gouessej> xranby: LibGDX is a bit in an unstable state on my repository, it should be better tomorrow
20150710 08:49:02 <gouessej> xranby: I'm rewriting tons of code
20150710 08:49:16 <gouessej> xranby: a lot of classes
20150710 08:49:52 <gouessej> xranby: in order to make it work with GLJPanel and to obtain a fully AWT-free solution
20150710 08:50:23 <gouessej> xranby: When I'm done, feel free to give it a try
20150710 08:50:34 * gouessej (5ee4b442@anon) Quit (Client Quit)
20150710 09:58:28 <xranby> https://twitter.com/xranby/status/619444268780883968 <- Processing 3 running for the first time on a Raspberry Pi using Eric Anholt's Mesa3D VC4 OpenGL 2 driver!
20150710 09:59:35 <xranby> using jogamp jogl of course!
20150710 10:00:24 <elect> :)
20150710 10:01:35 <xranby> thanks to the mesa3d vc4 driver, the raspberry pi suddenly turned from a mobile opengl es 2 into a "desktop" opengl 2 system :)
20150710 10:01:53 <xranby> free software for the win
20150710 10:55:02 <xranby> http://labb.zafena.se/?p=972
20150710 11:33:20 <eclesia> yeah, finally starting to parse preprocessor C instruction :) . let's hope to have a C to Java transcoder sometime in the futur
20150710 11:37:31 <xranby> eclesia: yay!
20150710 11:37:57 <xranby> do you plan to recompile the linux kernel using java?
20150710 11:39:23 <eclesia> xranby: you made a typo error : recompile>rewrite
20150710 11:40:03 <xranby> ok.. let me rephrase... do you plan to rewrite the linux kernel using java?
20150710 11:40:26 <eclesia> ^^ perhaps one day, but that won't be linux
20150710 11:41:42 * xranby is happy today, finally having a SoC running using a free software GPU driver
20150710 11:42:00 <xranby> that implements OpenGL 2
20150710 11:42:22 <xranby> with working hardware acceleration
20150710 11:43:15 <monsieur_max> xranby : yep, great news :)
20150710 11:43:54 <zubzub> does it support wayland?
20150710 11:44:14 <zubzub> it's mesa right?
20150710 11:44:18 <zubzub> so it should
20150710 11:46:22 <xranby> zubzub: maybe.. not tested, we have only tested compiling mesa3d using X11
20150710 11:49:35 <zubzub> does the driver also support gbm/kms?
20150710 11:49:45 <zubzub> or is it an X11 driver?
20150710 11:53:06 * gouessej (5ee4b442@anon) has joined #jogamp
20150710 11:53:21 <gouessej> xranby: Good job :)
20150710 11:55:33 <gouessej> Has anybody tested this hardware with JOGL? https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME/open-source-hardware
20150710 11:55:42 <gouessej> "dual-core Mali 400 GPU"
20150710 11:56:17 <gouessej> It's used on the Internet Brick
20150710 12:00:03 <gouessej> eclesia: If you rewrite the GNU Linux kernel, you'll have to put it under GPL
20150710 12:00:35 <eclesia> won't be linux
20150710 12:01:22 <gouessej> eclesia: If it is used as a source of "inspiration", as it uses a viral license, you'll have to put it under GPL
20150710 12:01:26 <eclesia> beside I aim for a vm on HelenOS (http://www.helenos.org)
20150710 12:02:23 <gouessej> HelenOS is partially under GPL :)
20150710 12:11:58 * elect (~elect@anon) Quit (Ping timeout: 248 seconds)
20150710 13:04:53 * gouessej (5ee4b442@anon) Quit (Quit: Page closed)
20150710 14:31:34 * monsieur_max (~maxime@anon) Quit (Quit: Leaving.)
20150710 14:41:09 * odinsbane (~matt@anon) has left #jogamp
20150710 16:04:24 * eclesia (~husky@anon) has left #jogamp
20150710 18:24:51 * odin_ (~Odin@anon) has joined #jogamp
20150710 20:16:15 * juank_prada (~juank_pra@anon) has joined #jogamp
20150710 20:44:33 <juank_prada> Hi guys I am not sure if this is the place to ask about Nifty's JoglBatchRenderBackendFactory
20150710 20:44:56 <juank_prada> Or should I ask my question directly at the nifty's channel?
20150710 20:59:14 <xranby_> juank_prada: ask and maybe we can answer
20150710 21:13:22 <rmk0> doesn't the nifty author appear here frequently?
20150710 21:14:13 <xranby_> void256 is here from time to time
20150710 21:14:23 <rmk0> right
20150710 21:34:49 <juank_prada> well, I am using this glDrawElements(GL2.GL_LINES, this.indicesCount, GL2.GL_UNSIGNED_INT, 0L) to draw some lines
20150710 21:35:13 <juank_prada> but whenever I initilize nifty gui with the JoglBatchRenderBackendFactory the Lines dont get displayed
20150710 21:35:39 <juank_prada> all other things that are rendered with glDrawElements(GL2.GL_TRIANGLES, this.indicesCount, GL2.GL_UNSIGNED_INT, 0L) does
20150710 21:36:11 <juank_prada> I know the line rendering is working as I can see the lines when I comment out the code related to nifty
20150710 21:36:58 <juank_prada> so I was wondering if there was something I should do with nifty in order to get the lines rendered
20150710 22:24:39 <xranby_> juank_prada: do you have access to an opengl debugger?
20150710 22:25:00 <xranby_> sounds like nifty gui has altered the opengl statemachine
20150710 22:25:21 <xranby_> and you need to re-setup the statemachine before you draw your lines
20150710 22:30:57 <xranby_> juank_prada: since you are using VBO's maybe you need to re-bind your VBO?
20150710 22:56:05 <juank_prada> xranby_ I am rebinding it. I only initialize a Nifty Object in the init method of a GLEventListener implementation and I do not do anything more in the render display method related to Nifty
20150710 22:56:59 <juank_prada> so in the Display method I only deal directly with OpenGL (no nifty there)
20150710 22:57:34 <xranby_> juank_prada: as you say, your glDrawElements do not render the lines thus the opengl statemachine must have changed
20150710 22:57:51 <xranby_> i cant say whats wrong unless i can see your code
20150710 23:00:24 <juank_prada> so this is my init method of the GLEventListener impl > http://pastebin.com/UAE4XXFe
20150710 23:01:11 <xranby_> juank_prada: can you post your project into a git so that i can compile and test it?
20150710 23:01:37 <juank_prada> yup
20150710 23:01:43 <juank_prada> just a sec
20150710 23:01:51 <juank_prada> i think its a private repo at the moment
20150710 23:02:16 <xranby_> you need to publish it using a public domain or a free software license
20150710 23:02:24 <xranby_> else i can get in trouble looking at it
20150710 23:04:05 <juank_prada> I really dont know how to do that :P
20150710 23:04:21 <juank_prada> I dont mind it being free software
20150710 23:04:29 <juank_prada> but I dont think its in a good state to be released
20150710 23:04:45 <juank_prada> how should I do that?
20150710 23:06:51 <juank_prada> you can find the repo here: https://bitbucket.org/juankprada/javarpggameengine
20150710 23:07:00 <juank_prada> but I am not sure about licensing
20150710 23:07:04 <xranby_> juank_prada: you do that by writing what license you use or if your work is public domain do like this http://unlicense.org/
20150710 23:07:31 <xranby_> the easiest way it to put a file called LICENSE inside your repository
20150710 23:07:49 <xranby_> and write in that file the license you choose
20150710 23:11:40 <xranby_> juank_prada: the problem for me is that if you do not have any license then its "copyrighted all right reserved" by default
20150710 23:11:54 <juank_prada> xranby_,is it?
20150710 23:12:03 <xranby_> yes you are the author
20150710 23:12:08 <juank_prada> well, I am putting MIT license there
20150710 23:12:26 <juank_prada> my only concern here is I have some sample images I have that are grabbed from opengame art
20150710 23:12:40 <xranby_> well you have to obay the license of those images
20150710 23:12:50 <juank_prada> i think they are creative commons
20150710 23:12:59 <xranby_> usually you explain in the licence file that those images are creative commons
20150710 23:13:04 <juank_prada> ok
20150710 23:16:49 <juank_prada> xranby_, well right now the code has the LICENSE file
20150710 23:17:05 <juank_prada> i am looking for the images license so that I can specify that
20150710 23:17:47 <xranby_> juank_prada: for example you may look at jogamp jogl's license.txt that has passed license review https://jogamp.org/git/?p=jogl.git;a=blob;f=LICENSE.txt;h=02d605cd3a6d38100c58904f1f44e9e7f054ac4c;hb=HEAD
20150710 23:18:12 <xranby_> how you should format the license file to list multiple license sources
20150710 23:19:48 <xranby_> having a full auditable log in a git tree is a requirement for some licenses
20150710 23:20:35 <xranby_> ok thank you
20150710 23:20:42 <xranby_> https://bitbucket.org/juankprada/javarpggameengine/src/1eb837c56ea897d7d8c32efcb6fcaf7af692973b/LICENSE.txt?at=master
20150710 23:21:02 <xranby_> i will take a look and see if i can compile your code and test
20150710 23:27:24 <juank_prada> I added some info on the assets and the license used there
20150710 23:27:36 <juank_prada> thanks for taking the time to check on the code
20150710 23:29:02 <xranby_> juank_prada: you added nifty quite recently? the ant build.xml do not yet add the includes when running ant compile.game if i understand it correctly
20150710 23:29:21 <juank_prada> yes
20150710 23:29:26 <juank_prada> I am actually not using ant there
20150710 23:29:27 <xranby_> i have to fix the build.xml so that i can compile it
20150710 23:29:35 <xranby_> how do you compile it?
20150710 23:29:38 <juank_prada> the build script is still under dev
20150710 23:29:42 <juank_prada> I use eclipse
20150710 23:29:57 <xranby_> ok
20150710 23:30:03 <juank_prada> and add the make/lib/* jars to the classpath
20150710 23:30:36 <juank_prada> and i set the com.jprada.game.GameApp as the main class
20150710 23:32:18 <juank_prada> Thats why I said it is not ready to be released :P
20150710 23:34:08 <xranby_> juank_prada: no worries, look all right
20150710 23:34:23 <xranby_> have have to fetch openjdk 8 or java 8 to build it
20150710 23:34:32 <xranby_> only have openjdk-7 installed on this machine
20150710 23:35:25 <juank_prada> oh yes
20150710 23:40:18 <xranby_> sounds like a good day to test zulu
20150710 23:40:21 <xranby_> http://www.azulsystems.com/products/zulu/downloads
20150710 23:40:45 <xranby_> openjdk 8 built and packaged by azulsystems
20150710 23:41:08 <xranby_> for use on this debian/ubuntu system that do not have openjdk-8
20150710 23:44:34 <juank_prada> never actually heard of it. Looks good
20150710 23:44:44 <xranby_> its openjdk, it is good :)
20150710 23:44:48 <juank_prada> is there any difference between it and Oracle JDK?
20150710 23:44:52 <xranby_> yes
20150710 23:44:58 <juank_prada> I mean
20150710 23:45:06 <xranby_> you do not need to agree with the oracle binary license
20150710 23:45:12 <juank_prada> awesome
20150710 23:45:33 <xranby_> this work is covered by teh GPLv2+classpath exception instead
20150710 23:45:42 <juank_prada> so, is it pretty much like the Fedora openjdk but built for all (win, lin, mac) platforms?
20150710 23:45:46 <xranby_> yes
20150710 23:45:50 <juank_prada> owesome
20150710 23:45:53 <juank_prada> awesome
20150710 23:46:14 <juank_prada> uninstalling Oracle JDK in 3, 2, 1...
20150710 23:46:28 <juank_prada> I didnt know of that until now
20150710 23:46:49 <xranby_> happy to share the knowledge
20150710 23:49:10 <xranby_> azul packages openjdk 8
20150710 23:49:44 <juank_prada> I am downloading it right now
20150710 23:49:46 <xranby_> if you want openjdk 7 and 6 builds then you may take a look at alex kaskos unofficial builds https://github.com/alexkasko/openjdk-unofficial-builds
20150710 23:50:12 <juank_prada> thank you!
20150710 23:52:33 <xranby_> java -version
20150710 23:52:34 <xranby_> openjdk version "1.8.0_45"
20150710 23:52:34 <xranby_> OpenJDK Runtime Environment (Zulu 8.7.0.5-linux64) (build 1.8.0_45-b14)
20150710 23:52:34 <xranby_> OpenJDK 64-Bit Server VM (Zulu 8.7.0.5-linux64) (build 25.45-b02, mixed mode)
20150710 23:53:58 <juank_prada> xranby_, just one question. If you have linux, why installing Zulu instead of the repositories opendjk?
20150710 23:54:41 <xranby_> for example i am on a ubuntu 14.04 system right now, openjdk-8-jdk only exist if i update to a newver ubuntu release
20150710 23:54:54 <juank_prada> got it
20150710 23:55:10 <juank_prada> and a PPA isnt an option? I am a fedora user
20150710 23:55:16 <juank_prada> so i know little about PPA
20150710 23:57:42 <xranby_> it takes human resources to maintain custom ppa's
20150710 23:58:11 <xranby_> and there is no voluntary maintainers hat provide openjdk ppa's except test builds
20150710 23:58:18 <xranby_> and you do not want to use the test builds
20150710 23:58:30 <juank_prada> got it
20150710 23:59:11 <xranby_> the security team provides security updates for the openjdk-6 & 7 & 8 packaes
20150710 23:59:30 <xranby_> in ubuntu.. and they do not want to patch more archives than they have agreed on
20150710 23:59:42 <xranby_> thus they do not backport openjdk 8 for fun to odler versions
20150710 23:59:57 <xranby_> of ubuntu
20150711 00:00:02 <xranby_> same with debian
20150711 00:01:03 <xranby_> thats why you only find the openjdk-8 packages in the latest versions of ubuntu
20150711 00:01:43 <xranby_> as long as your distribution provides security updates, openjdk 6 is still supported!
20150711 00:01:59 <xranby_> same with openjdk 7
20150711 00:03:09 <xranby_> it was really convinient for me to download the azul deb and install it :)
20150711 00:07:11 <xranby_> juank_prada: cool i see a fire, to NPC's and an exit button!
20150711 00:07:15 <xranby_> two
20150711 00:07:51 <xranby_> thus i have your code running
20150711 00:08:35 <juank_prada> swesome :D
20150711 00:08:41 <juank_prada> *awesome
20150711 00:09:55 <xranby_> ok lets discuss those missing lines
20150711 00:13:41 <juank_prada> ok so, When the game is running, if you press the Shift key, some lines (forming squares) around the characters should appear
20150711 00:14:04 <juank_prada> that rendering is in com.jprada.core.states.WorldMapState
20150711 00:14:14 <juank_prada> in the OnRender method
20150711 00:14:36 <juank_prada> I know its not efficient at all the way it is there
20150711 00:15:37 <xranby_> i have to test something... i have a raspberry pi here next to me with a brand new mesa3d driver that implements opengl 2
20150711 00:16:05 <xranby_> and you game is using opengl 2 using the GL2 profile ^_^
20150711 00:17:31 <xranby_> juank_prada: do you remember which jogamp version you used?
20150711 00:17:48 <xranby_> i can see taht you are not yet using the 2.3.1 version
20150711 00:20:09 <juank_prada> yes I think i am still with 2.2.0
20150711 00:22:41 <juank_prada> is it working there?
20150711 00:27:31 <xranby_> running java -jar juank_prada-RPG.jar on the pi as we speak
20150711 00:28:06 <xranby_> hmm. i need to update.. to sidestep a bug in GLX initialization seen on arm 32 systems..
20150711 00:28:41 <xranby_> ok never mind this for now
20150711 00:30:09 <xranby_> when i hold down the shift key.. indeed nothing happens :)
20150711 00:31:16 <xranby_> the only thing i can see is Pressed Tab and Released Tab in the console
20150711 00:37:07 * xranby_ loves git
20150711 00:37:41 <xranby_> checked out the v2.2.0 sources, patched it for the bug and compile a version to test on 32 bit arm
20150711 00:42:24 <xranby_> juank_prada: it almost ran on a raspberry pi.. you use GL2 in ShaderProgram.java line 44
20150711 00:42:26 <xranby_> GL3
20150711 00:43:13 <xranby_> i think it is a typo in the code, you have gl2 everywhere else
20150711 00:51:10 <xranby_> juank_prada: dude it is working!
20150711 00:51:21 <xranby_> i have your game running at 20fps on the raspberry pi :)
20150711 00:51:26 <xranby_> 25fps
20150711 00:51:54 <xranby_> with the fire effect and everything
20150711 00:58:46 <juank_prada> that is awesome!!
20150711 00:58:58 <xranby_> juank_prada: i will push fixes found into https://bitbucket.org/xranby/javarpggameengine/commits/all
20150711 00:59:01 <juank_prada> Can you share a sshot? :D
20150711 00:59:16 <xranby_> i am rechaging my phone to make one ^_^
20150711 01:00:12 <juank_prada> so about the shit key action. If you comment out the lines 369 to 379 in com.jprada.core.GameWindow
20150711 01:00:40 <juank_prada> and then comment out every nifty line in com.jprada.core.states.WorldMapState
20150711 01:00:57 <juank_prada> and execute the game again
20150711 01:01:16 <juank_prada> you will see the lines I am talking about when you press and hold Shift
20150711 01:07:11 <xranby_> juank_prada: http://labb.zafena.se/jogamp/juank_prada/
20150711 01:07:55 <xranby_> there you have a screenshot of your game running on the raspbery pi 2 using eric anholts mesa3d vc4 opengl 2 driver
20150711 01:11:33 <juank_prada> that is great!
20150711 01:11:56 <juank_prada> its exciting!
20150711 01:16:42 <xranby_> juank_prada: i have added a readme how to reproduce the visuals :)
20150711 01:21:30 <juank_prada> good!!
20150711 01:26:43 <xranby_> juank_prada: i will not have time to look into your line issue unfortunately
20150711 01:26:53 <xranby_> i will spend the weekend on a remote island
20150711 01:27:40 <xranby_> i can send you the pull request that made it work on the raspberry pi
20150711 01:28:50 <xranby_> juank_prada: pull request sent
20150711 01:29:01 <xranby_> https://bitbucket.org/juankprada/javarpggameengine/pull-request/1/shaderprogram-fix-gl3-gl2-typo/diff
20150711 01:29:04 <juank_prada> thanks
20150711 01:29:17 <juank_prada> no problem at all with line issue
20150711 01:29:27 <juank_prada> thanks for making it work on the raspberry pi
20150711 01:29:40 <juank_prada> and endjoy the island!
20150711 05:06:24 -jogamp- Continue @ http://jogamp.org/log/irc/jogamp_20150711050624.html