• 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.

va!n

just changed the animation direction, whichs look much more realisti i think ^^
http://fragsworth.com/video_functions/1054/

I love this math... however i still have problems to understand the technique behind this...
This is something, which would be really cool at scool when learning math insteat just writing boring stuff on paper ^^
- 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

Yes that is a definate improvement. It's exactly as I envisioned it :D
Shockwave ^ Codigos
Challenge Trophies Won:

Xetick

Quote from: rbz on August 01, 2009
Fire effect:

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

Very nice! I just found this thread and seeing since I managed to get an expression parser into Plane9 just a few days ago I had to try to redo this effect in it. I had to tweak the expression a bit and also added a scale and movement of the "pixels" in Z. The "pixels" are actually any kind of objects. In this case squares with a blob texture on them.

The resulting expression I ended up using
tx = (x/numobjectsx)*20-10;
ty = (y/numobjectsy)*20-10;
tt = 1-((ty/3+sin(tx+time)+(sin(tx*1.5)*sin(ty+time)))+1)/2;
scale.x = scale.z = tt;
pos.z = tt;
col.r = tt*3;
col.g = tt;
col.b = tt*0.5;


And the final image


Math is neat :)
Plane9 - Home of the Plane9 3d screensaver/music visualizer
Challenge Trophies Won:

Shockwave

Shockwave ^ Codigos
Challenge Trophies Won:

benny!

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

Challenge Trophies Won:

va!n

Yes, screenshot looks really nice! :)

Btw, i found some older sources on my drive when i have tried to code/recode effects from the fragsworth website... so i have compiled and attached my old (totally unoptimized versions)... Test1 was an idea for a 1k intro but as i saw, rbz released something simular in the meanwhile ;)

- 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:

Xetick

Quote from: va!n on October 17, 2009
Yes, screenshot looks really nice! :)

Btw, i found some older sources on my drive when i have tried to code/recode effects from the fragsworth website... so i have compiled and attached my old (totally unoptimized versions)... Test1 was an idea for a 1k intro but as i saw, rbz released something simular in the meanwhile ;)

Great looking effects! High res yet still fast.
Plane9 - Home of the Plane9 3d screensaver/music visualizer
Challenge Trophies Won:

Shockwave

Nice, I prefer the fire looking one the best, it had nicer colours.
The other effect was still interesting though, both ran nice and fast on this old machine.
Shockwave ^ Codigos
Challenge Trophies Won:

Clyde

@Va!n: please produce an intro or demo with those in, looks awesome :)
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

benny!

Indeed. Smooth and cool looking fx.
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

va!n

Thanks for your feedback guys! ;)
Yes, i would really like to code the fire effect as 1k intro... But by the way i just would like know your personally opinion... Is it worth to code this effect in a 1k intro (i.e. with music if i get managed it but it would be hard) or does it make more sence to code this and some other effects in a 4k intro?

In a 1k intro version, the effect will be shown as the test version! However i want like to code using DirectX9 (i.e. DX10 or DX11 - depents on which framework would compile/pack the smallest exe with latest VS! My mainproblem is still, i dont know atm how to code the effect using DirectX nor using very fast PixelShaders. So both ways (DX == drawing pixels on texture or directly to the screen) or using PixelShaders are totally new for me!

So you see the problem for me... i am full of ideas for some possible nice 1k, 4k and 64k intros (a very simple but nice 64k intro), but i have to learn how to code things using DX / Pixelshaders! :( This costs a lot of time... else you would see some more released stuff by me! Possible me still need a second hand, also like someone (a good friend) in the scene living near me and where its possible to meet and learn from ;)

I didnt coded in C/CPP since my last 1k intro (inofficial invitation for BP2009)... I have to buy/install the final release of Win7 64bit and then installing VisualStudio and trying again to start coding DX stuff!

So i think, i have to start step by step and releasing tiny things first like 1k effect instead a complete 4k, where i miss the needed coding technique / knowledge atm... (coding stuff with PB isnt the big problem for me since its very basic but it has some sites i dont like... so my wish is to code needed stuff (Win32 Appz, Win32 with DX and maybe PS stuff) somewhere in the future ^^

Do you think, its okay to release the fire effect as 1k intro?
- 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:

hellfire

QuoteDo you think, its okay to release the fire effect as 1k intro?
Most of an 1k-intro is spend on windows overhead but your effect doesn't make use of the windows-api (which means DirectX or OpenGL) - so how about 256 bytes?
Challenge Trophies Won:

va!n

#52
@hellfire:
256 byte DOS intro? I am not a fan of those DOS intros like 64, 256, 512 byte intros... because they do not work longer since Win7... Personally i think DOS times and those direct mode 13h access is pretty much ancient history. However i am very amazed what people even code in such tiny code - its awesome and you are right, most code is windows overhead!

Btw, coding the effect in mode 13h (i think you mean this, right?) supports only 256 colors afaik... so i think i have to generate an own color-table... i have only tried to code a DOS mode 13h thing (just black screen and printing text on it) over 7 years ago! http://pouet.net/prod.php?which=17598

So you think, it would make no sence to code it using DX or Pixelshader as 1k intro? (still not interesting / to boring / to simple for a 1k?)
- 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: