Author Topic: yet another chladni effect  (Read 11840 times)

0 Members and 1 Guest are viewing this topic.

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
yet another chladni effect
« on: August 12, 2007 »
Hi dbfers,

this one doesnt need shaders but you may need a decent graphics card. It links to d3d, doesnt use it, but if it fails to start, thats why. Anyway. Its a cool effect.

Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17426
  • Karma: 499
  • evil/good
    • View Profile
    • My Homepage
Re: yet another chladni effect
« Reply #1 on: August 12, 2007 »
Runs quite well here in fact and the effect is unusual and neat I thought!  :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: yet another chladni effect
« Reply #2 on: August 12, 2007 »
Very nice and different effect, a bit slow here ( lots of polygons ?? )
Challenge Trophies Won:

Offline mike_g

  • Amiga 1200
  • ****
  • Posts: 435
  • Karma: 34
    • View Profile
Re: yet another chladni effect
« Reply #3 on: August 12, 2007 »
Looks very nice, I'm going to have to download before I can DX 9 to watch it tho.

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: yet another chladni effect
« Reply #4 on: August 12, 2007 »
Very nice and different effect, a bit slow here ( lots of polygons ?? )


yes lots and lots...remind me your card 6600? I added a new exe - should be faster for you. A bit.
« Last Edit: August 12, 2007 by chris »
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: yet another chladni effect
« Reply #5 on: August 12, 2007 »
Good effect with interesting colouring ;)  How many polys, worst case, in the original?

Jim
Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: yet another chladni effect
« Reply #6 on: August 13, 2007 »
Very nice and different effect, a bit slow here ( lots of polygons ?? )


yes lots and lots...remind me your card 6600? I added a new exe - should be faster for you. A bit.

Much better now thx :), but now the background is white, is that right ???
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: yet another chladni effect
« Reply #7 on: August 13, 2007 »
Yeah, white is faster to render than black on the 6600. >:D

Jim
Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: yet another chladni effect
« Reply #8 on: August 13, 2007 »
Yeah, white is faster to render than black on the 6600. >:D

Jim

All my intros will be white then  ;)
Challenge Trophies Won:

Offline va!n

  • Pentium
  • *****
  • Posts: 1435
  • Karma: 109
    • View Profile
    • http://www.secretly.de
Re: yet another chladni effect
« Reply #9 on: August 13, 2007 »
@chris:
very nice! i like both versions because of following:

1st version = each object is small and this is why it all looks smooth
2nd version = each object is bigger, i would prefer something between small (old version) and this ^^

If you want do it as 4k and can need any help with design i would like to help you...
- 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:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: yet another chladni effect
« Reply #10 on: August 13, 2007 »
Very nice and different effect, a bit slow here ( lots of polygons ?? )


yes lots and lots...remind me your card 6600? I added a new exe - should be faster for you. A bit.

Much better now thx :), but now the background is white, is that right ???


@rbraz: Yes I'm having a "white period" artistically speaking :-), remember my ao spheres was on white too. I have a thing for white at the moment. Also I hear from a very good programmer that white is faster on 6600 cards than black. (You can see search engines picking this up right now :-)

@jim: original was 40X40X40X(3X3) and at max I suppose all of them could be displayed, though average is a lot less. So, about 576,000. Back face culling proved to not improve the speed. I'm assuming that this is because its done after transform. That said there are far more efficient ways to achieve this effect but they require...horror...more bytes. Also state changes for colour dont help. Lastly the function at each point is quite complex (lots of mults, comparison, three cos etc) so eventually the CPU may also be an issue (it also has to submit 40x40x40 x 4 opengl calls too).

@va!n: I have no desire to turn it into a 4k, if you want the code drop me a PM, I'll trim it down and send it to you and you can use it for whatever you want. Its written in such a way that the evaluator of each point is a function pointer, meaning you could have quite a few of these in 4k. Metaballs would be one I guess.

Chris

« Last Edit: August 13, 2007 by chris »
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: yet another chladni effect
« Reply #11 on: August 13, 2007 »
@chris:
Indeed. Interesting effect. Well done.

Second version looks in my eyes more stylish than the first one. Reminds me on
some nice cubism with smooth colors. Nice work, mate!
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: yet another chladni effect
« Reply #12 on: August 13, 2007 »
This is interesting. I thought I would share.

OK for those who dont know, glow (or radial blur actually) without shaders was done like this in OGL:
1. Render object
2. Grab screen as texture
3. Turn on Blending
4. Set Blending mode
5. loop n times:
    - Draw textured ploygon on top of original
    - scale a bit bigger

I decided to mess with the blending modes a bit in the glow function. Here is the result.
Top left: glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_COLOR);    (edge detection!)
Top right: glBlendFunc(GL_SRC_ALPHA, GL_DST_COLOR); (cartoon look!)
Bottom right: glBlendFunc(GL_SRC_ALPHA, GL_SRC_COLOR); (dark motion trail)
Bottom left: glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); (glow when on white, not black)

All with white background remember.

The exe will run damn slow I guess on most machines but its interesting to see (edhuuuKayshunel). Screen shot doesnt show it very well but its there for folks without a fast gfx card.

Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: yet another chladni effect
« Reply #13 on: August 13, 2007 »
@chris:
very interesting indeed. playing and messing around with the blending modes can turn out into some
really interesting fx as your example proofs.

Thanks for giving the different variations of glBlendFunc - i'll keep that in mind for sure to mix with
other fx !!!
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: yet another chladni effect
« Reply #14 on: August 13, 2007 »
If we were half organised, we would do a table with all possible combinations.
Or, we could get drunk.

Hmmmm....
Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: yet another chladni effect
« Reply #15 on: August 14, 2007 »
karma moment 

:cheers:
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: yet another chladni effect
« Reply #16 on: August 14, 2007 »
If we were half organised, we would do a table with all possible combinations.
...

Hmm ... maybe it is just me - but IMHO it's worth to play with blend combinations
each time you create a different effect. The result depends on the fx / colors IMHO.

Here are some screnies of glBlendFunction combinations :

http://wiki.delphigl.com/index.php/glBlendFunc#Beispiele
(Site contains german language)


Or, we could get drunk.

Hmmmm....

Organized boozembly ? This sounds like an impulse for another "Let's have a
DBF-meeting"
discussion ;-)
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17426
  • Karma: 499
  • evil/good
    • View Profile
    • My Homepage
Re: yet another chladni effect
« Reply #17 on: August 14, 2007 »
You could all stay in my garage and help me empty my wine collection if you like.

And by the way Chris, I love the edge detection version of that chladni.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: yet another chladni effect
« Reply #18 on: August 14, 2007 »
You could all stay in my garage and help me empty my wine collection if you like.
...

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

Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: yet another chladni effect
« Reply #19 on: August 14, 2007 »
You could all stay in my garage and help me empty my wine collection if you like.
...

 :cheers:

I'm there. No really I'm posting this from your garage.
Challenge Trophies Won: