5 ms·
I tried to find some code that wasn't minified to assess the quality of this, and I found some shader code for the sky in the gemini version. The whole shader l
by BearOso 11mo ago
I tried to find some code that wasn't minified to assess the quality of this, and I found some shader code for the sky in the gemini version. The whole shader looks like it was regurgitated verbatim. This wouldn't hold up to licensing scrutiny. Here's a snippet from it:
// wavelength of used primaries, according to preetham
const vec3 lambda = vec3( 680E-9, 550E-9, 450E-9 );
// this pre-calcuation replaces older TotalRayleigh(vec3 lambda) function:
// (8.0 * pow(pi, 3.0) * pow(pow(n, 2.0) - 1.0, 2.0) * (6.0 + 3.0 * pn)) / (3.0 * N * pow(lambda, vec3(4.0)) * (6.0 - 7.0 * pn))
Who's Preetham? Probably one of the copyright holders on this code.
- toat 11mo agoNo. A J Preetham: https://www.researchgate.net/publication/220720443_A_Practical_Analytic_Model_for_Daylight https://www.researchgate.net/publication/220720443_A_Practic...
- blankarea 11mo ago[dead]
- stopachka 11mo agoIf you're curious about the source, here's the snapshot: Codex: https://github.com/stopachka/cscodex https://github.com/stopachka/cscodex Gemini: https://github.com/stopachka/csgemini https://github.com/stopachka/csgemini Claude: https://github.com/stopachka/csclaude https://github.com/stopachka/csclaude
- BearOso 11mo agoThanks. Turns out that shader is a builtin of three.js.
- wahnfrieden 11mo agoPlease try again with Codex on High or Extra High. 5.1-Max nerfed it a bit if you don't use higher thinking.
- rusk 11mo agoThis is overparameterisation
- wahnfrieden 11mo agoNo
- wahnfrieden 11mo agoI guess you have not tried GPT 5 Pro GPT’s differentiator is they focused on training for “thinking” while Gemini prioritized instant response. Medium thinking is not the limit of utility Re: overparameterization specifically Medium and High are also identically parameterized Medium will also dynamically use even higher thinking than High. High is fixed at a higher level rather than leaving it to be dynamic, though somewhat less than Medium’s upper limit
- deleted 11mo ago[deleted]
- 20k 11mo agoI always find it amazing that people are wiling to use AI beacuse of stuff like this, its been illegally trained on code that it does not have the license to use, and constantly willy nilly regurgitates entire snippets completely violating the terms of use Edit: https://github.com/vorg/pragmatic-pbr/blob/master/local_modules/glsl-sky/index.glsl#L48 https://github.com/vorg/pragmatic-pbr/blob/master/local_modu... https://github.com/vorg/pragmatic-pbr/blob/master/local_modules/glsl-sky/index.glsl#L71 https://github.com/vorg/pragmatic-pbr/blob/master/local_modu... This looks like where the source code was stolen from: this repository is unlicensed, and this is copyright infringement as a result
- nerdponx 11mo agoYou presume that people care about things like this. A lot of people don't.
- 20k 11mo agoCompanies should. Its a business risk, you open yourself up to legal action
- nineteen999 11mo ago"Claude - rewrite this apparently copyrighted code that can be found online here <http://...> in a way that makes it a unique implementation." <- probably will work.
- bryanhogan 11mo agoIt's fascinating that people care very much about this when it's visual arts, but when it comes to code almost no one does. E.g. the latest Anno game (117) received a lot of hate for using AI generated loading screen backgrounds, while I have never heard of a single person caring about code, which probably was heavily AI generated.
- deleted 11mo ago[deleted]
- nineteen999 11mo agoPreetham is the author of the paper that defines this algorithm from 1999: https://tommyhinks.com/2009/02/10/preetham-sky-model/ https://tommyhinks.com/wp-content/uploads/2012/02/1999_a_practical_analytic_model_for_daylight.pdf Rather than stolen from Mr. Preetham, it's much more likely this fragment is generated from a large number of Preetham algorithm implementations out there, eg. I know at least Blender and Unreal implement it and probably heaps of others was well. Nobody is going to sue you for using their implementation of a skybox algorithm from 1999, give us break. It's so generic you can probably really only write it in a couple of different ways. If youre worried about it you can always spend a day with Claude, ChatGPT and yourself looking for license infringements and clean up your code.
- bilekas 11mo ago> Nobody is going to sue you for using their implementation of a skybox algorithm from 1999, give us break. For personal use maybe not, but that's not the point, the point is it's spitting out licensed code and not even letting you know. Now if you're a business who hire exclusively "vibe" coders with zero experience with enterprise software, now you're on the hook and most likely will be sued.
- mgraczyk 11mo agoDo you have any evidence that it is spitting out licensed code? Did you locate an original that it was copied from?
- bilekas 11mo agoThis particular case appears to me to be a straight derivative at best but I'm by no means an expert on copyright laws. That's not to say there hasn't already been more direct cases with set examples [1], from an author directly who would have a better right to claim than I [2], it's not even a stretch to see how it can happen. [1] https://arxiv.org/html/2408.02487v3 https://arxiv.org/html/2408.02487v3 [2] https://x.com/DocSparse/status/1581461734665367554 https://x.com/DocSparse/status/1581461734665367554
- lolidiots 11mo ago[dead]
- deleted 11mo ago[deleted]
- speedgoose 11mo agoI also noticed that AI agents commit many copyright infringements with the work of Mr Dijkstra.
- pwatsonwailes 11mo agoThat's a stellar observation right there.
- pwatsonwailes 11mo agoTo be clear, this is a pun on A*
- georgefrowny 11mo agoMessrs Newton and Raphson would like to join this class-action.
- fbrncci 11mo agoThe idea that someone could hold copyright over such a tiny snippet of code is just as stupid as LLMs regurgitating them.
- spacedoutman 11mo agoPersonally i find it absurd that code can be copyrighted at all.
- NitpickLawyer 11mo agoCopyright is so-so. At the end of the day you can say that the complete work (not just snippets) is something copyrightable. But the most bananas thing for me is that one can patent the concept of one click purchasing. That's insane on many levels.
- simultsop 11mo agoWhy bananas? That is the biggest invention after edisons bulb.
- petterroea 11mo agoA lot of computer graphics algorithms are named after their authors
- jstummbillig 11mo agoIf only this particular regurgitation engine took a minute to check their work.