Author Topic: Tan-Chladni  (Read 4505 times)

0 Members and 1 Guest are viewing this topic.

Offline rdc

  • Pentium
  • *****
  • Posts: 1495
  • Karma: 140
  • Yes, it is me.
    • View Profile
    • Clark Productions
Tan-Chladni
« on: January 09, 2007 »
Master Taj suggested using the tan function (Karma++ for that) to generate a chaldni texture, so I thought I would give it a try. It isn't as compact as the cos function but does produce some interesting textures from time to time. Note that in the tan function you will get a blank screen from time to time.

The program includes exe and source. Press 1 for tan function, 2 for cos function, esc exit.


Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: Tan-Chladni
« Reply #1 on: January 09, 2007 »
rdc,
very cool - the cos is still the best but i like the twist you get from tan.
thanks for trying this out. I also tried atan, acos and asin with no good results. Sin of course is more or less the same as cos.

karma back!
Challenge Trophies Won:

Offline .:] Druid [:.

  • freebasic n00b
  • Pentium
  • *****
  • Posts: 563
  • Karma: 47
    • View Profile
    • Intro-Inferno
Re: Tan-Chladni
« Reply #2 on: January 09, 2007 »
really really nice!  karma party! :)
[sheep]: im sure he wants to goto prison.. they didnt get him last time.. he was promised a big cock up his arse.. and no doubt looking forward to it.. lets hope he gets his wish this year.

Offline rdc

  • Pentium
  • *****
  • Posts: 1495
  • Karma: 140
  • Yes, it is me.
    • View Profile
    • Clark Productions
Re: Tan-Chladni
« Reply #3 on: January 09, 2007 »
Thanks guys. The tan function does produce some interesting patterns at times, although they generally look similar to each other. I tried combining the tan and cos functions, but that didn't really work. I ended up with blank screens. Not sure why at this point.

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Tan-Chladni
« Reply #4 on: January 09, 2007 »
Wonderfull Rdc.
+K :)
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Tan-Chladni
« Reply #5 on: January 09, 2007 »
->Rdc - I guess the problem with the tan one is when you get near tan(90).  That value is infinite and will be causing some kind of fpu overflow condition that might mean any results after that are NAN or 0 or INF or something.  So you need to check for that case.

Very pretty textures for not a lot of code though.

Jim
Challenge Trophies Won:

Offline rdc

  • Pentium
  • *****
  • Posts: 1495
  • Karma: 140
  • Yes, it is me.
    • View Profile
    • Clark Productions
Re: Tan-Chladni
« Reply #6 on: January 09, 2007 »
Thanks Clyde.

Thanks Jim. Yes, I didn't account for the overflow. That is probably the problem.

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: Tan-Chladni
« Reply #7 on: January 10, 2007 »
yeah. kewl  :kewl:
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline rdc

  • Pentium
  • *****
  • Posts: 1495
  • Karma: 140
  • Yes, it is me.
    • View Profile
    • Clark Productions
Re: Tan-Chladni
« Reply #8 on: January 10, 2007 »
Thanks.

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Tan-Chladni
« Reply #9 on: January 10, 2007 »
Sweet looking textures :) Nice nice have some more K :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline rdc

  • Pentium
  • *****
  • Posts: 1495
  • Karma: 140
  • Yes, it is me.
    • View Profile
    • Clark Productions
Re: Tan-Chladni
« Reply #10 on: January 10, 2007 »
Heh. Thanks man.