Is that legal?
I was able to achieve organic-looking splats using noise+a finer paint grid:
Laggy, but it looks cool.
Edit: I should probably clarify that this isn’t really good for a production game. Consider this a tech demo more than anything else. I’m still sticking with a 1-stud grid.
I notice you aren’t yet using a region3 detection to find surfaces, it looks like you’re using hit detection and storing the information? (The bombs go off by two walls, first time it doesn’t touch it, blows up and only shows on the ground, second time it touches and explodes on both). Does this also include the part reductions from previous posts?
I’m using Region3s to detect parts. The reason why it didn’t paint the walls on the second bomb was because I didn’t mark those walls as paintable.
And yeah, I’m using part reductions from the previous post. That blast has a radius of roughly 12 studs, and the grid is 0.25 studs in size. That means I’m painting roughly pi*(12^2)/(0.25^2) = 7238 cells per explosion.
EDIT: Image with outlines:
What sort of data structure are you representing the cells with? Finding the minimal rectilinear polygon rectangulation is a neat problem.
The color of each cell is stored in a flat array. The painting of each cell is done by the server. To reduce the amount of data I send to the client and to reduce the amount of work the client has to do, I apply the algorithm that sircfenner described in this post to convert the cells into a bunch of rectangles. I encode each rectangle as three characters (a color index, the top-left corner of the rectangle, and the bottom-right corner of the rectangle) which I broadcast to each client.
(I’m not sure what minimal rectilinear polygon rectangulation is, but from the googling I’ve done it doesn’t seem like I’m doing anything of the sort.)
the sounds are really satisfying lol
I’ve release this!
Turned the re:VOLT menu loops into an actual song designed as a test track for the game engine. Repetitive as hell, but it works for what it is.
Finished it. I’m pretty impressed with it.