[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Random/algorithm-generated images thread.
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 122
Thread images: 37
File: image2.png (214 KB, 1000x1000) Image search: [Google]
image2.png
214 KB, 1000x1000
Random/algorithm-generated images thread.
>>
>>45152171
i know who you are
>>
Chaotic, not random.
>>
>>45152179
You're a creepy motherfucker
>>
>>45152179
Who am I?
>>
>>45152171
How do I into this?
Keywords, tuts, etc

>inb4 google
>>
>>45152208
Fuck off, Joe.
>>
File: image1.png (304 KB, 1000x1000) Image search: [Google]
image1.png
304 KB, 1000x1000
>>45152221
>learn programming language
>fuck around with its random class
>>
>>45152233
so i.e. png header and then a shitload of random bytes?
>>
File: monitor noise.png (8 KB, 1000x1000) Image search: [Google]
monitor noise.png
8 KB, 1000x1000
>open this image in image viewer
>stand up and listen closely behind your monitor while you zoom in and out with your scroll wheel
>>
>>45152226
I fucking hate you Andy
>>
File: noise.png (3 MB, 2560x1600) Image search: [Google]
noise.png
3 MB, 2560x1600
>>45152171

I'll throw in some perlin noise I've been playing with.
>>
>>45152261
dont do this it creates mustard gas
>>
>>45152226
.............................tom?
>>
>>45152282
Hi brother
>>
>>45152226
>>45152267
>>45152282
>>45152305
hahaha so funny guys +1
>>
>>45152254
completely random will just create boring static, you need to influence the seed with an algorithm
>>
>>45152226
are you from canada?? cos if so i think i know you
>>
>>45152261
what the living fuck, nigger?
>>
File: image1.png (169 KB, 1000x1000) Image search: [Google]
image1.png
169 KB, 1000x1000
the simplest algorithm creates the best art
>>
>>45152342
as in im joe and ive been making random images, not op though
>>45152226
>>
>>45152343
http://dagobah.net/flash/stepping_on_insanity.swf
>>
>>45152305
are you the tom from that shop? i thought i never told you my name
>>
File: image2.png (554 KB, 1920x1080) Image search: [Google]
image2.png
554 KB, 1920x1080
>>
File: primes.png (150 KB, 1000x1000) Image search: [Google]
primes.png
150 KB, 1000x1000
>>
>>45152492
/thread
>>
File: image1.png (295 KB, 1000x1000) Image search: [Google]
image1.png
295 KB, 1000x1000
>>
File: image1.png (273 KB, 1000x1000) Image search: [Google]
image1.png
273 KB, 1000x1000
math.log is one hell of a drug.
>>
File: image1.png (166 KB, 1000x1000) Image search: [Google]
image1.png
166 KB, 1000x1000
>>
File: image1.png (211 KB, 1000x1000) Image search: [Google]
image1.png
211 KB, 1000x1000
>>
What language are you using for these?
>>
File: image1.png (148 KB, 1000x1000) Image search: [Google]
image1.png
148 KB, 1000x1000
>>45152680
I'm using .net's random-class.
>>
File: image1.png (206 KB, 1000x1000) Image search: [Google]
image1.png
206 KB, 1000x1000
>>
File: img.jpg (204 KB, 1118x629) Image search: [Google]
img.jpg
204 KB, 1118x629
>>
>>45152269
This is beautiful, mind throwing up a pastebin of the source?
>>
>>45153532
sure, http://pastebin.com/6xxhvZMN
>>
>>45152670
Ah, source for this one? Algorithm?
>>
>>45154125
cos(x) + sin(y)
>>
File: out.png (111 KB, 1000x1000) Image search: [Google]
out.png
111 KB, 1000x1000
Its a bug, but looks cool anyway.
>>
this stuff is neat. could anyone briefly summarize how these are rendered?
>>
>>45155364
Basically iterate through every pixel, and call a function to set it's colour, then save it to an image.
>>45153655
has a pastebin with some JS if you want to see how he does it.
>>
File: DBQoXUV.png (238 KB, 1500x822) Image search: [Google]
DBQoXUV.png
238 KB, 1500x822
>>
File: voronoimap1.png (410 KB, 5616x2160) Image search: [Google]
voronoimap1.png
410 KB, 5616x2160
>>
>>45152171
>sudo chmod 777 /dev/fb0
>cat /dev/urandom > /dev/fb0
can't get more random generated than that
>>
>>45152254
Thats not how PNG files work.
>>
>>45155654
>PNG
>not glorified 24BPP BMP
>>
How do you guys do this?
Like i no how to generate randomnes but how do you do it so that it has some cool pattern to it?
>>
>>45155668
be at least as non-retarded as the average MENSA member and it'll all click

otherwise kill yourself
>>
>>45155660
PNG's are loslessly compressed you fucking idiot.
>>
>>45155679
PNGs cant be mapped to graphics devices you fucking imbicile

you should be fucking ashamed of yourself
>>
>>45155690
>PNGs cant be mapped to graphics devices you fucking imbicile
When the fuck did i say that they could?
Ofcourse they can't.
>>
Hey, awesome! I was just stopping by to ask the Stupid Questions Thread how to create an image from an algorithm.

So, how are these made? (The non-random ones specifically; I'm trying to find a way to create a batch of images from some passed flags; I'm creating video title screens for a bunch of videos, and manually creating the pics is a pain)

Thanks!
>>
File: 1315454181825.gif (857 KB, 245x245) Image search: [Google]
1315454181825.gif
857 KB, 245x245
This is an algorithm-generated image
>>
What library are you guys using the output the images?
Are you just writing to bitmaps and converting them to png?
>>
>>45155895
>>45155601 is done using .net's system.drawing.bitmap class
>>
File: d3i6exv.jpg (2 MB, 2000x2000) Image search: [Google]
d3i6exv.jpg
2 MB, 2000x2000
How about some fractals.

Here's a Mandelbar fractal I made a while back.
>>
>>45155921
Fractals are faggot shit
>>
File: quicksort.png (2 MB, 1274x954) Image search: [Google]
quicksort.png
2 MB, 1274x954
This guy has some neat imagery
http://www.adamferriss.com/index.php/code/quicksort/
>>
File: d6l33fd.jpg (532 KB, 2000x2000) Image search: [Google]
d6l33fd.jpg
532 KB, 2000x2000
>>45155921
Burning ship
>>
File: d3i198h.jpg (4 MB, 5000x5000) Image search: [Google]
d3i198h.jpg
4 MB, 5000x5000
>>45155921
anti-buddhabrot
>>
File: 1412992971525.png (106 KB, 922x882) Image search: [Google]
1412992971525.png
106 KB, 922x882
>>45155939
>>45155930
>>45155921
breddy god colours, frien
>>
I think these would look a lot nicer with anti-alliacing
>>
>>45155736
post source code?
>>
>>45156578
proprietary, patented by Time Warner
>>
>>45152261
I didn't even need to zoom to hear that, my monitor immediately made a 10db noise when I opened it
what the shit
>>
>>45152261
didn't do shit
>mfw monitor is invincible
>>
File: out.jpg (504 KB, 800x618) Image search: [Google]
out.jpg
504 KB, 800x618
>>
File: out.png (379 KB, 1901x951) Image search: [Google]
out.png
379 KB, 1901x951
It's like Earthbound backgrounds.
>>
>>45156701
is this the commet landing?
>>
>>45156725
No, that one failed
>>
>>45156714
new wallpaper
>>
>>45155334
Andy Warhol would be proud anon
>>
>>45152261
does this only work against IPS plebs?

I didn't hear shit
>>
hello /g/, http://sourceforge.net/projects/imgfun/ creator here, i think i will try OpenCL.NET or multithreading today when i come home and alao get rid of proprietary math interpreter and compile C# code on the fly and use it to computevalues, also, maybe try to use ffmpeg to create webms
>>
>>45156794
What the actual fuck are you on about
>>
>>45156794
.net 5 will add simd, maybe that will be interesting.
>>
>>45156802
cool

last time i tried OpenCL.NET it crashed my gpu driver and went slower then on cpu
i need to learn to write those kernel files
>>
>>45156802
oh so this simd thing automagicaly does math on multicores cool
i found something called Yeeep! and i think i will use it because graphs looked good
>>
>>45156714
this is an amazing wallpaper
>>
Are you guys using OpenGL
>>
>>45156957
maybe, why do you ask?
>>
>>45156714
Sadly I've forgotten how I generated it. Otherwise I'd generate a higher res one. It was a rather complicated input...
>>
File: out.png (2 MB, 1024x1024) Image search: [Google]
out.png
2 MB, 1024x1024
It seems I have made a cloud texture generator
>>
File: wp_ss_20141114_0001.png (2 MB, 1080x1920) Image search: [Google]
wp_ss_20141114_0001.png
2 MB, 1080x1920
>>45155939
Awesome, thanks!
>>
>>45156714
1000 hours in ms paint
>>
>>45157321
Easy reverse engineering.

http://fiddle.jshell.net/nw0h7ey8/show/
>>
>>45157974
>>45156714
>>45155939
I-Is there a math algorithm art out there?
>>45155930
>>
File: vlines.png (1 MB, 1920x1080) Image search: [Google]
vlines.png
1 MB, 1920x1080
>>45158990
here's code, save as .svg and enjoy
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" id="s" width="1920px" height="1080px">
<linearGradient id="blueBg" x1="0%" y1="0%" x2="0%" y2="100%">
<stop offset="0%" style="stop-color:#000000;stop-opacity:1" />
<stop offset="100%" style="stop-color:#7efcfc;stop-opacity:1" />
</linearGradient>
<linearGradient id="redBg" x1="0%" y1="0%" x2="0%" y2="100%">
<stop offset="0%" style="stop-color:#800000;stop-opacity:1" />
<stop offset="100%" style="stop-color:#fffefe;stop-opacity:1" />
</linearGradient>
<script><![CDATA[
var svg = document.getElementById('s');
function rect(params) {
var svgNS = "http://www.w3.org/2000/svg";
var rect = document.createElementNS(svgNS, 'rect');
rect.setAttribute('x', params.x);
rect.setAttribute('y', params.y);
rect.setAttribute('width', params.w);
rect.setAttribute('height', params.h);
rect.setAttribute('fill', 'url(#' + params.bg + ')');
return rect;
}
var halfStep = 17,
mod = 22,
mul = 15;
var width = svg.offsetWidth,
height = svg.offsetHeight,
scale = 1;
for (var x = 0; x < width; x++) {
var group = (x * mul) % mod;
var startx = group * mod * mod;
var h = (Math.floor(Math.abs(x - startx) / mod) * 2 + 1) * halfStep;
var b = true;
for (var y = 0; h > 2 && y*scale < height; y += h, b=!b) {
svg.appendChild(rect({x:x*scale,y:y*scale,w:1,h:h,bg:b?'blueBg':'redBg'}));
}
}
]]></script>
</svg>
>>
how do i into this shit with C
>>
>>45155649
Oh god what would that do
>>
>>45159087
Allow anyone to write onto framebuffer and write random colors onto your framebuffer (kind of a graphics buffer in linux, when doing console stuff).
>>
>>45155921
http://a.pomf.se/xdkgqe.png
http://a.pomf.se/frbuwh.png

Chaos-Game.

I made an interactive version with c++/sfml. It was pretty easy to implement.
>>
>>45152261
The joke's on you, my IPS monitor already makes noises when there's (nearly) full screen black text on white background (e.g. Wikipedia articles).
>>
>>45159113
Welp, trying that on a VM
>>
>>45152261

Depends if your monitor has coil whine or not.

Mine is nice and silent! :P
>>
File: ig.png (550 KB, 1077x749) Image search: [Google]
ig.png
550 KB, 1077x749
Here is a program I made to generate images like this.

https://github.com/diantahoc/RandomIG
>>
File: 1.png (411 B, 500x500) Image search: [Google]
1.png
411 B, 500x500
Don't remember the algos for these, the third one might be X ^ Y or X | Y
>>
File: 2.png (7 KB, 500x500) Image search: [Google]
2.png
7 KB, 500x500
>>
File: 3.png (1 KB, 500x500) Image search: [Google]
3.png
1 KB, 500x500
>>
File: n63k02z.gif (1 MB, 500x500) Image search: [Google]
n63k02z.gif
1 MB, 500x500
I just remembered I made a bunch of gifs as well and uploaded them on my imgur.
>>
File: T8ZdhLu.png (7 KB, 500x500) Image search: [Google]
T8ZdhLu.png
7 KB, 500x500
>>
File: STGJ4Qo.png (56 KB, 500x500) Image search: [Google]
STGJ4Qo.png
56 KB, 500x500
4chan thinks half of them have 'malicious code' in them
>>
>>45159392
Scratch that, about 99% of them
>>
>>45155731
Loop through every pixel and define a new random class each time, and give it a custom seed involving a mathematical formula including the x and y coordinates in some way.

This way you influence the choice of pixelcolor depending on the pixels location.
>>
>>45159308
how do I make the program understand formulas input from strings?
>>
>>45159314
Looks like y * x
>>
>>45159358
Did you make that? If not I think I made it.
>>
>>45159392
You generated viruses anon.
>>
File: wat.png (4 MB, 2560x1600) Image search: [Google]
wat.png
4 MB, 2560x1600
yay this threads' still going :D
>>
>>45159590
I don't know, this is why I use bcParser.NET
>>
>>45159632
MY EYES
>>
>>45159632
eye rape aside, that looks really neat
>>
>>45159632
This is epilepsy inducing lel
>>
>>45159640
Why isn't there an open source version?
>>
>>45159632
formula?
>>
>>45153487
this in 1920x0180?
>>
>>45159691
I was wondering the same.
>>
>>45152269
Nigga, that's some wallpaper material
>>
>>45159704
>>45159691
The internet is full of open source expression evaluators for any programming language that exists. Why bother with something you have to pay to use?
>>
>>45159781
>implying I paid for it
>what is .net decompilers

;^)
>>
>>45155925
This is sweet as a nut. Like some leafy digital Adriatic coast line
>>
>>45152171
What kind of function should i use for drawing according to a mathematical formula?
Thread replies: 122
Thread images: 37

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.