Members in Shoutbox
None.
Shoutbox Search
Shoutbox Commands
/w [name] > Whisper
/r > Reply to last whisper /me > Marks as action Shoutbox Information
Moderators may delete any and all shouts at will.
|
Global Shoutbox
Please log in to shout.
[2015-12-16. : 3:15 am] Dem0n -- The code has a shader variable called wire_shader that it calls the addShader() method on. After the shaders get linked, wire_shader sets an attribute buffer and enables an attribute array. Do you know why that is?[2015-12-16. : 3:10 am] O)FaRTy1billion[MM] -- like your thing seems to handle shaders and shit for you, so just find some code that sets a uniform and copy+paste[2015-12-16. : 3:09 am] O)FaRTy1billion[MM] -- I just stored it in a struct. I think a tut or something I was following was like LOL KEEP STUFF IN A STRUCT![2015-12-16. : 3:05 am] O)FaRTy1billion[MM] -- oh, and g_resources.uniforms.seed = glGetUniformLocation(g_resources.program, "rseed"); is in the shader init function[2015-12-16. : 3:05 am] O)FaRTy1billion[MM] -- in my frag shader I have uniform float rseed; and then some shitty line of code that adds noise based on rseed. in the c++ code I have glUniform1f(g_resources.uniforms.seed, (float)rand()/RAND_MAX); img[2015-12-16. : 2:59 am] Dem0n -- FaRTy1billionFaRTy1billion shouted: you need to edit those, add a uniform or w/e to the fragment shader and then set the uniform in your code to a random value How do I pass in the random value, though?[2015-12-16. : 2:58 am] O)FaRTy1billion[MM] -- Dem0nDem0n shouted: Wanna see what I got done so far? ya[2015-12-16. : 2:57 am] O)FaRTy1billion[MM] -- you need to edit those, add a uniform or w/e to the fragment shader and then set the uniform in your code to a random value[2015-12-16. : 2:57 am] Dem0n -- They read from files in the code given to us. I don't know how to change it that it takes in random values.[2015-12-16. : 2:56 am] O)FaRTy1billion[MM] -- Dem0nDem0n shouted: Anyone know how to create random numbers inside a fragment shader? I don't think you can just call the rand() function within one. you have to pass a random value to it each time[2015-12-16. : 1:41 am] Moose -- "It's a complete headache if you're not actually invested in any of it." Sounds like C++ ¯\_(ツ)_/¯[2015-12-16. : 1:30 am] jjf28 -- its like, what did I learn all this linear algebra for if I don't get to draw stuffs[2015-12-16. : 1:29 am] jjf28 -- I do at some point, wanted to take a graphics course in college but that was only for fall semester [2015-12-16. : 1:28 am] Dem0n -- Don't learn it unless you actually want to do graphics stuff. It's a complete headache if you're not actually invested in any of it.[2015-12-16. : 1:26 am] jjf28 -- you can prolly write to some array in memory, I just dunno opengl yet [2015-12-16. : 1:20 am] Dem0n -- Maybe I'll just have a lame project and have all my fireworks be the same color[2015-12-16. : 1:19 am] jjf28 -- ostream aFile("myFilePath\\myFileName.extension"); aFile << myValues; aFile.close();[2015-12-16. : 1:17 am] Dem0n -- Dunno how to write to file in C++, also fuck that even if I did know[2015-12-16. : 1:16 am] Dem0n -- but srsly how do you pass in random values to a shader rather than have it read values from a file[2015-12-16. : 1:08 am] Moose -- All for that leather trim and some better rims. We just a need a dollar y'all forget the tomfoolery[2015-12-16. : 1:08 am] Moose -- Around the world, many seek opportunity, but some chase the green, get the blues and a eulogy[2015-12-16. : 1:08 am] Moose -- In Japan, where a tsunami killed thousands. Haiti, Indonesia, New Orleans public housing[2015-12-16. : 1:07 am] Moose -- Is this America's greed, or survival skills? We needs a dollar from the streets to the highest hills[2015-12-16. : 1:07 am] Moose -- Kids steal a 12 gauge, protection from a blade, or put it in a tellers face to offset minimum wage[2015-12-16. : 1:07 am] Moose -- A century later ain't a damn thing changed, the homeless shake cans for a dollar and some change[2015-12-16. : 1:07 am] Moose -- Shaking pans, making plans for a hold up, killing millions of Indians arrows and bows flushed[2015-12-16. : 1:07 am] Moose -- I'm from the west, SF, started by the gold rush, where 300 thou came to get their pockets swoll up[2015-12-16. : 12:47 am] Dem0n -- Anyone know how to create random numbers inside a fragment shader? I don't think you can just call the rand() function within one.[2015-12-16. : 12:21 am] Roy -- It's harder to eat 6.5 pounds of lettuce than it is to eat the caloric-equivalent 2 ounces of bacon.[2015-12-16. : 12:19 am] Roy -- "The reason for this is because on a per-calorie basis..." Well, duh, you'd need a head of lettuce for every two slices of bacon. My guess is that you aren't going to eat four heads of lettuce in one sitting, though. |