Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 23 Mar 2007
Offline Last Active Aug 11 2013 05:16 AM

Topics I've Started

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);

Recommend a C math library

17 April 2010 - 10:15 PM

Hello, I'm looking for a 3D math library (or a physics lib which includes math) with the following characteristics: - Free for commercial use, non-GPL licence. - Supports at least matrix and vector math. - Provides a C API (I'm not using C++). - Simple and readable interface with documentation. So far I've found Kazmath, but I'd like to explore other alternatives as well.

Typedef struct-pointer-pointer shortcut in C

23 January 2010 - 08:47 PM

Hello, I'm trying to figure out a syntax for typedef'ing a "struct-pointer-pointer" in C (not Cpp) so that instead of:
(*fpp)->i = 13;
I coude write:
fpp->i = 13;
Here's the setup:
struct _Foo {
   int i;

typedef struct _Foo Foo;
typedef Foo** ppFoo; // Not what I want.

int main() {
   Foo f;
   Foo* fp = &f;
   ppFoo fpp = &fp;

   fpp->i = 12; // Gives error, see below

error: request for member `i' in something not a structure or union
I'm using MinGW on Windows. What would be the right syntax for this, or is it even possible in C?