« first day (106 days earlier)      last day (117 days later) » 

10:35 AM
@thecoshman btw I got an idea
OGLplus has a lot of examples
we could rewrite them for GLDR basically showing how our code is better
 
@BartekBanachewicz lol, I like that
do it for any other libs out there that try something similar to us
 
@thecoshman yeah exactly I will work 16hrs/day on that
:P
 
"oh mhm... that looks good but look at this here"
 
it will take me some time to grok their stuff
it's far from easy
 
excuses :P
 
10:41 AM
@thecoshman furry torus is scary
 
@BartekBanachewicz it's not furry enough
 
@thecoshman I think it's a geometry shader
 
@BartekBanachewicz NEEDS MORE FUR!!
 
@thecoshman duh alright we'll make Furry Torus Done Right
 
though to be fair, if that is texture shaded to look that much like fur, it's might cool. I mean, you can't always use geometry shaders
 
10:45 AM
@thecoshman when can't you use geometry shaders again?
 
@BartekBanachewicz a) shit hardware b) in a real use case, you might not be able to afford the time for it, so for a small detail you might fall back to a less nice looking, but simpler to compute.
 
@thecoshman geometry shaders are rather fast
and shit hardware is shit anyway
 
@BartekBanachewicz yeah, but you might not be able to give them time to do fancy fur for some rat that runs supper fast past the player.
But for tech demos, sure, full power to shaders!
 
@thecoshman that's why I thought it's a nice ide
 
@BartekBanachewicz well, we are not really showing how powerful OpenGL is, more how easy it is to use OpenGL with GLDR
 
10:52 AM
@thecoshman it's fun either way
 
though I suppose we can show how all of our wrappers to do not hurt performance... but not sure how we could do that... other then port some beefy engine :S
@BartekBanachewicz oh sure :D
 
@thecoshman or write some heavy demostuff with voxel rendering :D
 
@BartekBanachewicz but it's hard to show that GLDR did anything beyond make it easier to write. Really just need to look at the code, and maybe how easy it is port to GLDR
 
@thecoshman I will port OGLplus demos over the weekend
 
@BartekBanachewicz Hopefully with @Ell 's help I can get my own stuff working to :P
 
Ell
10:57 AM
@thecoshman well, that's what gldr is for isn't it? To make it easier to use by removing repetitive stuff and wrapping in a c++'ish way
 
@Ell yeah, but you can only show that with code samples really.
 
Ell
@thecoshman I guess
you could err.. compare loc :P
put code samples side to side
 
@Ell it's not about LoC only. It's about shit like global state elimination
 
it's more the RAII side of it that I think is really good. and the fact we can manage binding objects and seamlessly make use of DSA if possible
 
Ell
well, with our interface, won't DSA be an implementation detail?
 
10:59 AM
so even noobs can write code that takes advantage of DSA with out even having to worry about it
@Ell no...
 
@thecoshman it kinda is
I mean we're exposing direct interface regardless of the fact if DSA is present or not
 
yeah... but we will automatically use DSA if possible
 
which means it's an implementation detail, precisely as Ell said
 
oh I see what he meant. I was saying that users of GLDR do not need to worry about it. DSA will be used for them, they will not need to do anything to enable it.
it's not like they have to provide a callback and have that callback use DSA
any way, lunch time
 
Ell
It's food time for me almost too
back in a while :)
 
 
11 hours later…
10:00 PM
I am pleasantly surprised
porting OGLPlus demos was easy as fuck
@Ell @thecoshman ^
 
10:34 PM
Anyway, I gotta say that OGLPlus is... good
it's really good.
The only thing I don't agree with is the offered API, but apart from that, it shows 5 years of really nice maintenance.
I am really considering making GLDR a fork of OGLPlus with modified interface now. @thecoshman
OGL Plus Plus :D
that sounds like a plan
let me know what you think about it
and you think that by linkdumping you can attract attention.
nope.
@LisaAnne this exercise is really straightforward, I dunno what can be hard to get about it.
 
...I can imagine...
 
@LisaAnne no, really, which part is hard for you?
 
simply I dot understand how do I add a second texture
i can replace
but the exercise is about "adding"
 
uniform sampler2D u_TextureUnit;
that's one texture.
uniform sampler2D u_TextureUnit1;
uniform sampler2D u_TextureUnit2;
these are 2 textures; look, I've added one!
 
so far ok
 
10:46 PM
well that's pretty much it.
gl_FragColor = texture2D(u_TextureUnit, v_TextureCoordinates);
that's the color that you obtain from one texture
let's fiddle a bit
vec4 ColorFromTex1 = texture2D(u_TextureUnit1, v_TextureCoordinates);
gl_FragColor = ColorFromTex1;
now, you only need to add another one.
@LisaAnne your turn.
 
vec4 ColorFromTex2 = texture2D(u_TextureUnit2, v_TextureCoordinates);
 
wasn't that hard, was it?
so now you have two colors, you have to combine them somehow
an average should produce nice results.
 
ok, thanks, but how do I send the two textures to the shadeer?
 
uTextureUnitLocation2 = glGetUniformLocation(program, "u_TextureUnit2");
that will get the location
 
ok
 
10:51 PM
glActiveTexture(GL_TEXTURE0 + unit);
glBindTexture(GL_TEXTURE_2D, textureId);
this pair of calls will bind texture textureId to unit unit
you can also use GL_TEXTURE0 and GL_TEXTURE1
 
ok, now I try, thans :)
 
IOW you will bind your first texture to texture unit 0 and second to unit 1
@LisaAnne sure, anytime. just don't linkdump your questions in chat without asking first
 
ok
thanks a lot!!!
....didn't know about "linkduping"
:)
 
@LisaAnne if you solve it, you will be able to answer your SO question yourself.
 
indeed
 
10:56 PM
which will free me of doing it :)
 
11:27 PM
mmm
no
glActiveTexture(GL_TEXTURE0);
glActiveTexture(GL_TEXTURE1);
glBindTexture(GL_TEXTURE_2D, textureId);
// Bind the texture to this unit.
glBindTexture(GL_TEXTURE_2D, textureId2);
// Tell the texture uniform sampler to use this texture in the shader by
// telling it to read from texture unit 0.
glUniform1i(uTextureUnitLocation, 0);
what shall I do with the last glUniform1i(uTextureUnitLocation, 0); ?
ok
!!
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, textureId);
glActiveTexture(GL_TEXTURE1);
glBindTexture(GL_TEXTURE_2D, textureId2);
 
yup
glUniform1i(uTextureUnitLocation1, 0);
glUniform1i(uTextureUnitLocation2, 1);
 
@Bartek Banachewicz thanks
 
11:53 PM
@Ell basically I think we should fork OGL+
 
Ell
Right, good idea
 
@Ell and you know, only apply our API
@Ell because the guy did a lot of great work, so it would be a shame if that was to go to waste
 

« first day (106 days earlier)      last day (117 days later) »