#jogamp @ irc.freenode.net - 20150325 05:05:28 (UTC)


20150325 05:05:28 -jogamp- Previous @ http://jogamp.org/log/irc/jogamp_20150324050528.html
20150325 05:05:28 -jogamp- This channel is logged @ http://jogamp.org/log/irc/jogamp_20150325050528.html
20150325 08:36:46 * monsieur_max (~maxime@anon) has joined #jogamp
20150325 09:52:38 * jvanek (jvanek@anon) has joined #jogamp
20150325 10:41:53 * PiMan_ (c1012dfe@anon) has joined #jogamp
20150325 10:42:32 <PiMan_> Hello, I have a question about offscreen rendering, is anyone alive?
20150325 10:44:13 <bruce-> ask, don't ask to ask.
20150325 10:44:27 <PiMan_> grand
20150325 10:44:45 <PiMan_> Is there any special initialization I need to run an offscreen renderer?
20150325 10:44:57 <PiMan_> after the inifiat .display()
20150325 10:45:29 <PiMan_> *initial
20150325 10:45:33 <PiMan_> //Initialize the context offscreenDrawable.display(); offscreenDrawable.getContext().makeCurrent(); //add and initialize the offscreen event listener offscreenDrawable.addGLEventListener(new offscreenGlEventListener()); offscreenDrawable.display();
20150325 10:45:56 <PiMan_> After I run this, I try to call an update on a uniform:
20150325 10:46:47 <PiMan_> int randomIndex = gl.glGetUniformLocation(programs.get("offscreenMainProgram"), "vRand"); gl.glGetUniformfv(programs.get("offscreenMainProgram"),randomIndex,value); if (randomIndex != -1) { float rand = new Random().nextFloat() * new Random().nextFloat(); gl.glUniform1f(randomIndex, (float) (rand % 1.0)); }
20150325 10:47:34 <PiMan_> and after that, I do a readPixels with the correct context, etc. but the output I get shows that the random value hasn't had any effect
20150325 10:48:00 <PiMan_> gOffscreenReadBuffer.readPixels(gl,false); try { incr[0] += 1; incr[0] %= 20; TextureIO.write(gOffscreenReadBuffer.getTexture(), Paths.get("resources/outputs/file_" + incr[0] + ".png").toFile()); } catch (IOException e) { e.printStackTrace(); }
20150325 10:48:27 <PiMan_> apologies for the lack of formatting ^^;
20150325 10:50:04 * Eclesia (~eclesia@anon) has joined #jogamp
20150325 10:50:47 <PiMan_> I can see that the values are being passed in
20150325 10:50:48 <PiMan_> http://prntscr.com/6l44mn
20150325 10:51:12 <PiMan_> but the output (which changes the fragment colour), doesnt seem to occur
20150325 10:51:22 <Eclesia> hi
20150325 10:51:26 <PiMan_> yo
20150325 10:51:40 <PiMan_> http://prntscr.com/6l44xa
20150325 10:53:13 <PiMan_> Damn. sorry, but I have to dc, sorry to annoy y'all, Ill ask again later ^^;
20150325 10:57:28 * PiMan_ (c1012dfe@anon) Quit (Ping timeout: 246 seconds)
20150325 11:42:46 <Eclesia> question about textures : is there a way to force opengl to store texture compressed ? dxt ...etc... ? or do I have to always generate the byte[] myself ?
20150325 11:53:10 <sgothel> @Eclesia: you mean as the internal-format ?
20150325 11:53:25 <Eclesia> yes to reduce memory usage
20150325 11:53:39 <sgothel> IMHO .. internally .. GL does what it wants .. you only can spec the components
20150325 11:54:02 <sgothel> and it probably inflates textures while reading ..
20150325 11:54:15 <sgothel> but .. this IMHO is not defined
20150325 11:54:36 <sgothel> however, if you find a spec saying: you can use compressed as internalformat .. thats what you want :)
20150325 11:56:00 <Eclesia> hm will have to search, thanks
20150325 12:28:46 * Eclesia just found a new search engine : google - ads = yandex.com
20150325 12:37:59 <monsieur_max> Eclesia: did you try duckduckgo ?
20150325 12:38:20 <Eclesia> used it in the past, same for ixquick
20150325 12:39:30 <Eclesia> results where not that great, and they don't have image/video search.
20150325 12:39:50 <Eclesia> (in the past I mean)
20150325 15:07:50 * jvanek (jvanek@anon) Quit (Ping timeout: 246 seconds)
20150325 15:23:11 * jvanek (jvanek@anon) has joined #jogamp
20150325 16:46:52 * jvanek (jvanek@anon) Quit (Quit: Leaving)
20150325 17:06:01 * monsieur_max (~maxime@anon) Quit (Quit: Leaving.)
20150325 18:02:59 * monsieur_max (~maxime@anon) has joined #jogamp
20150325 18:26:42 <Eclesia> I'm searching for the book '3D physics and kinematic chains for noobs', does someone has it ?
20150325 20:20:22 * monsieur_max (~maxime@anon) Quit (Quit: Leaving.)
20150325 20:20:46 * monsieur_max (~maxime@anon) has joined #jogamp
20150325 21:14:00 * Eclesia (~eclesia@anon) Quit (Quit: Leaving.)
20150325 22:18:55 * monsieur_max (~maxime@anon) Quit (Ping timeout: 250 seconds)
20150326 05:05:28 -jogamp- Continue @ http://jogamp.org/log/irc/jogamp_20150326050528.html