Jump to content

  • Log In with Google      Sign In   
  • Create Account

Calling all IT Pros from Canada and Australia.. we need your help! Support our site by taking a quick sponsored surveyand win a chance at a $50 Amazon gift card. Click here to get started!


Member Since 23 Mar 2007
Offline Last Active Aug 05 2015 12:07 PM

Topics I've Started

Consecutive calls to glUseProgram

05 August 2015 - 11:38 AM

I  have a noob question about how glUseProgram works.
Suppose I did something like this:
// A and B are shader programs.

void render() {


Is program A ever used for drawing here, or is it pointless to do this?


What to do if a coding project starts to feel too complex to handle?

08 November 2014 - 04:05 PM

What do you do if you feel that your coding project is getting overwhelmingly complex? What tactics or techniques do you use to reduce complexity or tolerate it so that you can carry on with the project?

Do you use UML or other diagrams when working without a team?

13 October 2014 - 03:07 PM

When you are doing programming projects solo, do you use UML or other diagrams? What diagram types do you find most useful, or do you feel diagrams are unnecessary when working alone?

Describe your personal system for managing ideas & things to do

11 August 2013 - 05:01 AM

I'm fishing for ideas for an easy, quick and manageable personal "system" (software, non-software or a combination) for storing my ideas or "todos" and tracking their progress. What everybody here is using for something like that? What have you found works best for you? smile.png

Why GLSL noise only produces a black color?

30 April 2010 - 08:18 PM

I have a noob problem with GLSL where I can't seem to figure out why the pixel shader below only renders a black rectangle. I was expecting that it would draw a random-colored one instead. I figured the black color could result from the fact that the noise functions may return a negative value but even using abs() on them doesn't help.
#version 150

out vec4 pixel_color;

void main() {
    float r = abs(noise1(1.0));
    float g = abs(noise1(2.0));
    float b = abs(noise1(3.0));
    pixel_color = vec4(r, g, b, 1.0);