> This is a raytracing engine contained in a single Mysql SELECT statement. In the beginning of the code there are a few parameters that can be modified. The scene can be specified using the @triangles and @squares parameters, but everything is explained in the comments. The whole query returns a bitmap file which can be written to the filesystem using the "INTO DUMPFILE" syntax at the end of the query, if mysql has filesystem write permissions.
> The raytracer supports shadows and reflections, which makes it, to my knowledge, the most advanced MySQL raytracer on the market right now.
Now this is art! I think us geeks have finally hit upon the formula the high brow art people are used to. Now we just need to start a physical market so that:
the problem with "demoscene art" is that the final product is often only impressive if you know how it was done. really you want to display it in a way that shows off the mechanism. i guess quines don't have this problem.
Anybody in North America who's interested in this kind of technical magic should consider attending one of the few demoscene parties (meetings/competitions) in the U.S. such as Demosplash [1]
This is actually a pretty neat mechanism that builds a string (including BMP magic number and header) and shoves it into a dump file, doing a ray trace per byte. I wish there was a commented/not collapsed version of it to better enjoy reading. Right now it's just a blob.
Now that PostGIS outputs pngs directly, we can imagine future databases handling 3d assets (select * from objects where can_fit_in(x);) and even rendering them.
And here's another production which is an insane tech-feat:
https://demozoo.org/productions/268576/
Moving cubes with pathtracing, lighting and ambient sound in 64 bytes
This is nice.
So this is one SELECT statement in which the triangles and/or spheres are defined, and the raytracing-engine is written.
Then it calculates the Pixels and dumps them into a .bmp-file.
Calling it "the most advanced [...] on the market" is probably tongue in cheek. Notice that this is being given away free and there is no mention of price anywhere.
[+] [-] skrebbel|6 years ago|reply
(or click [nfo] in the right top)
[+] [-] Reisen|6 years ago|reply
[+] [-] deckar01|6 years ago|reply
> The raytracer supports shadows and reflections, which makes it, to my knowledge, the most advanced MySQL raytracer on the market right now.
https://demozoo.org/productions/268459/info/2923/
[+] [-] TuringTest|6 years ago|reply
https://demozoo.org/productions/268459/
[+] [-] benibela|6 years ago|reply
The official XPath/XQuery test suite of the W3C contains an raytracer written in XQuery.
So most xml databases should support raytracing
[+] [-] tpmx|6 years ago|reply
a) demoscene creators can get rich
b) "art investors" can launder their money
[+] [-] brokensegue|6 years ago|reply
[+] [-] aasasd|6 years ago|reply
[+] [-] kebman|6 years ago|reply
[+] [-] bane|6 years ago|reply
1 - https://www.youtube.com/watch?v=A-GTf7b9PKk
If you are in Europe, especially Northern Europe, there's a ton of very well attended parties. There's even a few in Japan!
It's really for people who are extremely passionate about technology for technology's sake and like to show off a little.
[+] [-] xemdetia|6 years ago|reply
[+] [-] bherrmann7|6 years ago|reply
[+] [-] QuercusMax|6 years ago|reply
[+] [-] james_s_tayler|6 years ago|reply
[+] [-] chx|6 years ago|reply
[+] [-] luismedel|6 years ago|reply
Here's another raytracer written in Linq (2007) https://blogs.msdn.microsoft.com/lukeh/2007/10/01/taking-lin...
[+] [-] aitchnyu|6 years ago|reply
https://postgis.net/docs/RT_ST_AsRaster.html
[+] [-] v3nomsoup|6 years ago|reply
Youtube captures of all events and competitions are here: https://www.youtube.com/playlist?list=PL1nWnZ0_fy8DvL13vfLD8...
And here's another production which is an insane tech-feat: https://demozoo.org/productions/268576/ Moving cubes with pathtracing, lighting and ambient sound in 64 bytes
[+] [-] yellowapple|6 years ago|reply
Though I'm suddenly curious if this can be done in other SQL engines, too.
[+] [-] hultner|6 years ago|reply
[+] [-] Flockster|6 years ago|reply
[+] [-] mwexler|6 years ago|reply
[+] [-] sp332|6 years ago|reply
[+] [-] jolmg|6 years ago|reply
[+] [-] ivalm|6 years ago|reply
[+] [-] FridgeSeal|6 years ago|reply
[+] [-] pankajdoharey|6 years ago|reply
[+] [-] jandrese|6 years ago|reply
[+] [-] etaioinshrdlu|6 years ago|reply
[+] [-] nerpderp82|6 years ago|reply
[+] [-] m463|6 years ago|reply
[+] [-] PedroBatista|6 years ago|reply
[+] [-] ShteiLoups|6 years ago|reply
[+] [-] erik_seaberg|6 years ago|reply