Title: Log spiral DE in a simple way Post by: DarkBeam on September 17, 2013, 06:59:16 PM I think this can be somewhat useful for a 3D extension ;D
Attached an evaldraw screenshot. I was wondering about a coordinate system. Ideas? :o PS to get a double winding spiral, transform xy with Cayley; cay=1/(y*y+(x-1)^2); x1=x*x+y*y-1; y1= 2*y; y = y1*cay; x = x1*cay; More spiral types. Istead of r=log(1*R0)-TH; type r=f(1*R0)-TH; with f = infinity at x=0 ;D Multi-spirals. r=log(1*R0)-TH; type r=log(1*R0)-n*TH; n=an integer. ;D Enjoy!!! Title: Re: Log spiral DE in a simple way Post by: knighty on October 04, 2013, 10:23:55 PM :D
What about this: Code: ///////////////////////////////////////////////// It's just an approximation. Title: Re: Log spiral DE in a simple way Post by: DarkBeam on October 05, 2013, 11:00:48 AM ;D I cannot wait to try it in MB. Too bad you used too many temp vars, I must dramatically cut! :'( I will see :police:
Title: Re: Log spiral DE in a simple way Post by: knighty on October 05, 2013, 04:02:32 PM Well... The code I posted is not well written and there is room for improvement and optimization. Here is the obfuscated and slightly optimized spiral function. I've removed the rotScl parameter which rotates/scales the spiral (rotating and scaling a log spiral are exactly the same operation):
Code: #define TWOPI 2. * PI BTW! if you do: Code: min(spiral(x,y,z,cx,cy,Snail,width), spiral(x,y,z,-cy,cx,Snail,width)) Code: //Use arrow keys to modify the grid Title: Re: Log spiral DE in a simple way Post by: DarkBeam on October 07, 2013, 05:01:26 PM If you readed my last post ignore it, I will do it on my own (I will try)
Thanks so much again Knighty :beer: Title: Re: Log spiral DE in a simple way Post by: DarkBeam on October 07, 2013, 06:49:25 PM :D I made a trasform using your whippin' formulas. More stuffy stuff 2 come |