Ray Charles
1
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!
2
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!
3
Name:
Anonymous
2011-06-30 10:00
Excellent thread OP.
4
Name:
Anonymous
2011-06-30 10:02
OP here, indeed, the code is even better like this
int[] imgArray = new int[1920*1080];
5
Name:
Anonymous
2011-06-30 10:50
This thread makes me sad, I was hoping for a real Ray Charlesing algorithm.
6
Name:
Anonymous
2011-06-30 12:26
The romanians are no longer after me.
7
Name:
Anonymous
2011-06-30 12:58
int imgArray[width*height] = {0};
That will create an array of all zeros.
8
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
9
Name:
Anonymous
2011-06-30 13:18
>>7
Your code is too long.
int imgArray[width*height] = {};
Use this.
10
Name:
Anonymous
2011-06-30 13:30
AKA id Tech 4.
11
Name:
dubzbot-ng
2011-06-30 13:30
:GJS1M 67dcbdbce4a0b67c4b48e86a6ae29205a95e4b83024a9d947213d1231800e8d9
:65 9a72e2f2aa7fab63f13766a82340faee
:1309442346 1309455041
>>7
<-- that's cool and all, but check 'em
12
Name:
dubzbot-ng
2011-06-30 17:07
:GJS1M 67dcbdbce4a0b67c4b48e86a6ae29205a95e4b83024a9d947213d1231800e8d9
:65 9a72e2f2aa7fab63f13766a82340faee
:1309442346 1309455041
>>11
<-- that's cool and all, but youre a faggot
13
Name:
Anonymous
2011-06-30 17:11