#jogamp @ irc.freenode.net - 20141013 05:05:55 (UTC)


20141013 05:05:55 -jogamp- Previous @ http://jogamp.org/log/irc/jogamp_20141012050555.html
20141013 05:05:55 -jogamp- This channel is logged @ http://jogamp.org/log/irc/jogamp_20141013050555.html
20141013 06:13:51 * monsieur_max (~maxime@anon) has joined #jogamp
20141013 06:45:02 * monsieur_max (~maxime@anon) Quit (Quit: Leaving.)
20141013 06:51:47 * monsieur_max (~maxime@anon) has joined #jogamp
20141013 07:20:24 * monsieur_max (~maxime@anon) Quit (Read error: Connection reset by peer)
20141013 08:13:31 <zubzub> xranby: have you succeeded in building openjd8 on arm soft float?
20141013 08:17:29 * jvanek (jvanek@anon) has joined #jogamp
20141013 08:22:46 <zubzub> I get strange make errors when I try to cross compile
20141013 08:28:23 <xranby> zubzub: what hardware do you target that require soft float?
20141013 08:28:47 <xranby> most arm linux distributions have now switched from armel to armhf
20141013 08:29:18 <xranby> personally i do my softfloat compiles w/o cross compilation
20141013 08:29:29 <xranby> because cross compiling openjdk 8 can be tricky
20141013 08:30:04 <xranby> zubzub: what kind of errors do you get btw?
20141013 08:30:08 <zubzub> xranby: this is what I get http://sprunge.us/fALO
20141013 08:31:21 <xranby> zubzub: gmake --version = ?
20141013 08:31:32 <zubzub> xranby: our hardware is armhf but the retarded OS guys downstairs made the whole softwarestack armel
20141013 08:31:48 <zubzub> because they like bad performance
20141013 08:32:25 <xranby> well.. people who use beagleboard tend to still use armel because Ti only released armel GPU drivers
20141013 08:34:27 <zubzub> xranby: does that error ring any bell?
20141013 08:34:40 <zubzub> looks like it interpretes some version string as seperate flags
20141013 08:36:20 <xranby> zubzub: the icedtea project has only recently enabled openjdk 8 arm buildbots
20141013 08:36:47 <zubzub> are there any prebuild packages I can find?
20141013 08:37:21 <zubzub> gmake --version
20141013 08:37:21 <zubzub> GNU Make 4.1
20141013 08:37:21 <zubzub> Built for x86_64-pc-linux-gnu
20141013 08:37:31 <xranby> i have the armel builder here at my desk
20141013 08:37:32 <xranby> let me fix the configure build errors for this machine
20141013 08:37:32 <xranby> and let it build openjdk 8
20141013 08:37:32 <xranby> http://builder.classpath.org/icedtea/buildbot/builders/icedtea8-squeeze-armv5tel-quick
20141013 08:37:32 <xranby> then we can compare your cross compile results against this native compile
20141013 08:37:32 <xranby> no
20141013 08:37:54 <xranby> zubzub: you error log looks like it is missing some env variable
20141013 08:38:10 <xranby> thus gnu make treats your jdk path as options
20141013 08:38:32 <xranby> cd linux_arm_compiler1/product && /usr/bin/gmake VERBOSE="" LOG_LEVEL="debug" -R -I /home/zubzub/hg/jdk8u20/make/common -rRw -I/home/zubzub/hg/jdk8u20/make/common -I/home/zubzub/hg/jdk8u20/make/common -I/home/zubzub/hg/jdk8u20/make/common -I/home/zubzub/hg/jdk8u20/make/common
20141013 08:38:39 <xranby> gmake[5]: Entering directory '/home/zubzub/hg/jdk8u20/build/linux-arm-normal-client-release/hotspot/linux_arm_compiler1/product'
20141013 08:38:46 <xranby> /usr/bin/gmake: invalid option -- '8'
20141013 08:38:52 <xranby> /usr/bin/gmake: invalid option -- 'u'
20141013 08:38:54 <xranby> ...
20141013 08:39:07 <xranby> i cant explain why it got the jdk path as options
20141013 08:39:23 <xranby> the last command line looks ok
20141013 08:39:29 <zubzub> http://hastebin.com/raw/godurasoqi
20141013 08:39:37 <zubzub> that's what I use
20141013 08:39:47 <zubzub> zero instead of client though
20141013 08:45:24 * Eclesia (~eclesia@anon) has joined #jogamp
20141013 08:46:19 <Eclesia> good morning
20141013 08:48:33 <xranby> zubzub: debian has one openjdk 8 armel package in the "unstable" https://buildd.debian.org/status/package.php?p=openjdk-8&suite=unstable
20141013 08:48:33 <xranby> zubzub: you may want to try that binary package
20141013 08:49:06 <xranby> Eclesia: good morning!
20141013 08:49:33 <xranby> Eclesia: i have a quite for you "reimplementing the wheel is not the same thing as reinventing the wheel"
20141013 08:49:58 <xranby> quote
20141013 08:52:20 <Eclesia> xranby: nice one ^^
20141013 08:54:14 <xranby> Eclesia: i will keep this quote ready every time someone asks me to jump on the legacy bandwagon
20141013 08:54:18 <zubzub> hmmm xranby how do I download it :s
20141013 08:54:25 <zubzub> I can't seem to find a dld link
20141013 08:54:50 <xranby> zubzub: you can install it from the debian "sid" repositorys
20141013 08:56:00 <xranby> zubzub: or you can use the debian web interface https://packages.debian.org/sid/openjdk-8-jdk
20141013 08:56:19 <xranby> bit its tiresome to download all packages and dependencies that way
20141013 08:57:34 * hija (~hija@anon) has joined #jogamp
20141013 08:58:20 <zubzub> well we already have openjdk 7 running on our devices
20141013 08:58:28 <zubzub> not sure if a lot of deps are added
20141013 08:58:43 <xranby> zubzub: i recommend that you use debian apt pinning
20141013 08:59:10 <xranby> http://www.raspberrypi.org/forums/viewtopic.php?p=375741&sid=0eb5edc8077e1082cd00deb9738b870d#p375741 <- instructions and example
20141013 08:59:15 <xranby> that would allow you then to do
20141013 08:59:29 <xranby> apt-get install -t sid openjdk-8-jdk
20141013 08:59:44 <zubzub> I already dld it :)
20141013 08:59:48 <xranby> to install openjdk-8-jdk from sid while keeping the rest of the system on the stable branch
20141013 08:59:53 <zubzub> but we're not using debian on our devices though
20141013 09:00:23 <zubzub> we're using poky linux
20141013 09:00:24 <xranby> then make a tarball of /usr/lib/jvm/openjdk-8-jdk-armel and copy it to your device
20141013 09:00:39 <xranby> that usually work
20141013 09:01:07 <zubzub> yeah that's the plan
20141013 09:01:09 <xranby> zubzub: consider using jamvm in combination with openjdk
20141013 09:01:28 <xranby> java -jamvm -version
20141013 09:01:54 <xranby> zubzub: depending on if your device support thumb2 or not
20141013 09:02:10 <xranby> jamvm is faster on the raspberry pi compared to zero
20141013 09:02:23 <zubzub> ic
20141013 09:02:29 <zubzub> what about stability?
20141013 09:02:37 <xranby> jamvm is very stabl
20141013 09:02:39 <xranby> stable
20141013 09:03:23 <zubzub> ok
20141013 09:03:29 <zubzub> I'll see if we can get something working
20141013 09:03:33 <zubzub> thanks for the help!
20141013 09:04:35 <xranby> no problem
20141013 09:09:03 <Eclesia> Is there a way to mimic a specific GL instance for tests ? for tests against GL1, GL2, GLES etc...
20141013 09:42:55 <xranby> Eclesia: to test different GLSL instances or to tet GL function calls?
20141013 09:43:10 <Eclesia> xranby: both
20141013 09:43:40 <xranby> to test GL function calls i would assume requesting the profile would be enough (tm)
20141013 09:44:01 <Eclesia> nope, it always return the highest instance
20141013 09:44:05 <zubzub> drawable.getGL().getGLxy()
20141013 09:44:33 <zubzub> ah profile
20141013 09:44:35 <zubzub> nvrmnd
20141013 10:06:14 <zubzub> xranby: turns out the company *does* have oracle licences
20141013 10:06:28 <zubzub> the managers (yes plural) weren't aware
20141013 10:06:51 <zubzub> so that's 2 days wasted
20141013 10:06:54 <zubzub> and back to oracle jre
20141013 10:08:57 * monsieur_max (~maxime@anon) has joined #jogamp
20141013 10:10:00 <xranby> zubzub: did the debian openjdk 8 binarys work?
20141013 10:10:58 <xranby> zubzub: i am interested because its good to know how the icedtea/openjdk builds work in practise
20141013 10:12:44 <zubzub> well to test it we first need to probably collect the extracted package on an armel debian device and copy it over to our own poky armel device
20141013 10:12:53 <zubzub> s/probably/properly
20141013 10:13:13 <zubzub> for now we don't have an debian armel device
20141013 10:13:24 <zubzub> but a dev'er is talking about trying it out on his rpi with armel debian
20141013 10:13:27 <xranby> zubzub: when you build for poky, did you consider using the meta-oe build recipes?
20141013 10:13:51 <zubzub> I don't know what you are talking about :p
20141013 10:13:53 <xranby> sorry. i mean meta-ajva
20141013 10:13:54 <xranby> https://github.com/woglinde/meta-java
20141013 10:14:10 <xranby> this is build recipes to be used by openembedded, yocto, poky
20141013 10:14:15 <xranby> and so on to build openjdk
20141013 10:14:53 <xranby> these cross compile build scripts are known to work
20141013 10:15:04 <zubzub> aha
20141013 10:15:09 <zubzub> I'll let the OS team know
20141013 10:15:47 <xranby> Henning Heinold uses these to package openjdk for use by the german police departments embedded heads up displays in the policecars
20141013 10:16:00 <zubzub> ok so they work :p
20141013 10:16:06 <zubzub> going for food now
20141013 10:16:08 <zubzub> thanks for the tip!
20141013 10:28:42 <xranby> zubzub: you can see on page2 of this pdf what the openjdk "carpc" looks like: http://www.pressebox.de/attachment/377487/Mit_Tux_auf_Streife.pdf
20141013 10:30:19 <xranby> used by the Brandenburger Polize
20141013 10:40:29 * xranby (~xranby@anon) Quit (Ping timeout: 272 seconds)
20141013 10:42:50 * xranby (~xranby@anon) has joined #jogamp
20141013 12:19:28 <zubzub> xranby: what is your job actually
20141013 12:19:37 * doev (~doev@anon) has joined #jogamp
20141013 12:19:38 <zubzub> do you work for redhat/openjdk/icedtea?
20141013 12:19:55 <xranby> zubzub: i work at www.zafena.se
20141013 12:20:27 <xranby> zubzub: we use openjdk in therse http://www.zafena.se/English/Connector
20141013 12:20:29 <zubzub> nice website :P
20141013 12:20:32 <xranby> in these
20141013 12:21:23 <zubzub> <- http://www.prodatamobility.com/
20141013 12:22:15 <xranby> during one partial government funded project i explored running openjdk in various embedded arm setups, sanging from beagleboards to plugcomputers http://www.zafena.se/Svenska/Acreo2007
20141013 12:22:21 <xranby> ranging
20141013 12:23:21 <zubzub> you should write your website in english
20141013 12:23:47 <xranby> thus i have collaborated a lot with the icedtea project to test various jvm implementations on ARM devices
20141013 12:23:59 <xranby> i have a development blog at http://labb.zafena.se
20141013 12:24:02 <xranby> in english
20141013 12:24:14 <zubzub> I almost though you worked for red hat
20141013 12:24:25 <zubzub> looks like I'm not the only one :)
20141013 12:24:37 <xranby> indeed
20141013 12:25:06 <xranby> ARM staff thought the same because i was working heavily getting the LLVM Shark JIT working
20141013 12:25:15 <xranby> i still run an ARMv5 LLVM buildbot
20141013 12:27:11 <zubzub> well at least if you ever want to work for red hat it shouldn't be that much of a problem :p
20141013 12:28:39 <xranby> zubzub: do you have public transport installations running openjdk used in sweden?
20141013 12:28:47 <Eclesia> question : is it possible to have a GL3 which doesn't support GLSL ?
20141013 12:28:53 <zubzub> xranby: don't think so
20141013 12:29:03 <zubzub> xranby: afaik we're not active in sweden
20141013 12:29:08 <zubzub> xranby: certainly not with java
20141013 12:29:21 <xranby> zubzub: do you use jogamp on your latest versions?
20141013 12:29:33 <zubzub> no
20141013 12:29:40 <zubzub> I use jogamp for my own private projects :)
20141013 12:29:53 <xranby> ok
20141013 12:30:07 <zubzub> most java dev's here do not exceed the level of intermediate junior
20141013 12:30:17 <zubzub> even though the have 6 years of "experience"
20141013 12:30:22 <xranby> i still do not understand then when you use openjdk in your products
20141013 12:30:31 <zubzub> licensing costs
20141013 12:30:40 <zubzub> it costs us 5 dollar for each device
20141013 12:30:45 <zubzub> if we use oracle
20141013 12:30:59 <xranby> i see
20141013 12:31:00 <zubzub> and the current project has 20 000 devices
20141013 12:33:39 <rmk0> Eclesia: nope
20141013 12:33:53 <Eclesia> thks
20141013 12:36:02 * hija (~hija@anon) Quit (Quit: hija)
20141013 12:59:28 * xranby (~xranby@anon) Quit (Read error: Connection reset by peer)
20141013 12:59:35 * xranby (~xranby@anon) has joined #jogamp
20141013 13:27:33 * hija (~hija@anon) has joined #jogamp
20141013 13:29:39 * hija (~hija@anon) Quit (Client Quit)
20141013 13:44:54 <Eclesia> Does someone has a webpage/doc with a table of all GLSL functions and minimum version ?
20141013 13:45:40 <zubzub> there are sheet cheats
20141013 13:45:46 <zubzub> *cheat sheets
20141013 13:45:50 <Eclesia> that would be great
20141013 13:45:54 <Eclesia> you have a link ?
20141013 13:45:59 <zubzub> https://www.khronos.org/opengles/sdk/docs/reference_cards/OpenGL-ES-2_0-Reference-card.pdf
20141013 13:46:10 <zubzub> https://www.khronos.org/files/opengles3-quick-reference-card.pdf
20141013 13:46:46 <zubzub> there exist probably more
20141013 13:47:00 <Eclesia> hm that's not exactly what I'm looking for
20141013 13:47:12 <zubzub> https://www.google.be/webhp?q=opengl+es+cheat+sheet
20141013 13:47:13 <Eclesia> something like this : https://www.opengl.org/sdk/docs/man/html/abs.xhtml
20141013 13:47:20 <zubzub> well it does have a shader language reference page
20141013 13:47:23 <Eclesia> the table at the bottom, but for all functions
20141013 13:48:19 <zubzub> you mean the build-in functions table is not what you want?
20141013 13:48:51 <zubzub> page 5 & further for gl3
20141013 13:49:33 <zubzub> ah version comparison & compatibility
20141013 13:49:51 <Eclesia> zubzub: yes, sorry I didn't explain well
20141013 13:50:15 <zubzub> nope don't know where you can find that
20141013 13:50:18 <zubzub> would be useful I agree
20141013 13:50:20 <Eclesia> I'm adding #version tags on my shader template, so I check the minimum version requiered
20141013 13:51:24 <zubzub> http://renderingpipeline.com/2012/03/shader-model-and-glsl-versions/
20141013 13:51:25 <zubzub> ?
20141013 13:53:01 <Eclesia> hm no
20141013 13:53:17 <Eclesia> zubzub: I'll make a table myself ^^
20141013 14:02:09 <Eclesia> zubzub: If I make something like that, is that enough ? or do you see something else I should add : http://jsorel.developpez.com/temp/test.html
20141013 14:04:01 * xranby (~xranby@anon) Quit (Quit: Leaving.)
20141013 14:04:13 * xranby (~xranby@anon) has joined #jogamp
20141013 14:12:10 <Eclesia> see you later ++
20141013 14:12:13 * Eclesia (~eclesia@anon) has left #jogamp
20141013 14:12:36 * xranby (~xranby@anon) Quit (Quit: Leaving.)
20141013 14:12:49 * xranby (~xranby@anon) has joined #jogamp
20141013 14:16:07 * hija (~hija@anon) has joined #jogamp
20141013 14:22:36 * xranby (~xranby@anon) Quit (Quit: Leaving.)
20141013 14:22:49 * xranby (~xranby@anon) has joined #jogamp
20141013 14:24:59 * hija (~hija@anon) Quit (Quit: hija)
20141013 14:27:35 * hija (~hija@anon) has joined #jogamp
20141013 14:32:47 * hija (~hija@anon) Quit (Quit: hija)
20141013 14:53:53 * hija (~hija@anon) has joined #jogamp
20141013 15:03:01 * hija (~hija@anon) Quit (Quit: hija)
20141013 15:04:59 * Eclesia (~eclesia@anon) has joined #jogamp
20141013 15:49:50 <Eclesia> hourray, finished the list of all glsl functions+version : file://localhost/home/eclesia/test.html
20141013 15:49:59 <Eclesia> arf local .. 1sec
20141013 15:51:24 <Eclesia> hre http://jsorel.developpez.com/temp/glsl_functions.html
20141013 15:51:29 <Eclesia> here*
20141013 15:51:32 * jvanek (jvanek@anon) Quit (Quit: Leaving)
20141013 15:54:01 <Eclesia> sgothel: hi, do you have a similar table for GL functions ?
20141013 15:56:34 * monsieur_max (~maxime@anon) Quit (Quit: Leaving.)
20141013 15:58:35 <rmk0> Eclesia: nice
20141013 15:59:30 <rmk0> assume you've not bothered to show deprecated functions
20141013 15:59:33 <rmk0> texture2D and the like
20141013 16:00:06 <Eclesia> I tooke everyhing listed in https://www.opengl.org/sdk/docs/man/html/
20141013 16:00:10 <Eclesia> took*
20141013 16:00:14 <rmk0> the GLSL people seem to think it's a good idea to overload the hell out of everything
20141013 16:00:31 <rmk0> ah, right
20141013 16:00:58 <Eclesia> does that mean many are missing ?
20141013 16:01:11 <rmk0> prior to... 1.30, i think, the texture functions weren't overloaded
20141013 16:01:19 <rmk0> you had texture2D, textureCube, etc
20141013 16:01:31 <Eclesia> that's what I use
20141013 16:01:37 <Eclesia> that's obsolete ?
20141013 16:01:47 <rmk0> yeah, is deprecated
20141013 16:02:01 <rmk0> may be gone entirely in newer versions... AMD's compiler got upset with me for trying to use them
20141013 16:02:38 <Eclesia> rmk0: so what do I use to replace this ? uniform sampler2D texDepth;
20141013 16:02:45 <Eclesia> juste 'sampler' ?
20141013 16:02:58 <rmk0> no, the types didn't change, but the functions you use to sample textures did
20141013 16:03:05 <Eclesia> ho ok
20141013 16:03:11 <rmk0> texture2D(texDepth, vec2(0.5, 0.5)); etc
20141013 16:03:15 <Eclesia> I'm good them ^^
20141013 16:03:20 <rmk0> is what was necessary prior to 1.40
20141013 16:04:03 <rmk0> have no idea why they consider that stuff a feature
20141013 16:04:30 <rmk0> "let's make everything ambiguous! that's great!"
20141013 16:07:39 * hija (~hija@anon) has joined #jogamp
20141013 16:10:07 <Eclesia> rmk0: quick question, what is the difference between : genType genDType genIType genUType ?
20141013 16:10:42 <rmk0> this is the way they try to document the fact that there are overloaded variants for subsets of types
20141013 16:10:49 <rmk0> genUType = "any unsigned type"
20141013 16:10:55 <rmk0> genType = "any type"
20141013 16:11:33 <rmk0> genUType consists of uint, uvec2, uvec3, uvec4...
20141013 16:12:17 <Eclesia> it's odd : https://www.opengl.org/sdk/docs/man/html/min.xhtml min(genType) is available since 1.1 so why the others ?
20141013 16:13:05 <rmk0> ah, actually, i'm wrong... genType refers to float, vec2, vec3, vec4
20141013 16:13:18 <rmk0> basically single precision floating point types
20141013 16:15:14 * hija (~hija@anon) Quit (Quit: hija)
20141013 16:15:15 <rmk0> unsigned types didn't appear until 1.30, and double precision types came much later... 4.*
20141013 16:17:25 <Eclesia> ok
20141013 16:24:25 * doev (~doev@anon) Quit (Ping timeout: 260 seconds)
20141013 16:29:56 <Eclesia> layout(location = 6) in vec3 l_color;
20141013 16:30:12 <Eclesia> Layout in glsl are available only since 3.3 ,am i right ?
20141013 16:31:31 <rmk0> yeah, think that's when they appeared
20141013 16:32:24 <Eclesia> damn, that means my engine can't go under glsl 3.3
20141013 16:44:09 <rmk0> the only really portable way, currently, is to query all shader parameters on compilation
20141013 16:44:25 <rmk0> and even then, the api is pretty awful
20141013 16:49:40 <Eclesia> lol block struct available only with 3.2. haha that's it, i'm not adapting my engine under 3.3
20141013 17:59:40 * xranby (~xranby@anon) Quit (Ping timeout: 255 seconds)
20141013 18:01:50 * xranby (~xranby@anon) has joined #jogamp
20141013 18:36:13 * monsieur_max (~maxime@anon) has joined #jogamp
20141013 19:05:33 * Eclesia (~eclesia@anon) Quit (Quit: Leaving.)
20141013 19:33:27 * hija (~hija@anon) has joined #jogamp
20141013 19:44:05 <zubzub> hmm jglm is actually very handy to work with matrices & vectors
20141013 19:44:11 <zubzub> works nicely with jogl
20141013 20:04:19 * xranby (~xranby@anon) Quit (Ping timeout: 244 seconds)
20141013 20:05:37 * xranby (~xranby@anon) has joined #jogamp
20141013 20:38:09 * hija (~hija@anon) Quit (Quit: hija)
20141013 20:44:50 * hija (~hija@anon) has joined #jogamp
20141013 21:29:06 * monsieur_max (~maxime@anon) Quit (Quit: Leaving.)
20141013 22:56:49 * hija (~hija@anon) Quit (Quit: hija)
20141013 22:58:20 * hija (~hija@anon) has joined #jogamp
20141014 00:11:46 * hija (~hija@anon) Quit (Quit: hija)
20141014 00:52:45 <sgothel> Now, I can say +1, Our family just has grown by Svenson Han :)
20141014 00:53:15 <sgothel> now .. bedtime .. loong day
20141014 01:16:40 <sgothel> @Mark / and others: http://forum.jogamp.org/Forum-improvement-tp4033326p4033335.html <- the forum/mailinglist discussion
20141014 01:16:58 <sgothel> ^^ mostly Mark, since he already put time on the table to migrate ..