Author Topic: fragsworth - Image Functions  (Read 2908 times)

0 Members and 1 Guest are viewing this topic.

Offline va!n

  • Pentium
  • *****
  • Posts: 1334
  • Karma: 106
    • View Profile
    • http://www.secretly.de
Re: fragsworth - Image Functions
« Reply #40 on: August 04, 2009 »
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 ^^
Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows7 x64
http://www.secretly.de
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 16788
  • Karma: 439
  • evil/good
    • View Profile
    • My Homepage
Re: fragsworth - Image Functions
« Reply #41 on: August 04, 2009 »
Yes that is a definate improvement. It's exactly as I envisioned it :D
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Xetick

  • Atari ST
  • ***
  • Posts: 106
  • Karma: 73
    • View Profile
    • Plane9
Re: fragsworth - Image Functions
« Reply #42 on: October 14, 2009 »
Fire effect:

Code: [Select]
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
Code: [Select]
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:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 16788
  • Karma: 439
  • evil/good
    • View Profile
    • My Homepage
Re: fragsworth - Image Functions
« Reply #43 on: October 14, 2009 »
Great looking image :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4130
  • Karma: 223
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: fragsworth - Image Functions
« Reply #44 on: October 15, 2009 »
Indeed. Looks great!
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline va!n

  • Pentium
  • *****
  • Posts: 1334
  • Karma: 106
    • View Profile
    • http://www.secretly.de
Re: fragsworth - Image Functions
« Reply #45 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 ;)

 
Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows7 x64
http://www.secretly.de
Challenge Trophies Won:

Offline Xetick

  • Atari ST
  • ***
  • Posts: 106
  • Karma: 73
    • View Profile
    • Plane9
Re: fragsworth - Image Functions
« Reply #46 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:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 16788
  • Karma: 439
  • evil/good
    • View Profile
    • My Homepage
Re: fragsworth - Image Functions
« Reply #47 on: October 18, 2009 »
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:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7145
  • Karma: 69
    • View Profile
Re: fragsworth - Image Functions
« Reply #48 on: October 19, 2009 »
@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:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4130
  • Karma: 223
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: fragsworth - Image Functions
« Reply #49 on: October 19, 2009 »
Indeed. Smooth and cool looking fx.
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline va!n

  • Pentium
  • *****
  • Posts: 1334
  • Karma: 106
    • View Profile
    • http://www.secretly.de
Re: fragsworth - Image Functions
« Reply #50 on: October 27, 2009 »
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?
Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows7 x64
http://www.secretly.de
Challenge Trophies Won:

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 960
  • Karma: 394
    • View Profile
    • my stuff
Re: fragsworth - Image Functions
« Reply #51 on: October 27, 2009 »
Quote
Do 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:

Offline va!n

  • Pentium
  • *****
  • Posts: 1334
  • Karma: 106
    • View Profile
    • http://www.secretly.de
Re: fragsworth - Image Functions
« Reply #52 on: October 27, 2009 »
@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?)
« Last Edit: October 27, 2009 by va!n »
Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows7 x64
http://www.secretly.de
Challenge Trophies Won: