• Welcome to Dark Bit Factory & Gravity.
 

fragsworth - Image Functions

Started by Rbz, August 01, 2009

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Rbz

For all of you math lovers, check this out:

http://fragsworth.com/image_functions/
http://fragsworth.com/journal/clever_mathematical_creations/

Lots of fun making images out of sin and cos functions ;D
Challenge Trophies Won:

Shockwave

Really cool, Here's one I made :D


(sin(x*y*y)-sin(x*x/y)+(cos(y*y/x)/y)-(x/y))*(sin(x*y*y)-sin(x*x/y))


(View in high quality, it gives a kind of warped chessboard merged with keftales).
Shockwave ^ Codigos
Challenge Trophies Won:

Shockwave

QUite cool too.

x+y/r*sin(g)+(x*y/r*sin(r))
Shockwave ^ Codigos
Challenge Trophies Won:

Rbz

Fire effect:

r*2+g+pow(y/1.8+sin(x),1.0)+(sin(x*1.5)*sin(y))

Challenge Trophies Won:

Shockwave

X marks the spot...


x+y*3*sin(x/y)


Amazing fire btw!
Shockwave ^ Codigos
Challenge Trophies Won:

rdc


Shockwave

My own attempt at fire...


(r*3+(x+y)+x*sin((y+90)*pi)-x*cos((y)*pi))-(b*2+(x-y)+x*sin((y+90)*pi)-x*cos((x)*pi))


Diamond shaped atm
Shockwave ^ Codigos
Challenge Trophies Won:

Rbz

texture:

r+g*sin(x)+cos(y)*sin((x*y)/pi)
Challenge Trophies Won:

Clyde

Looks a nifty find.
not to be thick but what are you supposed to do with those formulas?
obviously r,g,b are the colours and I take it, in 0-255.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

Shockwave

The formula is explained in the website, you have r,g,b,x,y varialbe to play with and all the trig you can throw at it.

Play with the formulas, if it doesnt evaluate, the site will tell you.
Shockwave ^ Codigos
Challenge Trophies Won:

va!n

#10
very nice site! have to check how to reproduce it with own code...
here are some results i have created:

sin(x)*64+cos(y)*64

sin(x)*64+cos(y)*32

sin(x)*1

sin(x)*64

sin(x)*64+cos(y)*32+floor(x*y)

r+g*sin(x)+atan(y)*sin((x+y)/pi)

r+g*sin(x)+atan(y)*sin((x+y)/cos(b))

it makes so much fun! :)
- hp EliteBook 8540p, 4 GB RAM, Windows 8.1 x64
- Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows 8.1 x64
http://www.secretly.de
Challenge Trophies Won:

Shockwave

Rgb plasma thing...

(sin(r+x)*cos(g+y)*atan(b+(x-y)))
Shockwave ^ Codigos
Challenge Trophies Won:

spitfire

awesome, so when will you guys write a tutorial for me about this stuf f:)

benny!

Thats a very cool site indeed.

And cool formulas posted here, too!
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:


Shockwave

I like that you managed to write something on one of them :)
Shockwave ^ Codigos
Challenge Trophies Won:

va!n

#16
here is my newest texture for your dreams of confectionery :P

r+(g/4)*sin(x/4)+atan(y/4)*sin((x+y*b)/cos(b))


next i will try to make a small DBF sign advert there :P
- hp EliteBook 8540p, 4 GB RAM, Windows 8.1 x64
- Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows 8.1 x64
http://www.secretly.de
Challenge Trophies Won:

benny!

Quote from: va!n on August 02, 2009
here is my newest texture for your dreams of confectionery :P

r+(g/4)*sin(x/4)+atan(y/4)*sin((x+y*b)/cos(b))

Sweet!
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

va!n

Yeah... just a small DBF sign on the site :P

(1)if((y+6<11.5)and(floor((x)*3)%80,floor((y+10)*2)%80)in((1,1),(1,2),(1,3),(1,4),(1,5),(2,1),(2,5),(3,1),(3,5),(4,2),(4,3),(4,4),(6,1),(6,2),(6,3),(6,4),(6,5),(7,1),(7,5),(8,1),(8,3),(8,5),(9,2),(9,4),(11,1),(11,2),(11,3),(11,4),(11,5),(12,1),(12,3),(13,1),(13,3),(14,1)))else(-1)

Next i will try to combine a texture with this sign :P
- hp EliteBook 8540p, 4 GB RAM, Windows 8.1 x64
- Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows 8.1 x64
http://www.secretly.de
Challenge Trophies Won:

Shockwave

K+

Here's my (feeble) attempt with your sign..


((1)if((y+6<11.5)and(floor((x)*3)%80,floor((y+10)*2)%80)in((1,1),(1,2),(1,3),(1,4),(1,5),(2,1),(2,5),(3,1),(3,5),(4,2),(4,3),(4,4),(6,1),(6,2),(6,3),(6,4),(6,5),(7,1),(7,5),(8,1),(8,3),(8,5),(9,2),(9,4),(11,1),(11,2),(11,3),(11,4),(11,5),(12,1),(12,3),(13,1),(13,3),(14,1)))else(-1))+(sin(x*y)-cos(x*y*x))
Shockwave ^ Codigos
Challenge Trophies Won: