#jogamp @ irc.freenode.net - 20140219 05:05:45 (UTC)


20140219 05:05:45 -jogamp- Previous @ http://jogamp.org/log/irc/jogamp_20140218050545.html
20140219 05:05:45 -jogamp- This channel is logged @ http://jogamp.org/log/irc/jogamp_20140219050545.html
20140219 07:41:19 * monsieur_max (~maxime@anon) has joined #jogamp
20140219 07:50:12 * jvanek (jvanek@anon) has joined #jogamp
20140219 09:29:00 * hija (~hija@anon) Quit (Quit: hija)
20140219 10:09:08 * hija (~hija@anon) has joined #jogamp
20140219 10:50:28 <bbbruce> what's the state of the ffmpeg wrappers, can I use them on Windows?
20140219 10:55:30 <xranby> bbbruce: jogamp currently do not bundle ffmpeg/libav fallbacks thus you need to install the ffmpeg or libav librarys manually
20140219 10:55:39 <xranby> GLMediaPlayer will work if they are present
20140219 10:56:09 <xranby> https://jogamp.org/bugzilla/show_bug.cgi?id=686
20140219 10:57:41 <xranby> i belive most java ffmpeg wrappers are in the same situation
20140219 10:57:50 <bbbruce> so downloading the ffmpeg binaries from http://ffmpeg.zeranoe.com/builds/ should be enough?
20140219 10:57:57 <xranby> that is.. the wrapper work IF ffmpeg is installed on the system
20140219 10:58:04 <xranby> yes
20140219 10:58:23 <monsieur_max> bbbruce: yep, that is what i do, and it works fine
20140219 10:58:31 <bbbruce> hehe, java and video is in a terrible state anyway
20140219 11:04:31 <xranby> jogamp idea is to simply try to add as many hardware accelerated backends as possible to the GLMediaPlayer
20140219 11:06:21 <xranby> thus the goal is to provide openmax hardware accelerated support if the gpu drivers support it
20140219 11:07:47 <xranby> its unfortunate that many video formats require patent licensing for hardware decode
20140219 11:08:25 <xranby> thus this is the reason why noone wants to provide the native librarys for decoding... or bundle gpu drivers that can decode all formats
20140219 11:10:12 <xranby> ffmpeg is a stop gap solution
20140219 11:10:32 <xranby> running on the CPU
20140219 11:10:57 <xranby> best is to do the decoding directly on the GPU
20140219 11:11:09 <xranby> thus then the video can be unpacked directly in video ram
20140219 11:15:50 <xranby> thus most programming languages are terrible for video due to they perform all their work in regular ram instead of inside the video ram where the video frames are to be consumed
20140219 11:27:26 <bbbruce> yeah, I fully understand why this is
20140219 11:28:04 <bbbruce> before I played a bit with the video player that comes with javafx
20140219 11:28:33 <bbbruce> it just exposed enough to blit the decoded videodata to a texture
20140219 11:29:08 <bbbruce> sadly I could not get it to run stable on OSX
20140219 11:29:39 <bbbruce> (did not even try Windows)
20140219 15:36:35 * phao (~phao@anon) has joined #jogamp
20140219 15:36:45 <phao> Hi. I have something like this in my program...
20140219 15:36:55 <phao> Buffer dataForGL = FloatBuffer.wrap(points.data, 0, points.getUsed());
20140219 15:36:56 <phao> gl.glBufferData(GL2.GL_ARRAY_BUFFER, points.bytesUsed(), dataForGL, GL2.GL_STATIC_DRAW);
20140219 15:37:11 <phao> My question is
20140219 15:37:48 <phao> Given that points.data is a float[], points.getUsed() tells me how many elements of that array I am using (from 0 to points.getUsed()-1), and
20140219 15:38:25 <phao> points.bytesUsed() == points.getUsed()*4, could I use dataForGL.capacity() instead of points.bytesUsed() ?
20140219 15:39:38 <phao> I know that this size to be given to glBufferData is a byte size, but since what I am passing to it is a FloatBuffer, then I started to wonder if that changes anything.
20140219 15:40:29 <phao> So, to summarize, is there an alternative to that points.bytesUsed() in there?
20140219 16:06:41 * jvanek (jvanek@anon) Quit (Ping timeout: 265 seconds)
20140219 16:18:49 * jvanek (jvanek@anon) has joined #jogamp
20140219 16:28:22 * phao (~phao@anon) Quit (Read error: Connection reset by peer)
20140219 16:31:39 * kermyt (~kermyt@anon) Quit (Ping timeout: 260 seconds)
20140219 16:35:04 * kermyt (~kermyt@anon) has joined #jogamp
20140219 16:57:48 * monsieur_max (~maxime@anon) Quit (Quit: Leaving.)
20140219 17:20:34 * jvanek (jvanek@anon) Quit (Quit: Leaving)
20140219 17:49:35 * monsieur_max (~maxime@anon) has joined #jogamp
20140219 18:07:30 * phao (~phao@anon) has joined #jogamp
20140219 18:08:25 <phao> Hi...
20140219 18:08:28 <phao> I have this program here http://pastie.org/8749325
20140219 18:08:37 <phao> In the display method,
20140219 18:08:46 <phao> (let me replaste,...)
20140219 18:09:23 <phao> Here: http://pastie.org/8749330
20140219 18:13:23 * phao (~phao@anon) Quit (Read error: Network is unreachable)
20140219 18:16:20 * phao (~phao@anon) has joined #jogamp
20140219 18:16:34 <phao> Sorry.
20140219 18:16:35 <phao> Internet connection went down.
20140219 18:16:41 <phao> http://pastie.org/8749330
20140219 18:16:49 <phao> In the display method, I do glClear, and then I draw the arrays, then I flush. This leaves the screen blank. I am just beginning at this, so I am probably doing something wrong.
20140219 18:16:57 <phao> Afaik, I am supposed to call glClear, but if I don't, the points become visible, but then the background becomes black (it's supposed to be white)
20140219 19:13:07 * hija (~hija@anon) Quit (Quit: hija)
20140219 19:13:48 <phao> THe problem was that I was using GLJPanel. For some reason that was a problem (it makes sense actually). Using GLCanvas fixed it.
20140219 22:24:08 * monsieur_max (~maxime@anon) has left #jogamp
20140219 22:52:16 * hija (~hija@anon) has joined #jogamp
20140219 22:54:45 * phao (~phao@anon) Quit (Read error: Connection reset by peer)
20140219 22:55:10 * phao (~phao@anon) has joined #jogamp
20140220 01:37:24 <phao> does VectorUtil assumes 3D vectors?
20140220 01:38:08 <sgothel> well .. as you can see in the source code, 3 components - yes
20140220 01:40:01 <phao> =(
20140220 01:40:13 <sgothel> why sad face ?
20140220 01:40:48 <phao> stuff like add, scale, dot, and so forth, could also be available for 2d
20140220 01:40:52 <sgothel> you can do 2d w/ it ofc .. just pass 3 component vecore
20140220 01:41:04 <sgothel> z == 0 .. or whatever you prefer
20140220 01:41:17 <sgothel> 2d is a 3d special case :)
20140220 01:41:47 <phao> yeah... but then I'll have to change my code here =D hehe
20140220 01:42:36 <phao> actually, it's almost nothing which has to be changed. I've just done it.
20140220 01:43:42 <phao> btw... VectorUtil could be made to work with vectors within arrays
20140220 01:43:50 <phao> by making these functions accept offsets
20140220 01:43:57 <phao> It'd be a nice addition, it seems.
20140220 01:44:28 <sgothel> as we have it in FloatUtil
20140220 01:44:30 <sgothel> I agree
20140220 01:44:36 <sgothel> you like to do it ?
20140220 01:44:55 <phao> I'd do it, no problems.
20140220 01:45:28 <phao> I've actually done, for my code something like that.
20140220 01:45:41 <phao> I have a vector class which takes a store and an index.
20140220 01:45:47 <phao> And gives a "vector-ish view" out of that.
20140220 01:45:57 <sgothel> nice .. when you refactor it .. you also need to keep track of all the using code ofc
20140220 01:46:27 <sgothel> you are able to offer a git patch or git pull req w/ your 'real name' ?
20140220 01:47:04 <sgothel> if so - pls create a bug report in our bugzilla 'enhancement', assign yourself .. and later we can review and merge
20140220 01:47:09 <phao> Hmm, I would, but (I am kind of ashamed of that) idk how to use git
20140220 01:48:00 <sgothel> well, 'learning' makes the biggest part of our job .. doesn't it ?
20140220 01:48:07 <phao> =)
20140220 01:48:19 <phao> I'm going to look into it then.
20140220 01:48:27 <sgothel> so .. I assume this is not your job quite yet ?
20140220 01:48:52 <phao> No. I've been programming for a lot of time, but not still not a job.
20140220 01:49:11 <phao> I've been mostly doing hobby stuff.
20140220 01:49:23 <sgothel> also - making a change .. would require to pass all unit tests (even though some may fail sometimes, unrelated) .. i.e. no regression
20140220 01:49:40 <sgothel> best to manually check some unit tests, i.e. graph
20140220 01:50:29 <sgothel> student I assume ? or really doing this beside other hard work, kudos.
20140220 01:50:47 <phao> Now I am a undergrad.
20140220 01:51:03 <phao> But I've been programming way before. I used to do it instead of studying high school materials.
20140220 01:51:07 <phao> =)
20140220 01:51:12 <sgothel> .. not computer science ?
20140220 01:51:18 <phao> Yes computer science.
20140220 01:51:34 <sgothel> so it is your profession - good
20140220 01:51:46 <sgothel> in this case, we shall have no mercy :)
20140220 01:51:47 <phao> Ah, I see. Yes. I just don't get paid yet.
20140220 01:52:09 <sgothel> getting payed ..
20140220 01:52:33 <sgothel> is a very vague qualification IMHO .. could be monetary .. or otherwise
20140220 01:53:02 <phao> Well, it's not that it qualifies me or not. It's just that when you said "profession", I thought you meant "getting paid"
20140220 01:53:02 <sgothel> as long it always 'pays off' :)
20140220 01:53:22 <phao> as in my employment, you know?
20140220 01:53:33 <sgothel> so I deduce you come from the States or Canada ? :)
20140220 01:53:36 <phao> In Brazil, afaik, people tend to use "profession" only in that sense.
20140220 01:53:42 <phao> I'm from Brazil.
20140220 01:53:45 <sgothel> ah ..
20140220 01:54:02 <phao> I don't do "hue" out there, but that's just me.
20140220 01:54:47 <sgothel> nice nice .. always happy to have more input, thank you
20140220 01:55:06 <phao> I'll get to learn some git in half hour or so.
20140220 01:55:11 <phao> Btw.
20140220 01:55:14 <phao> ,*
20140220 01:55:39 <sgothel> so if this chat is silence, it doesn't mean nobody is reading - but not yet willing to reply - I guess :)
20140220 01:55:50 <phao> Just as an overall, that vector class I mentioned to you. It's something like this.
20140220 01:55:55 <sgothel> you have used which SCM so far ?
20140220 01:56:00 <phao> SCM?
20140220 01:56:06 <phao> ah, ok. Subversion.
20140220 01:56:11 <sgothel> source control management .. like .. yup
20140220 01:56:20 <phao> I've used some git, but I didn't really got to learn it.
20140220 01:56:24 <sgothel> good - you will 1st hate git, then love it :)
20140220 01:56:24 <phao> I barely remember the commands.
20140220 01:56:44 <phao> I've heard of git already. The idea attracted me, although I really didn't get a feel for it in practice.
20140220 01:56:57 <sgothel> I use cola to commit stuff
20140220 01:57:02 <sgothel> gitk to have an overview
20140220 01:57:03 <phao> The idea of doing the local pulls seems really good.
20140220 01:57:10 <sgothel> and heavy stuff w/ commandline
20140220 01:57:19 <phao> I se..
20140220 01:57:19 <phao> see*
20140220 01:57:26 <sgothel> yes .. always good to have the whole history local
20140220 01:57:50 <phao> http://pastie.org/8750459
20140220 01:58:19 <phao> The idea is that this FloatBlock wraps an array, lets you populate it, does some management for you, and then you can take "the array" back.
20140220 01:58:28 <sgothel> reason to use simple arrays is to reduce footprint alot
20140220 01:59:01 <sgothel> IMHO it should be kept close to FloatUtil (which also misses a few offsets ..)
20140220 01:59:08 <phao> Hehe
20140220 01:59:20 <phao> I am just getting started with JOGL
20140220 01:59:24 <sgothel> there was a nice paper .. showing the object footprint
20140220 01:59:27 <phao> I didn't know about the VectorUtil and FloatUtil tbh.
20140220 01:59:43 <sgothel> would need to look for it .. but it's huge especially for volatiles like floats
20140220 01:59:50 <phao> sgothel, caused by the lots of small float arrays?
20140220 01:59:50 <sgothel> vectors etc
20140220 02:00:07 <sgothel> yes .. if you have all the single vector instances ..
20140220 02:00:19 <sgothel> the java object would outweight the net-data
20140220 02:00:27 <phao> I see.
20140220 02:00:29 <sgothel> i.e. not efficient
20140220 02:00:41 <sgothel> and as you said .. calculate from a stream
20140220 02:00:53 <phao> I said that?
20140220 02:00:55 <sgothel> so we usually have it as float[] and FloatBuffer
20140220 02:01:01 <sgothel> yes .. above, w/ offset
20140220 02:01:17 <sgothel> it's just the consequence
20140220 02:01:42 <phao> Ahhh.
20140220 02:01:44 <sgothel> check PMVMatrix .. etc .. they usually have it in both flavors
20140220 02:01:56 <sgothel> stream .. like data stream of vertices etc
20140220 02:02:01 <phao> Sure.
20140220 02:02:33 <phao> I'll do check =), but I'll also experiment with this idea of an vector object using storage of some other place.
20140220 02:02:38 <phao> I have plans to have that for matrices too.
20140220 02:03:30 <phao> It's interesting because one could have for example 4 objects, a FloatMatrix3 and 3 FloatVec3, and have these 3 vectors as coluns/rows in this matrix. Just because they share store and have the right indices.
20140220 02:04:02 <phao> It seems strange to me, because it's java, but this sort of stuff in C++ feels more common.
20140220 02:05:23 <sgothel> FloatUtil, VectorUtil, ProjectFloat, PMVMatrix ..
20140220 02:05:42 <sgothel> and the other stuff in com.jogamp.opengl.math.**
20140220 02:05:46 <phao> ok
20140220 02:06:08 <sgothel> Eclipse or plain VI ?
20140220 02:06:33 <phao> I almost always use netbeans.
20140220 02:06:44 <phao> I've been looking into intellij idea community edition too.
20140220 02:07:11 <sgothel> anything odd w/ our wiki/docs ? if you like to edit it .. send me an email and I give you an account
20140220 02:08:31 <phao> Ok. Idk of anything like that which I'd like to do. I'm still new to jogamp and jogl
20140220 02:08:35 <sgothel> yes, coming from C++, Java seems so complicated .. i.e. so much to write .. and no multiple inheritance .. etc
20140220 02:09:00 <sgothel> yup .. the 'new-ness' approach shows ours shortcomings
20140220 02:09:06 <phao> barely read anything. I'm learning by reading a CG book ( http://www.amazon.com/Interactive-Computer-Graphics-Top-Down-Shader-Based/dp/0132545233/ref=sr_1_1?ie=UTF8&qid=1392862119&sr=8-1&keywords=interactive+computer+graphics+top+down ) and figuring out how to map the C++ to java.
20140220 02:09:28 <phao> but from the java (I've been doing java for kind of the same amount of time I've been doing C++... 2 years) and C++ I've seen
20140220 02:09:30 <phao> I surely prefer java.
20140220 02:09:55 <phao> Not to just contradict you, but C++ is fiendishingly complicated.
20140220 02:10:10 <phao> and it seems C++14 will be even more. It kinds of scares me.
20140220 02:10:31 <sgothel> as I said, if you come from C++ .. Java seems to have a lack of expressions :)
20140220 02:10:34 <phao> My "real" background is on C, but not developing low level ish software, which I have no experience which.
20140220 02:10:43 <phao> sgothel, I agree.
20140220 02:10:51 <sgothel> yup, reading new C++ std .. makes me scratch my head
20140220 02:11:06 <phao> C++ hsa lots of "cool little stuff"
20140220 02:11:15 <phao> there is something which recently made me REALLY surprised
20140220 02:11:21 <sgothel> in the end it doesn't matter .. just let the machine do it's job
20140220 02:11:54 <sgothel> now they have common stuff as well .. synchronization etc .. dunno details now
20140220 02:12:07 <sgothel> goody .. me cont. hacking a bit .. laters
20140220 02:12:13 <sgothel> nice to meet you
20140220 02:12:16 <phao> =D
20140220 02:12:21 <phao> nice to meet you too
20140220 02:12:49 <phao> (the C++ thing which made me surprised => http://channel9.msdn.com/Events/GoingNative/2013/Inheritance-Is-The-Base-Class-of-Evil )
20140220 02:13:41 <phao> there is a larger video in which he explains these things better, but iirc, this one does some explaining too
20140220 02:16:04 <phao> Anyone knows what does "jogamp" mean?
20140220 02:16:58 <sgothel> Java OpenGL Audio Multimedia and Processing
20140220 02:17:28 <phao> nice =)
20140220 02:17:34 <phao> I'll do some reading and get to learn some git.
20140220 03:51:13 * magaio (~magaio@anon) Quit (Quit: ZNC - http://znc.in)
20140220 05:05:45 -jogamp- Continue @ http://jogamp.org/log/irc/jogamp_20140220050545.html