This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Messages - cooliojazz
Pages: 1 2 3 [4] 5 6 ... 41
46
« on: December 06, 2012, 10:42:19 am »
I've pulled together a lot of songs I've written over the last couple years to bring Descriptors, my second album! Woo! you can get it/listen to it here. I'm working on a video for Game of Life (10 points if you can guess what it will be of) but who knows if/when I'll actually finish that, haha. Video stuff is not my cup'a'tea. Anyways, enjoy! http://cooliojazz.bandcamp.com/album/descriptors
47
« on: December 06, 2012, 10:35:02 am »
Dude, I love all of your music so much... You been working on anything else new recently? Cause those are all months ago =P
48
« on: December 02, 2012, 09:11:15 pm »
Sorry I forgot to mention it, move up and down with E and SHIFT.
Here's the relevant code
int[][][] cells = new int[size][size][size]; cells[10][10][10] = 1; cells[10][10][11] = 1; cells[10][10][12] = 1; cells[11][11][10] = 1; cells[10][11][11] = 1; cells[10][11][12] = 1; cells[11][4][10] = 3; cells[11][4][11] = 3; cells[11][4][12] = 3; cells[12][4][10] = 3; cells[12][4][11] = 3; cells[12][4][12] = 3; cells[10][4][10] = 3; cells[10][4][11] = 3; cells[10][4][12] = 3; while (f.isVisible()) { int[][][] tempcells = new int[size][size][size]; for (int x = 1; x < size - 1; x++) { for (int y = 1; y < size - 1; y++) { System.arraycopy(cells[x][y], 0, tempcells[x][y], 0, tempcells[x][y].length); } } for (int x = 1; x < size - 1; x++) { for (int y = 1; y < size - 1; y++) { for (int z = 1; z < size - 1; z++) { if (simtype == 0) { tempcells[x][y][z] = rule3DGOL(x, y, z, sumCells(cells, x, y, z), cells); } else if (simtype == 1) { tempcells[x][y][z] = ruleFlow(x, y, z, sumCells(cells, x, y, z), cells); } } } } cells = tempcells; DisplayList dl = new DisplayList(); int cubes = 0; for (int x = 1; x < size - 1; x++) { for (int y = 1; y < size - 1; y++) { for (int z = 1; z < size - 1; z++) { if (cells[x][y][z] > 0) { cubes++; Cube c = new Cube(new Point3D(x, y, -z), new Point3D(.45, .45, .45), dl); c.setMaterial(new Material(new Color(cells[x][y][z] * 50, 255 - cells[x][y][z] * 50, 0), Color.white, Color.black, 63, null), dl); } } } } totalc = cubes; displist = dl; try { Thread.sleep(10 * delay); } catch (Exception e) {
} }
static public int sumCells(int[][][] i, int x, int y, int z) { return i[++x][y][z] + i[x][++y][z] + i[x][y][z + 1] + i[x][--y][z + 1] + i[x][--y][z + 1] + i[x][y][z] + i[x][y][z - 1] + i[x][++y][z - 1] + i[x][++y][z - 1] + i[--x][y][z] + i[x][y][z + 1] + i[x][--y][z + 1] + i[x][--y][z + 1] + i[x][y][z] + i[x][y][z - 1] + i[x][++y][z - 1] + i[x][++y][z - 1] + i[--x][y][z] + i[x][y][z] + i[x][y][z + 1] + i[x][--y][z + 1] + i[x][--y][z + 1] + i[x][y][z] + i[x][y][z - 1] + i[x][++y][z - 1] + i[x][++y][z - 1]; }
static public int rule3DGOL(int x, int y, int z, int sum, int[][][] i) { if (sum == 2 || sum == 3 && i[x][y][z] == 1) { return 1; } else if (sum == 3 && i[x][y][z] == 0) { return 1; } else if (sum == 4 || sum == 5 && i[x][y][z] == 2) { return 2; } else if (sum == 5 && i[x][y][z] == 1) { return 2; } else if (sum == 6 || sum == 7 && i[x][y][z] == 3) { return 3; } else if (sum == 7 && i[x][y][z] == 2) { return 3; } else if (sum == 8 || sum == 9 && i[x][y][z] == 4) { return 4; } else if (sum == 9 && i[x][y][z] == 3) { return 4; } else if (sum < 2 || sum > 9 && i[x][y][z] == 1) { return 0; } else { return 0; } }
static public int ruleFlow(int x, int y, int z, int sum, int[][][] i) { if (i[x][y][z] == 0 && i[x][y + 1][z] == 1) { return 1; } else if ((i[x + 1][y][z] == 1 || i[x][y][z + 1] == 1 || i[x - 1][y][z] == 1 || i[x][y][z - 1] == 1) && i[x][y - 1][z] == 3 && i[x][y][z] == 0) { return 1; } else if (((i[x + 1][y][z] == 1 && i[x + 1][y - 1][z] == 3) || (i[x][y][z + 1] == 1 && i[x][y - 1][z + 1] == 3) || (i[x - 1][y][z] == 1 && i[x - 1][y - 1][z] == 3) || (i[x][y][z - 1] == 1 && i[x][y - 1][z - 1] == 3)) && i[x][y - 1][z] == 0 && i[x][y][z] == 0) { return 1; } else if (((i[x + 1][y - 1][z] == 0) || (i[x][y - 1][z + 1] == 0) || (i[x - 1][y - 1][z] == 0) || (i[x][y - 1][z - 1] == 0)) && i[x][y - 1][z] == 3 && i[x][y][z] == 1) { return 0; } else if (i[x][y][z] == 1 && i[x][y + 1][z] == 0) { return 0; } else {
return i[x][y][z]; } }
49
« on: December 02, 2012, 01:21:09 pm »
Actually, the other day I just happened to make a 3d Cellular Automata to test the new 3D engine i was working on =P Here, check it out! It takes command line arguments <mode> <size>, where mode is 0 for a 3d life-like simulation, and 1 is my fail attempt at a water simulation, and size is a number that determines how big the "field" is. the defaults are 0 and 20, and i would recommend not going over 100. Fly around with WASD and arrow keys, and change the simulation speed with - and = https://docs.google.com/open?id=0B7yzzD91paU_aUpwMHhKUEtRblU
50
« on: December 02, 2012, 11:40:47 am »
Thanks! There's also a newer version now http://soundcloud.com/cooliojazz/3-2Yeah, I've only recently been posting my tracks on soundcloud, and not all of them either. Just sometimes after i work on something new i decide to post it. And I've hardly posted any of my music on the forums... =P
51
« on: November 29, 2012, 01:52:33 pm »
Noooooo.... /me hides
52
« on: November 28, 2012, 09:41:54 am »
People use it to list the code type. I don't know if it's supposed to show that at the top or something, and I don't know if it's ever worked, but this has been bugging me lately with the influx of people using the code tag that way =P
53
« on: November 28, 2012, 01:53:53 am »
I'm using Firefox
54
« on: November 28, 2012, 01:10:39 am »
I wanted to know what is up with code tag. For me, whenever someone writes [code=XXXXX] it always just shows as Array But other people say it actually displays correctly for them still. So do other people have this problem, or am I just crazy? (Also, if i'm not, why would it work for some people but not others?) (And what's the problem? because it looks like a bug really)[/code]
55
« on: November 28, 2012, 12:56:08 am »
Ooh, let's make this more interesting! >=D Okay, there are fours doors (to continue the trend ;P), one leads out, the other three are an endless bath in cherry-flavored flames. You can ask a total of two questions to any of the four doors, they do not need to be to the same door, and they are NOT chrono-ambiguous, so one CAN depend on the answer of the other. The doors will always answer with yes or no and the questions can be a maximum of eight words. One door always lies, one always tells the truth, another tells the truth if it's a weekday (and you have ABSOLUTELY no idea what day it is you've been wandering in this labyrinth for so long) and the last tells the truth only if your question has an odd number of words. WHAT WILL YOU ASK SO YOU DON'T BECOME A DELICIOUS CHERRY-FLAVORED ROAST? ?
56
« on: November 24, 2012, 12:50:10 pm »
Hey, I'm a stupid kid, and I don't approve of you sentiment! Well, I mean I used to be... I'm 18 now, so not so much... But i was a stupid kid of 13 when i first joined!!! =P
57
« on: November 12, 2012, 10:26:55 pm »
I'm pretty sure everyone is just throwing around the eZ80 cause i jokingly said it would be awesome if it had one ;P Seriously, there's like literally no reason for them to put it in, haha (From TI's viewpoint)
58
« on: November 08, 2012, 08:25:54 pm »
eZ80 is what was planned for the Z80 OTCalc before that whole project died =(
59
« on: November 08, 2012, 07:26:24 pm »
Maybe they'll use an eZ80! =D Wouldn't that be awesome? haha
60
« on: November 08, 2012, 03:38:12 am »
Oh the incident of Our Dear Friend... that was a lot of fun to deal with... X.x Omnimaga has had some interesting times, haha...
Pages: 1 2 3 [4] 5 6 ... 41
|