Dark Bit Factory & Gravity

PROGRAMMING => Freebasic => Topic started by: rdc on January 09, 2007

Title: Tan-Chladni
Post by: rdc 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.

Title: Re: Tan-Chladni
Post by: taj 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!
Title: Re: Tan-Chladni
Post by: .:] Druid [:. on January 09, 2007
really really nice!  karma party! :)
Title: Re: Tan-Chladni
Post by: rdc 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.
Title: Re: Tan-Chladni
Post by: Clyde on January 09, 2007
Wonderfull Rdc.
+K :)
Title: Re: Tan-Chladni
Post by: Jim 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
Title: Re: Tan-Chladni
Post by: rdc on January 09, 2007
Thanks Clyde.

Thanks Jim. Yes, I didn't account for the overflow. That is probably the problem.
Title: Re: Tan-Chladni
Post by: benny! on January 10, 2007
yeah. kewl  :kewl:
Title: Re: Tan-Chladni
Post by: rdc on January 10, 2007
Thanks.
Title: Re: Tan-Chladni
Post by: Shockwave on January 10, 2007
Sweet looking textures :) Nice nice have some more K :)
Title: Re: Tan-Chladni
Post by: rdc on January 10, 2007
Heh. Thanks man.