Author Topic: 3d chladni volumes as textures  (Read 3156 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
3d chladni volumes as textures
« on: October 03, 2006 »


Over here Paul Bourke talks about 2d chladni fields which are those amazing patterns you get when you put sand on a metal plate and then vibrate it.
http://local.wasp.uwa.edu.au/~pbourke/modelling/chladni/

He does some work in 3d too but its not very intuitive when you see the shapes.

This afternoon I guessed it might make a cool demo to animate one in 3d texture. I wrote a GLSL shader to do a 3d chladni field and then mapped that to a sphere and animated it in the simplest way possible. I think the result, although a bit esoteric is very cool indeed. This will definitely be appearing in some form in a 4k for breakpoint. The file isnt size compressed, the whole effect might be 400 bytes or so.

So bottom line is, I believe these chladni fields could make awesome textures and geometry generators.

OOOps of course you need shaders to run this - model 2.0 unfortunately. So I'll upload an image in a minute too.

« Last Edit: October 03, 2006 by taj »
Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: 3d chladni volumes as textures
« Reply #1 on: October 03, 2006 »
A couple of small images for those ont able to run the code.

Challenge Trophies Won:

Offline zparticle

  • Atari ST
  • ***
  • Posts: 168
  • Karma: 11
    • View Profile
    • ScottShaver2000
Re: 3d chladni volumes as textures
« Reply #2 on: October 03, 2006 »
That's a pretty cool idea, wish I could run the code.

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1304
  • Karma: 88
    • View Profile
Re: 3d chladni volumes as textures
« Reply #3 on: October 03, 2006 »
looks very cool,

im going to have to find a way of running shader model 2.0 programs.
Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: 3d chladni volumes as textures
« Reply #4 on: October 03, 2006 »
Sorry guys...
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 16784
  • Karma: 439
  • evil/good
    • View Profile
    • My Homepage
Re: 3d chladni volumes as textures
« Reply #5 on: October 03, 2006 »
Damn nice textures, good implimentation, that's just going from the shots you posted. I bet they look even better in motion.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7145
  • Karma: 69
    • View Profile
Re: 3d chladni volumes as textures
« Reply #6 on: October 03, 2006 »
Can run the exe fine. Looks really cool running, reminds me of a kind of plasma-ish effect.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 16784
  • Karma: 439
  • evil/good
    • View Profile
    • My Homepage
Re: 3d chladni volumes as textures
« Reply #7 on: October 03, 2006 »
It died here :(
Shockwave ^ Codigos
Challenge Trophies Won:

Offline zawran

  • Sponsor
  • Pentium
  • *******
  • Posts: 886
  • Karma: 63
    • View Profile
    • zac-interactive
Re: 3d chladni volumes as textures
« Reply #8 on: October 03, 2006 »
Looks rather cool in motion. Great work.

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: 3d chladni volumes as textures
« Reply #9 on: October 03, 2006 »
Thanks all fpr the comments, makes posting worth while.

Clyde, I think you are right. The equations seem to be very similar to plasma ones in many ways. In essence its just the sum of cosines (or sines) in 3d. That didnt occur to me until after I posted. The cool thing is doing it so fast in real time thanks to shaders and cutting holes in the sphere but that said, I'm convinced its just plasma!

 
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4130
  • Karma: 223
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: 3d chladni volumes as textures
« Reply #10 on: October 04, 2006 »
@taj:

Screenies look outstanding. Time to buy better hardware I think ! N1
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline relsoft

  • DBF Aficionado
  • ******
  • Posts: 3250
  • Karma: 47
    • View Profile
Re: 3d chladni volumes as textures
« Reply #11 on: October 04, 2006 »
Awesome dude!!!!

Too bad my card does not support shader 2.0
Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: 3d chladni volumes as textures
« Reply #12 on: October 04, 2006 »
Thanks again guys! If anyone gets interested in shaders and wants the code, anyone can ask of course but my feeling is that very few people here would use the code anyway. However, you are welcome if you want it, just ask.

Shockwave, *should* you be able to run this?...can you run any of the matrix trilogy? if so I'd like to make a few changes to the windowing code and try again with you. I'm worried it doesnt work for you. Also do you have nvdia or ati? What model? Maybe there are some problems with shader compatability. Sigh, things are getting complicated in the hardware world...I'd like to get it sorted so I know if my shader framework is solid or not.
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4130
  • Karma: 223
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: 3d chladni volumes as textures
« Reply #13 on: October 04, 2006 »
[OT]
Anyone can suggest a good / modern gfx-card !? Shouldnt be too expensive
[/OT] sorry for hijacking
[ 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: 3d chladni volumes as textures
« Reply #14 on: October 04, 2006 »
No problem benny...maybe an admin will move the subject somewhere.

When cost is an issue, Ati is, I believe,the better price/performance choice. Thats what I heard and what I saw when I went shopping recently.

The problem is AGP cards are much more expensive than PCI-E...are you AGP or PCI-E? I recently tried to buy a graphics card with PS3.0, DX 9 support and fonud I could not afford an AGP version which was 200 pounds. However that was a 3 months ago and things change. My current graphics card which, whilst not great quality and somewhat unstable, has good shader performance is an Ati 1600 PRO which comes in various types from around 65 pounds for pci-E.

http://www.overclockers.co.uk/acatalog/X1600_Series.html

Its not super fast but it does everything you need. I have found a few issues with some shaders which fall back to software rendering but they are rare. I do not play games so checking on websites about modern game performance on it might be adviseable.

http://www.extremetech.com/article2/0,1697,1945665,00.asp

This concludes that if you play doom3 use Nvidias cards but overall price performance is better with x1600...BTW this article compares 17 graphics cards from 2006, the prices are a bit "old" but conclusions should still be valid. I HATE ati cards but Im on a budget too.



Hope this helps.
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4130
  • Karma: 223
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: 3d chladni volumes as textures
« Reply #15 on: October 04, 2006 »
thanks for your anwers m8. I am definatley about to update some of my hardware compenents.
i will browse around a bit and checking out some hardware sites...

(damn ... i want to see that baby in motion  ;) )
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5098
  • Karma: 380
    • View Profile
Re: 3d chladni volumes as textures
« Reply #16 on: October 04, 2006 »
I'm stuck with AGP at home too.  I bought a Radeon X1600 AGP which is the fastest AGP card ATI make last time I looked.  It cost me around AUD160, which is UKP65 or so.  It can play any of the demos here and all the latest games easily, even though it's a country mile behind the top of the range PCIe stuff.  Watch out though - these new cards are NOISY!  I had to go and spend 15quid on a Zalman whisper quiet fan to stop it keeping me awake at night (2 rooms away!).

Waiting for the Core2Quad to come out next quarter to upgrade my PC I think.  I haven't had a new one for 3 years now - it just shows how the technology went stagnant for a couple of years while Intel dropped the ball.

Jim
Challenge Trophies Won:

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1304
  • Karma: 88
    • View Profile
Re: 3d chladni volumes as textures
« Reply #17 on: October 04, 2006 »
what do you guys make of these new physics accellerators there bolting to mobos?
Challenge Trophies Won:

Offline rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2323
  • Karma: 392
    • View Profile
    • http://www.rbraz.com/
Re: 3d chladni volumes as textures
« Reply #18 on: October 04, 2006 »
@Taj: works fine here, that's a nice idea for texture/effect, looking forward to see your winner 4k, welldone!

P4 2.8 - 512MB
Geforce 6600GT - 128Mb
rbz ^ Codigos
Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: 3d chladni volumes as textures
« Reply #19 on: October 06, 2006 »
Thanks rbraz! Don't hold your breath, I'll aim for breakpoint so its 6 months yet...
Challenge Trophies Won: