News for hackers. Stuff that matters.
Re:The most advanced MySQL raytracer on the market by skrebbel on Thursday October 10, 2019 @04:13PM (#21218690)
If you're unfamiliar with navigating the fabulous Pouet.net, the relevant background is in the so-called "infofile": https://www.pouet.net/prod_nfo.php?which=83222

(or click [nfo] in the right top)

Re:The most advanced MySQL raytracer on the market by Reisen on Thursday October 10, 2019 @08:38PM (#21220560)
I really appreciate comments like this for the quick time save they offer. Thank you for this comment, it was the most useful in this post for me.
Re:The most advanced MySQL raytracer on the market by deckar01 on Thursday October 10, 2019 @03:36PM (#21218361)
> 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.

https://demozoo.org/productions/268459/info/2923/

Re:The most advanced MySQL raytracer on the market by TuringTest on Friday October 11, 2019 @03:28AM (#21222289)
Re:The most advanced MySQL raytracer on the market by deckar01 on Friday October 11, 2019 @10:16AM (#21224558)
That is the same link I posted without the path to the readme.
Re:The most advanced MySQL raytracer on the market by benibela on Thursday October 10, 2019 @04:55PM (#21219075)
Fun fact:

The official XPath/XQuery test suite of the W3C contains an raytracer written in XQuery.

So most xml databases should support raytracing

Re:The most advanced MySQL raytracer on the market by tpmx on Thursday October 10, 2019 @04:53PM (#21219049)
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:

a) demoscene creators can get rich

b) "art investors" can launder their money

Re:The most advanced MySQL raytracer on the market by brokensegue on Thursday October 10, 2019 @05:54PM (#21219570)
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.
Re:The most advanced MySQL raytracer on the market by detaro on Thursday October 10, 2019 @06:01PM (#21219623)
I'd argue a good chunk of "Art art" is quite similar: the thing you see is quite unimpressive and really only considered important because of context.
Re:The most advanced MySQL raytracer on the market by skrebbel on Friday October 11, 2019 @01:21AM (#21221763)
A nice demoscene example is "Piledriver", which contains all of the last 2 decades worth of demoscene tropes, no exceptions. Hexagonal cones, walking robots, purple explosions, drum'n'bass with rap vocals, television walls with earlier scenes, it's all there. And it's extremely well executed, which hides that it's a parody. So I guess it only works as a work of art if you saw the demos it mocks.

https://www.pouet.net/prod.php?which=82882

https://m.youtube.com/watch?v=4zkSd3-6I2A

Re:The most advanced MySQL raytracer on the market by mntmoss on Thursday October 10, 2019 @06:34PM (#21219871)
A lot of art derives value from craft, but when craft is systematized, it becomes product design and targeted towards consumers instead. Demoscene folks have often crossed over to the industrial side of computer graphics and gaming.

A good proportion of the art-as-art world either finds new and original ways to push craft, or focuses on medium facilitating message(which in turn falls neatly into the product-marketing framework).

Re:The most advanced MySQL raytracer on the market by brokensegue on Thursday October 10, 2019 @06:21PM (#21219781)
agreed that it is true for a lot of "high art" too. but much of it can still be appreciated at face value.
Re:The most advanced MySQL raytracer on the market by bob1029 on Thursday October 10, 2019 @07:23PM (#21220221)
I think you could physically implement demos (especially very very small ones) in such a way as to demonstrate just how compact their implementation is. E.g. use ancient computer hardware, load from 5.25" floppy when you press a button to start it, etc.
Re:The most advanced MySQL raytracer on the market by taneq on Friday October 11, 2019 @12:51AM (#21221645)
The best example (counter-example?) of this that I can think of is one of the realtime raytracing demos that came out circa 2000 when it was all the rage. I can't remember the name but basically after doing well in a compo the authors revealed that it was just a rasterizer running at low rez with some hacked reflections, which everyone had believed was super impressive because they thought it was raytracing and the deliberately low resolution made it look the part.
Re:The most advanced MySQL raytracer on the market by skrebbel on Friday October 11, 2019 @01:14AM (#21221734)
Iirc that was Transgression 2 by MFX: http://www.pouet.net/prod.php?which=672
Re:The most advanced MySQL raytracer on the market by aasasd on Thursday October 10, 2019 @06:01PM (#21219627)
For better or worse, there's no scarcity in software. And thus, “we hackers do for love what others wouldn't do for money.”
Re:The most advanced MySQL raytracer on the market by tpmx on Thursday October 10, 2019 @06:07PM (#21219668)
I'm thinking the democoders could create scarcity. I'm imagining e.g. Future Crew making a Third reality. Or Triton making Crystal Dream III. Release at like a 300p video for the world and like AM audio mono sound quality and sell the binary to the highest bidder. Or perhaps smarter, release it at 1:1 quality for the first minute, but only for the first minute.

;)

Edit: of course this would be a horrible future. Also, there's no way these now old guys could recreate the magic they experienced together in the early 90s.

Example:

https://www.youtube.com/watch?v=LIIBRr31DIU

(make sure to enable the thirdparty english subtitles)

Re:The most advanced MySQL raytracer on the market by vidarh on Friday October 11, 2019 @04:55AM (#21222627)
You can create scarcity by marrying the software with a physical object.

William Gibsons poem Agrippa [1] is easily accessible, though it was distributed as part of a program that'd overwrite the floppy it was distributed on.

But it was sold in various ridiculously expensive collectors editions.

While the point of Agrippa is ostensibly the poem, the mechanism of delivery was very important to the appeal of it as well as the media attention (of course the fact that Gibson was well known by then was important), and you could imagine something similar for a demo. Add a hardware element, and packaging that forms part of the whole.

https://en.wikipedia.org/wiki/Agrippa_(A_Book_of_the_Dead)

Re:The most advanced MySQL raytracer on the market by kebman on Thursday October 10, 2019 @11:19PM (#21221259)
Pushwagner printouts are sold for a ludicrous amount of money here in Oslo. No reason demo scene guys shouldn't be able to do that also.
Re:The most advanced MySQL raytracer on the market by bane on Thursday October 10, 2019 @09:56PM (#21220891)
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]

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.

Re:The most advanced MySQL raytracer on the market by xemdetia on Thursday October 10, 2019 @03:39PM (#21218398)
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.
Re:The most advanced MySQL raytracer on the market by bherrmann7 on Thursday October 10, 2019 @04:04PM (#21218605)
"Released under the do whatever the fuck you want license. If you use it for commercial purposes, like rendering your Hollywood studio's new big animated A-Movie, please let me know at [email protected]. " -- https://demozoo.org/productions/268459/info/2923/
Re:The most advanced MySQL raytracer on the market by QuercusMax on Thursday October 10, 2019 @05:16PM (#21219266)
Is there a "this is probably a bad idea; if you use this code I'm not responsible" license?
Re:The most advanced MySQL raytracer on the market by jniedrauer on Thursday October 10, 2019 @05:25PM (#21219341)
Sounds like you want the MIT license
Re:The most advanced MySQL raytracer on the market by simtel20 on Thursday October 10, 2019 @05:25PM (#21219343)
Yep, that's the one.
Re:The most advanced MySQL raytracer on the market by james_s_tayler on Thursday October 10, 2019 @04:35PM (#21218885)
Is there a TL;DR legal entry for that? LMAO.
Re:The most advanced MySQL raytracer on the market by windsurfer on Thursday October 10, 2019 @04:48PM (#21219010)
Here is probably the best source for that: http://www.wtfpl.net/faq/
Re:The most advanced MySQL raytracer on the market by chx on Thursday October 10, 2019 @07:17PM (#21220185)
Related: there's a codegolfing answer to draw the biohazard symbol -- in Microsoft SQL Server. It has graphics! For real. https://codegolf.stackexchange.com/a/191323/7733
Re:The most advanced MySQL raytracer on the market by luismedel on Thursday October 10, 2019 @04:00PM (#21218575)
Clever (and unreadable) :-)

Here's another raytracer written in Linq (2007) https://blogs.msdn.microsoft.com/lukeh/2007/10/01/taking-lin...

Re:The most advanced MySQL raytracer on the market by aitchnyu on Friday October 11, 2019 @02:38AM (#21222070)
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.

https://postgis.net/docs/RT_ST_AsRaster.html

Re:The most advanced MySQL raytracer on the market by v3nomsoup on Friday October 11, 2019 @11:43AM (#21225450)
By the way, you can find all releases of that party here: https://demozoo.org/parties/3800/

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

Re:The most advanced MySQL raytracer on the market by yellowapple on Thursday October 10, 2019 @03:50PM (#21218500)
Wherefore the fuck?

Though I'm suddenly curious if this can be done in other SQL engines, too.

Re:The most advanced MySQL raytracer on the market by hultner on Thursday October 10, 2019 @04:18PM (#21218744)
Well, yes of course, there's probably an ripe untapped market there. Lot's of potential!
Re:The most advanced MySQL raytracer on the market by Flockster on Thursday October 10, 2019 @03:38PM (#21218386)
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.
Re:The most advanced MySQL raytracer on the market by mwexler on Thursday October 10, 2019 @03:43PM (#21218432)
It is surprising to discover that there is actually a market for multiple MySQL Raytracers, much less that this is the best of them. Clever stuff.
Re:The most advanced MySQL raytracer on the market by sp332 on Thursday October 10, 2019 @03:49PM (#21218496)
Re:The most advanced MySQL raytracer on the market by jolmg on Thursday October 10, 2019 @05:52PM (#21219546)
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.
Re:The most advanced MySQL raytracer on the market by ivalm on Thursday October 10, 2019 @04:46PM (#21218992)
Did we break it? (site doesn't load for me)
Re:The most advanced MySQL raytracer on the market by FridgeSeal on Thursday October 10, 2019 @06:49PM (#21219969)
Site just loads really slowly.
Re:The most advanced MySQL raytracer on the market by pankajdoharey on Thursday October 10, 2019 @05:10PM (#21219212)
Ok so now I am curious if it could be done in other engines Cassandra,SPARQL ...
Re:The most advanced MySQL raytracer on the market by jandrese on Thursday October 10, 2019 @08:38PM (#21220562)
Unrelated question: Is there an Ignobel for Computer Science?
Re:The most advanced MySQL raytracer on the market by etaioinshrdlu on Thursday October 10, 2019 @03:51PM (#21218517)
I wonder if something like this might even be slightly practical using BigQuery or similar..
Re:The most advanced MySQL raytracer on the market by nerpderp82 on Thursday October 10, 2019 @05:10PM (#21219208)
UDFs are throttled, so to get max perf out of BQ one would need to make sure it was pure sql.
Re:The most advanced MySQL raytracer on the market by m463 on Thursday October 10, 2019 @04:06PM (#21218622)
So to accelerate this, do I need an SSD or a GPU or a DBA?
Re:The most advanced MySQL raytracer on the market by PedroBatista on Thursday October 10, 2019 @04:40PM (#21218933)
Yes.
Re:The most advanced MySQL raytracer on the market by ShteiLoups on Thursday October 10, 2019 @05:07PM (#21219183)
Many "cube"s, whatever they are
Re:The most advanced MySQL raytracer on the market by erik_seaberg on Thursday October 10, 2019 @09:31PM (#21220789)
If you tesselate models down to triangles, you're going to want to persist them in a triplestore.