#jogamp @ irc.freenode.net - 20150722 05:05:25 (UTC)
20150722 05:05:25 -jogamp- Previous @ http://jogamp.org/log/irc/jogamp_20150721050524.html
20150722 05:05:25 -jogamp- This channel is logged @ http://jogamp.org/log/irc/jogamp_20150722050525.html
20150722 06:07:14 * doev (~doev@anon) has joined #jogamp
20150722 06:28:52 * elect (~elect@anon) has joined #jogamp
20150722 06:29:24 <elect> hi
20150722 06:44:22 * monsieur_max (~maxime@anon) has joined #jogamp
20150722 07:35:09 * eclesia (~husky@anon) has joined #jogamp
20150722 07:35:24 <eclesia> good morning
20150722 07:37:18 <elect> hi eclesia
20150722 07:37:23 <xranby_> eclesia: good morning!
20150722 07:37:30 <elect> what did you mean with the jni stuff last day?
20150722 07:37:58 <xranby_> jni stuff -> initialization of native windows on many platforms
20150722 07:39:00 <elect> yeah, but I meant a more general discourse
20150722 07:39:04 <xranby_> == can be tricky, and that’s why we have the jogamp jogl project that turn this hard problem into something easy to use. solid and manageable
20150722 07:44:14 <xranby_> elect: i am working on a special case for raspberry pi where we need to use two window toolkits in parallel X11 (window boder and input) and DispmanX (opengl overlay) to generate a good experience using the Broadcom OpenGL ES driver that only work with DispmanX overlays
20150722 07:46:26 <elect> yeah, I saw your thread
20150722 07:46:31 <elect> it looks cool
20150722 07:47:06 <elect> anyway, I bet that cicciottino is italian
20150722 07:47:13 <elect> his name is a very cute one :D
20150722 07:47:40 <elect> it means fat in a friendly and cute way
20150722 07:47:57 <zubzub> xranby_: heh?
20150722 07:48:06 <xranby_> zubzub: good morning
20150722 07:48:11 <zubzub> good morning
20150722 07:48:23 <zubzub> dispmanx in parallel with x11?
20150722 07:48:47 <xranby_> zubzub: yes, if you have a raspberry pi and run minecraft pi then you know what i mean
20150722 07:49:07 <xranby_> the opengl es driver on the raspberry pi can not use x11 Windows
20150722 07:49:18 <zubzub> I assume x11 runs in pure sw, and then goes out of its way to run dispmanx app
20150722 07:49:46 <xranby_> instead you can only render hardware accelerated to surfaces setup using the broadcom specific dispmanx API
20150722 07:49:51 <zubzub> I know
20150722 07:50:09 <xranby_> so if the user runs opengl es from console -> no problem
20150722 07:50:18 <zubzub> or you can use the special wayland compositor for raspi and try to use xwayland :p
20150722 07:50:22 <xranby_> we initialize opengl uses dispmanx and even provide a mousepointer
20150722 07:50:37 <zubzub> how about display output permissions?
20150722 07:50:53 <zubzub> can multiple apps push their frames to the output?
20150722 07:50:59 <zubzub> non exclusively
20150722 07:51:00 <zubzub> ?
20150722 07:51:12 <xranby_> yes multiple apps can push frames to the output
20150722 07:51:20 <xranby_> dispmanx can handle multiple windows
20150722 07:51:21 <zubzub> I know you can't do that with kms/drm
20150722 07:52:00 <xranby_> and you do not need to request super user capabilities or anything
20150722 07:52:12 <xranby_> it is done from userspace
20150722 07:53:37 <xranby_> anyway.. if the user runs an x11 session or wayland session.. then xorg or wayland provide its own window border decorations thingies and their own mouse input system
20150722 07:53:56 <xranby_> thus in that case the user is pressented with two mousepointers
20150722 07:54:13 <xranby_> our newt dispmanx mousepointer and the x11 mousepointer
20150722 07:54:20 <xranby_> running in parallel
20150722 07:54:36 <xranby_> so to fix this... i need to use two toolkits in parallel
20150722 07:54:47 <xranby_> to let x11 / wayland handle input and window border
20150722 07:54:59 <xranby_> and let dispmanx render the opengl es overlay
20150722 07:55:55 <xranby_> zubzub: tell me more about the special wayland compositor for raspberry pi
20150722 07:56:14 <xranby_> i have not tested to use wayland at all on the pi yet
20150722 07:56:36 <xranby_> and i have a feeling i need to handle it like described above
20150722 07:57:07 <xranby_> ofc.. if jogamp implements a wayland binding then i may use that on the pi
20150722 07:57:27 <xranby_> if i can detect that wayland is in use
20150722 08:01:48 <xranby_> zubzub: do you happen to sit on a java implementation for a wayland client? something we can use in jogamp to make jogl a "wayland" compatible toolkit http://wayland.freedesktop.org/toolkits.html ?
20150722 08:06:33 <xranby_> if hardware accelerated wayland require a modesetting opengl es driver then we may actually have one now for use on the pi by using eric anholts mesa3d vc4 driver
20150722 08:06:55 <zubzub> xranby_: as a matter of fact I do
20150722 08:06:58 <zubzub> but it uses jna
20150722 08:07:16 <zubzub> and I haven't tested it with egl
20150722 08:08:10 <zubzub> I guess you could use it and convert the jna parts to jni
20150722 08:08:36 <zubzub> https://github.com/Zubnix/wayland-java-bindings
20150722 08:08:41 <xranby_> yes i guess we may use it and gluegenify it
20150722 08:09:04 <xranby_> to make it dynamically probe wayland existance the gluegen way
20150722 08:10:02 <zubzub> ideally my lib would be native back-end independant
20150722 08:10:19 <zubzub> but that's not the case currently
20150722 08:10:38 <zubzub> but I think it's not *that* much work to abstract the native parts away
20150722 08:10:53 <zubzub> given that you provide abstraction for struct & pointer
20150722 08:10:56 <zubzub> that should be enough
20150722 08:11:30 <zubzub> oh and function pointers that can b eimplemented in java
20150722 08:11:33 <zubzub> that too
20150722 08:12:48 <xranby_> zubzub: gluegen will take the wayland header and turn all structs and pointers into java representative classes
20150722 08:12:53 <xranby_> no problem
20150722 08:13:20 <xranby_> spares us to manually write the jni code :)
20150722 08:14:08 <zubzub> well I already made a java mapping for all the required c methods
20150722 08:14:17 <zubzub> https://github.com/Zubnix/wayland-java-bindings/blob/master/stubs/src/main/java/org/freedesktop/wayland/client/jna/WaylandClientLibraryMapping.java
20150722 08:14:27 <zubzub> https://github.com/Zubnix/wayland-java-bindings/tree/master/stubs/src/main/java/org/freedesktop/wayland/server/jna
20150722 08:14:30 * doev (~doev@anon) Quit (Ping timeout: 240 seconds)
20150722 08:14:39 <zubzub> you basically have to implement that
20150722 08:14:56 <zubzub> + some structs and get some c function pointers/callbacks
20150722 08:14:58 <zubzub> to wokr
20150722 08:15:05 <zubzub> that should be enough
20150722 08:15:19 <zubzub> so if you can gluegenify that, you should be set
20150722 08:15:58 <zubzub> an alternative approach is that you directly map to the C generated code
20150722 08:16:08 <zubzub> I generate my own bindings based on a wayland format xml
20150722 08:16:27 <zubzub> and use the most basic libwayland operations to get it to work
20150722 08:17:29 <zubzub> so if you want to implement a client
20150722 08:17:37 <zubzub> you need to convert all of:
20150722 08:17:42 <zubzub> https://github.com/Zubnix/wayland-java-bindings/tree/master/stubs/src/main/java/org/freedesktop/wayland/util/jna
20150722 08:17:55 <zubzub> https://github.com/Zubnix/wayland-java-bindings/tree/master/stubs/src/main/java/org/freedesktop/wayland/client/jna
20150722 08:18:03 <zubzub> and change everything that uses that ofcourse :)
20150722 08:19:46 <xranby_> the reason we like the gluegen way is that we can easily drop in a new wayland header if wayland update's their API
20150722 08:20:01 <xranby_> thus reduced future maintance
20150722 08:20:07 <zubzub> yup
20150722 08:20:54 <xranby_> wayland is jogamp newt's next continent to explore
20150722 08:21:16 <xranby_> to provide opengl on all the sailfish phones
20150722 08:21:28 <xranby_> etc
20150722 08:21:38 <zubzub> if you manage to do that, you're the first that provides java gl on wayland afaik
20150722 08:21:44 <zubzub> unless swt already provides it?
20150722 08:24:28 * doev (~doev@anon) has joined #jogamp
20150722 08:31:12 <zubzub> I really need a java widget toolkit that can run on wayland btw
20150722 08:31:22 <zubzub> for my wayland java compositor :p
20150722 08:31:29 <zubzub> and I don't want to use swt :p
20150722 09:55:33 * jvanek (jvanek@anon) has joined #jogamp
20150722 10:18:43 * rmk0_ is now known as rmk0
20150722 10:18:50 * rmk0 (~rmk0@anon) Quit (Changing host)
20150722 10:18:50 * rmk0 (~rmk0@anon) has joined #jogamp
20150722 10:20:51 * odin_ (~Odin@anon) Quit (Ping timeout: 258 seconds)
20150722 11:34:34 <eclesia> elect: there are 115 ! dx10 types ...
20150722 11:34:52 <elect> wut
20150722 11:35:08 <elect> no way
20150722 11:35:45 <eclesia> elect: http://pastebin.com/gs8BpK6B
20150722 11:36:12 <elect> oh god
20150722 11:36:39 <elect> so waht are you gonna do?
20150722 11:36:48 <eclesia> I will do yours and the basic ones. the others will come with time
20150722 11:37:22 <eclesia> It's not hard, just takes time, repetitive. I'll try to make it more automatic
20150722 11:39:12 <elect> can I take a look to your tool?
20150722 11:39:24 <elect> which is mine?
20150722 11:39:41 <eclesia> DXGI_FORMAT_R8G8B8A8_UNORM_SRGB
20150722 11:40:02 <eclesia> 32bit 8bytes per color component including alpha
20150722 11:41:19 <elect> what UNORM means?
20150722 11:41:35 <eclesia> unsigned values
20150722 11:41:52 <eclesia> SNORM for signed values
20150722 11:56:23 <eclesia> screw m$. another list with different names : https://msdn.microsoft.com/en-us/library/windows/desktop/bb172558%28v=vs.85%29.aspx
20150722 12:50:42 * doev (~doev@anon) Quit (Ping timeout: 260 seconds)
20150722 13:01:01 * doev (~doev@anon) has joined #jogamp
20150722 14:41:39 * doev (~doev@anon) Quit (Ping timeout: 255 seconds)
20150722 15:01:50 * jvanek (jvanek@anon) Quit (Ping timeout: 260 seconds)
20150722 15:07:11 * elect (~elect@anon) Quit (Ping timeout: 244 seconds)
20150722 15:11:33 * jvanek (jvanek@anon) has joined #jogamp
20150722 15:34:06 * elect (~elect@anon) has joined #jogamp
20150722 15:53:12 * monsieur_max (~maxime@anon) Quit (Quit: Leaving.)
20150722 16:15:36 * eclesia (~husky@anon) has left #jogamp
20150722 16:19:23 * jvanek (jvanek@anon) Quit (Quit: Leaving)
20150722 17:37:48 -christel- [Global Notice] Hey folks, FOSSCON 2015 is coming up in just a month in Philadelphia. Saturday August 22nd at 9am. If you're in 6the area or can make it, stop by http://fosscon.us/Attend for more details and to register.
20150722 17:54:41 * monsieur_max (~maxime@anon) has joined #jogamp
20150722 18:38:49 * Eclesia (~eclesia@anon) has joined #jogamp
20150722 18:41:46 * Eclesia is back again
20150722 18:45:01 <elect> bitches?
20150722 18:46:21 <Eclesia> who ? m$ ?
20150722 18:46:30 <elect> sure
20150722 18:46:44 <elect> but in general "is back again" terminates with "bitches"
20150722 18:47:57 <Eclesia> you watch too much movies
20150722 18:49:49 <elect> I wish
20150722 18:50:58 <elect> Eclesia, could you tell me when you will have the r8g8b8a8 implemented?
20150722 18:51:12 <elect> so I can come back to those example and finish it
20150722 18:51:21 <Eclesia> in a half hour I think
20150722 18:51:32 <elect> wow
20150722 18:51:43 <elect> but I didnt mean to push
20150722 18:51:47 <elect> just a post-it
20150722 18:52:23 <Eclesia> I do what I want ^^ was curious so worked on it
20150722 18:54:36 <Eclesia> found a new list of dx10 formats... that makes ~180
20150722 19:01:20 <Eclesia> elect: http://unlicense.developpez.com/temporaire/dx10.png
20150722 19:05:36 <Eclesia> this type is like a raw image. no compression, no masks.
20150722 19:05:57 <Eclesia> even a bmp is more compact
20150722 19:11:22 <Eclesia> done. you can check the source if you want to push it in jogl
20150722 19:12:33 <Eclesia> https://bitbucket.org/Eclesia/unlicense/src/tip/storage/image/image-dxt/src/main/java/un/storage/imagery/dxt/
20150722 19:17:51 <elect> what's that?
20150722 19:18:00 <elect> I remember I already saw something like that
20150722 19:18:04 <elect> https://bitbucket.org/Eclesia/unlicense/src/6ac171f69236?at=default
20150722 19:18:35 <Eclesia> that's my project
20150722 19:18:51 <Eclesia> where I write everything I code or found in public domain
20150722 19:45:09 <elect> why bitbucket instead github, Eclesia ?
20150722 19:45:23 <Eclesia> why not ?
20150722 19:45:57 <elect> ^^
20150722 19:47:01 <Eclesia> I used csv,svn,git,hg. I think hg is better then git in everyday use.
20150722 21:21:27 <Eclesia> good night ++
20150722 21:21:30 * Eclesia (~eclesia@anon) Quit (Quit: Leaving.)
20150722 21:30:44 * monsieur_max (~maxime@anon) Quit (Quit: Leaving.)
20150722 21:33:13 * elect (~elect@anon) Quit (Ping timeout: 246 seconds)
20150723 05:05:25 -jogamp- Continue @ http://jogamp.org/log/irc/jogamp_20150723050525.html