#jogamp @ irc.freenode.net - 20150319 05:05:27 (UTC)


20150319 05:05:27 -jogamp- Previous @ http://jogamp.org/log/irc/jogamp_20150318050526.html
20150319 05:05:27 -jogamp- This channel is logged @ http://jogamp.org/log/irc/jogamp_20150319050527.html
20150319 06:34:16 * jvanek (jvanek@anon) has joined #jogamp
20150319 08:48:48 * monsieur_max (~maxime@anon) has joined #jogamp
20150319 12:10:39 * zzuegg__ (~zzuegg___@anon) Quit (Remote host closed the connection)
20150319 14:03:26 * Eclesia (~eclesia@anon) has joined #jogamp
20150319 14:03:37 <Eclesia> hi
20150319 14:11:53 * zzuegg (~zzuegg@anon) has joined #jogamp
20150319 16:31:55 * jvanek (jvanek@anon) Quit (Quit: Leaving)
20150319 16:45:37 <Eclesia> question : is it possible to make a draw without any input ? not even an index buffer ?
20150319 16:47:19 <rmk0> yeah, i think so
20150319 16:47:35 <rmk0> you can assign values to attributes and tell it to draw n points/triangles/etc
20150319 16:48:24 <Eclesia> hm no, that's not it
20150319 16:48:29 <Eclesia> 1sec
20150319 16:49:04 <Eclesia> currently I draw 2 triangles using an index buffer: final Buffer indices = Buffers.wrap(new int[]{
20150319 16:49:04 <Eclesia> 3,0,1,
20150319 16:49:05 <Eclesia> 3,1,2
20150319 16:49:05 <Eclesia> });
20150319 16:49:50 <Eclesia> and in my shader I don't even care about the triangles indexes. I just use gl_vertexID
20150319 16:49:53 <Eclesia> outData.position_proj = MVP * coords[gl_VertexID];
20150319 16:49:54 <Eclesia> outData.uv = (coords[gl_VertexID].xy*0.5)+0.5;
20150319 16:51:01 <Eclesia> I was wondering if I could kick out event the IBO. and somehow say draw 2 triangles
20150319 16:51:15 <Eclesia> even*
20150319 16:51:28 <rmk0> not sure about the semantics of gl_vertexID
20150319 16:51:57 <rmk0> i would guess that if you said "draw N triangles", it'd execute your vertex shader N * 3 times with a vertex ID that you'd expect
20150319 16:59:43 <Eclesia> :) found it
20150319 16:59:45 <Eclesia> worker.gl.glDrawArrays(GL.GL_TRIANGLES,0,6);
20150319 17:00:07 <Eclesia> this gives gl_vertexID : 0,1,2,3,4,5 as expected
20150319 17:00:13 <rmk0> right, would hope so!
20150319 17:00:34 <Eclesia> cool, now rendering texture with 0 inputs ^^
20150319 17:00:48 <Eclesia> only mvp and texture uniform
20150319 17:13:41 * monsieur_max (~maxime@anon) Quit (Quit: Leaving.)
20150319 17:33:59 * zzuegg (~zzuegg@anon) Quit (Ping timeout: 245 seconds)
20150319 17:34:02 * zzuegg2 (~zzuegg@anon) has joined #jogamp
20150319 17:45:48 <Eclesia> oculusvr or steamvr ? that is the question ...
20150319 18:04:26 * monsieur_max (~maxime@anon) has joined #jogamp
20150319 21:26:15 * monsieur_max (~maxime@anon) Quit (Ping timeout: 265 seconds)
20150319 21:33:56 * Eclesia (~eclesia@anon) Quit (Quit: Leaving.)
20150320 01:49:17 * zzuegg2 (~zzuegg@anon) Quit (Ping timeout: 250 seconds)
20150320 01:50:29 * zzuegg (~zzuegg@anon) has joined #jogamp
20150320 02:11:45 * zzuegg (~zzuegg@anon) Quit (Ping timeout: 246 seconds)
20150320 02:14:57 * zzuegg (~zzuegg@anon) has joined #jogamp
20150320 02:20:58 * zzuegg (~zzuegg@anon) Quit (Quit: Nettalk6 - www.ntalk.de)
20150320 03:59:02 * hija (~hija@anon) has joined #jogamp
20150320 05:05:27 -jogamp- Continue @ http://jogamp.org/log/irc/jogamp_20150320050527.html