Dark Bit Factory & Gravity
PROGRAMMING => Freebasic => Topic started 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.
-
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!
-
really really nice! karma party! :)
-
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.
-
Wonderfull Rdc.
+K :)
-
->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
-
Thanks Clyde.
Thanks Jim. Yes, I didn't account for the overflow. That is probably the problem.
-
yeah. kewl :kewl:
-
Thanks.
-
Sweet looking textures :) Nice nice have some more K :)
-
Heh. Thanks man.