TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Texgen.js – Lightweight Procedural Texture Generator

98 pointsby mefover 10 years ago

5 comments

BoppreHover 10 years ago
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.<p>And I never understood the copyright status of this stuff. If I use texgen to create a texture, is it mine or mrdoob&#x27;s?
评论 #8945160 未加载
评论 #8946526 未加载
M4v3Rover 10 years ago
It&#x27;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 (<a href="http://mrdoob.com" rel="nofollow">http:&#x2F;&#x2F;mrdoob.com</a>) for (many) more interesting things!<p>Example: <a href="http://mrdoob.github.io/three.js/examples/webgl_terrain_dynamic.html" rel="nofollow">http:&#x2F;&#x2F;mrdoob.github.io&#x2F;three.js&#x2F;examples&#x2F;webgl_terrain_dyna...</a>
评论 #8946563 未加载
nathellover 10 years ago
Around 2002, I made something similar using WinAPI, in Pascal (FPC). Sadly, the sources are gone, but the executable survives: <a href="http://students.mimuw.edu.pl/~dj189395/nhp/czynic/programy/wintexgen/wintexgen-0.02alpha.exe" rel="nofollow">http:&#x2F;&#x2F;students.mimuw.edu.pl&#x2F;~dj189395&#x2F;nhp&#x2F;czynic&#x2F;programy&#x2F;w...</a> [22 KiB, no external dependencies].<p>Screenshot: <a href="http://students.mimuw.edu.pl/~dj189395/nhp/czynic/programy/wintexgen/wintexgen1.png" rel="nofollow">http:&#x2F;&#x2F;students.mimuw.edu.pl&#x2F;~dj189395&#x2F;nhp&#x2F;czynic&#x2F;programy&#x2F;w...</a><p>Use at your peril, preferably in a VM, Wine, or similarly sandboxed environment.
javajoshover 10 years ago
Wow, what a strange and wonderful little program. I think it&#x27;s neat how @mrdoob put together a little standard library of functions that can be chained together in a totally understandable abstraction &quot;pass&quot;. It&#x27;s a good project, too, for people who, like me, want to have a good template for doing general pixel-wise manipulation with canvas.<p>Thanks!
akerl_over 10 years ago
<a href="https://github.com/mrdoob/texgen.js/blob/564c6efb5b5647ad44d98205c93bf59dc513a85c/src/texgen.js#L29-L38" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mrdoob&#x2F;texgen.js&#x2F;blob&#x2F;564c6efb5b5647ad44d...</a><p>I&#x27;ll admit to being a bit concerned about programming practices like this. I&#x27;m mostly inept at Javascript, but surely the language has better mechanisms for accomplishing the goal here.
评论 #8945215 未加载