Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Ray Charles

Name: Anonymous 2011-06-30 9:59

Best and most efficient Ray tracing algorithm ever:


int width = 1920, height = 1080;
int[] imgArray = new int[width*height];
int i;

for(i = 0; i < width; i++) {
  imgArray[i] = 0;
}


eat shit!

Name: Anonymous 2011-06-30 10:00

such a fail, in java int arrays initialize with all zeros, no need to go through the array and set them 0

and you even failed with the condition in the for loop

idiot!

Name: Anonymous 2011-06-30 10:00

Excellent thread OP.

Name: Anonymous 2011-06-30 10:02

OP here, indeed, the code is even better like this


int[] imgArray = new int[1920*1080];

Name: Anonymous 2011-06-30 10:50

This thread makes me sad, I was hoping for a real Ray Charlesing algorithm.

Name: Anonymous 2011-06-30 12:26

The romanians are no longer after me.

Name: Anonymous 2011-06-30 12:58

int imgArray[width*height] = {0};

That will create an array of all zeros.

Name: Anonymous 2011-06-30 13:06

>>6
I followed your epic tale to the very end and I was not disappointed by the conclusion

Name: Anonymous 2011-06-30 13:18

>>7
Your code is too long.

int imgArray[width*height] = {};

Use this.

Name: Anonymous 2011-06-30 13:30

AKA id Tech 4.

Name: dubzbot-ng 2011-06-30 13:30

:GJS1M 67dcbdbce4a0b67c4b48e86a6ae29205a95e4b83024a9d947213d1231800e8d9
:65 9a72e2f2aa7fab63f13766a82340faee
:1309442346 1309455041

>>7
<-- that's cool and all, but check 'em

Name: dubzbot-ng 2011-06-30 17:07

:GJS1M 67dcbdbce4a0b67c4b48e86a6ae29205a95e4b83024a9d947213d1231800e8d9
:65 9a72e2f2aa7fab63f13766a82340faee
:1309442346 1309455041

>>11
<-- that's cool and all, but youre a faggot

Name: Anonymous 2011-06-30 17:11

>>12
bad signature

Don't change these.
Name: Email:
Entire Thread Thread List