Re:Texgen.js – Lightweight Procedural Texture Generator
by BoppreH on Sunday January 25, 2015 @08:44PM
(#8945153)
Those are very beautiful. I played around, but could not create anything interesting. Adding the source for each sample, not only the first, could be a great addition. I have absolutely no idea how to achieve the effect of #7 or #8, for example.
And I never understood the copyright status of this stuff. If I use texgen to create a texture, is it mine or mrdoob's?
Re:Texgen.js – Lightweight Procedural Texture Generator
by endergen on Sunday January 25, 2015 @08:47PM
(#8945160)
If you read the License file you'll see its the standard MIT license. It's very permissive and allows you to use the cide, modify it and many things without asking for special permission. Read up on the MIT license for a better understanding.
Re:Texgen.js – Lightweight Procedural Texture Generator
by caipre on Sunday January 25, 2015 @09:02PM
(#8945205)
Actually, it seems like a good question to me. The MIT license (and the other major ones, afaik) specifically applies to the software (and docs), not what artifacts the software might produce. It's not clear to me whether those would be included under the same terms. I would assume they're free to use, but I'm not sure that's (always) true and IANAL.
Something to think about: if I write a program that outputs a work under copyright (without actually containing the copywritten work), can I still use a permissive license?
Re:Texgen.js – Lightweight Procedural Texture Generator
by BoppreH on Sunday January 25, 2015 @08:52PM
(#8945176)
Correct. But my doubts are over the output of the software.
On one hand, the output depends on your artistic instructions, so you are entitled to it. On the other hand, the tool greatly restricts the solution space, so the tool itself (and consequently its author) has artistic merit over the result.
Re:Texgen.js – Lightweight Procedural Texture Generator
by mrdoob2 on Sunday January 25, 2015 @09:01PM
(#8945202)
I think a simple way to explain the MIT license is that you can do whatever you want with it as long as you don't say that you created the library yourself.
Textures that you create are as yours are images you create in Photoshop. Probably even more yours than that ;)
Re:Texgen.js – Lightweight Procedural Texture Generator
by BoppreH on Sunday January 25, 2015 @09:11PM
(#8945229)
Oh, hello mrdoob.
My doubt is about authorship. If I make a texture with texgen, can I claim to be the author? Probably yes, but where do we draw the line? If I create a Minecraft world by selecting a single seed, and take a slice of the world as a 2D image, can I claim authorship? What if I didn't even change the seed, just pressed "create"?
I think it depends on the country, but thinking about authorship over procedural generators is weird.
As an example: if I use a seed to create a grainy texture, it probably isn't original. If I use the same image as a grain filter for a photograph, the result may be original (in a legal sense). Both operations are trivial and just a click of a button (or two), so I think the discussion about the ease is moot in that context.
Re:Texgen.js – Lightweight Procedural Texture Generator
by mrdoob2 on Sunday January 25, 2015 @09:20PM
(#8945254)
I think this is a different issue...
I couldn't claim authorship of a machine generated work. I would feel better about claiming authorship of something I've spent a while working on and finding combinations until I get something I like.
Do you claim authorship of Photoshop's cloud filter?
Re:Texgen.js – Lightweight Procedural Texture Generator
by mrec on Monday January 26, 2015 @10:11AM
(#8947344)
It's a slightly worrying grey area. If a generator only has 2 possible combinations of all its various settings, claiming authorship of the output is clearly absurd. If it has 16 trillion possible combinations, maybe less so.
Where do you draw the line? If people can copyright a bunch of settings, does that prevent people from using the generator with randomized parameters in case they accidentally hit a lawsuit?
Re:Texgen.js – Lightweight Procedural Texture Generator
by M4v3R on Monday January 26, 2015 @06:31AM
(#8946494)
It's worth mentioning that Mr.doob (author of this code) is also an author of three.js graphics library and many astonishing demos. Check out his Github and home page (http://mrdoob.com) for (many) more interesting things!
Re:Texgen.js – Lightweight Procedural Texture Generator
by javajosh on Sunday January 25, 2015 @09:44PM
(#8945302)
Wow, what a strange and wonderful little program. I think it's neat how @mrdoob put together a little standard library of functions that can be chained together in a totally understandable abstraction "pass". It's a good project, too, for people who, like me, want to have a good template for doing general pixel-wise manipulation with canvas.
I'll admit to being a bit concerned about programming practices like this. I'm mostly inept at Javascript, but surely the language has better mechanisms for accomplishing the goal here.
Re:Texgen.js – Lightweight Procedural Texture Generator
by mrdoob2 on Sunday January 25, 2015 @09:04PM
(#8945215)
I did it like this because I wanted to create the drawing loop as efficient as possible, without switches or conditionals. That method gets executed per pixel so the less logic the better.
Re:Texgen.js – Lightweight Procedural Texture Generator
by mrdoob2 on Sunday January 25, 2015 @09:13PM
(#8945233)
I instrumented the code and using conditionals resulted in 2x the generation time per loop. These loops are executed only once so the VM doesn't have a chance to optimise them.
Re:Texgen.js – Lightweight Procedural Texture Generator
by flohofwoe on Monday January 26, 2015 @05:43AM
(#8946390)
Stating the obvious, but I'm pretty sure that there are no longer any purely interpreting JS engines around, it's all JIT or AOT compiled, so optimizing for a compilation scenario definitely makes sense.
And I never understood the copyright status of this stuff. If I use texgen to create a texture, is it mine or mrdoob's?
Something to think about: if I write a program that outputs a work under copyright (without actually containing the copywritten work), can I still use a permissive license?
On one hand, the output depends on your artistic instructions, so you are entitled to it. On the other hand, the tool greatly restricts the solution space, so the tool itself (and consequently its author) has artistic merit over the result.
Textures that you create are as yours are images you create in Photoshop. Probably even more yours than that ;)
My doubt is about authorship. If I make a texture with texgen, can I claim to be the author? Probably yes, but where do we draw the line? If I create a Minecraft world by selecting a single seed, and take a slice of the world as a 2D image, can I claim authorship? What if I didn't even change the seed, just pressed "create"?
I think it depends on the country, but thinking about authorship over procedural generators is weird.
http://en.wikipedia.org/wiki/Threshold_of_originality
As an example: if I use a seed to create a grainy texture, it probably isn't original. If I use the same image as a grain filter for a photograph, the result may be original (in a legal sense). Both operations are trivial and just a click of a button (or two), so I think the discussion about the ease is moot in that context.
I couldn't claim authorship of a machine generated work. I would feel better about claiming authorship of something I've spent a while working on and finding combinations until I get something I like.
Do you claim authorship of Photoshop's cloud filter?
Where do you draw the line? If people can copyright a bunch of settings, does that prevent people from using the generator with randomized parameters in case they accidentally hit a lawsuit?
Example: http://mrdoob.github.io/three.js/examples/webgl_terrain_dyna...
Screenshot: http://students.mimuw.edu.pl/~dj189395/nhp/czynic/programy/w...
Use at your peril, preferably in a VM, Wine, or similarly sandboxed environment.
Thanks!
I'll admit to being a bit concerned about programming practices like this. I'm mostly inept at Javascript, but surely the language has better mechanisms for accomplishing the goal here.
If someone knows a better way I'm all ears!