POV-Ray : Newsgroups : povray.binaries.scene-files : Spiral image macro Server Time
29 Mar 2024 07:13:23 EDT (-0400)
  Spiral image macro (Message 1 to 4 of 4)  
From: Cousin Ricky
Subject: Spiral image macro
Date: 3 Feb 2022 19:49:52
Message: <61fc7830$1@news.povray.org>
I don't know how Matthew did his, but this is my take.

You will need SphereSweep from the Object Collection as a prerequisite.
SphereSweep can be obtained at:
  https://github.com/CousinRicky/POV-SphereSweep


Post a reply to this message


Attachments:
Download 'spiralimage.zip' (31 KB)

From: m@b
Subject: Re: Spiral image macro
Date: 4 Feb 2022 02:53:19
Message: <61fcdb6f$1@news.povray.org>
On 04/02/2022 8:49 am, Cousin Ricky wrote:
> I don't know how Matthew did his, 


Here are the bones of it:


// Starting points
#declare X0 = 0.001;
#declare Y0 = 0.001;

// Loop
#for(i, 0, 150, 0.01)

     // Displacement - how fast the spiral expands
     #declare D = i*0.003;

     // Angle between steps
     #declare A = i*100;

     // Calculate position on the input image
     #declare X = D*cosd(A);
     #declare Y = D*sind(A);

     // Get value from image
     Colour_test()

     // Draw a cylinder from previous point to current point
     cylinder{<X0,Y0,0><X,Y,0>, 0.005*Brightness}

     // Save current point for next iteration
     #declare X0 = X;
     #declare Y0 = Y;
#end


Post a reply to this message

From: Cousin Ricky
Subject: Re: Spiral image macro
Date: 12 Feb 2022 15:10:00
Message: <web.62081386650e9ef360e0cc3d949c357d@news.povray.org>
Cousin Ricky <ric### [at] yahoocom> wrote:
> I don't know how Matthew did his, but this is my take.

Doh!  "Square <0, 0, 0>...<1, 1, 1>" should be "Square <0, 0, 0>...<1, 1, 0>"!


Post a reply to this message

From: Cousin Ricky
Subject: Re: Spiral image macro, version 2.0
Date: 13 Feb 2022 16:57:39
Message: <62097ed3@news.povray.org>
On 2022-02-03 20:49 (-4), Cousin Ricky wrote:
> I don't know how Matthew did his, but this is my take.
> 
> You will need SphereSweep from the Object Collection as a prerequisite.
> SphereSweep can be obtained at:
>   https://github.com/CousinRicky/POV-SphereSweep

I added some macros to compute sizes and scale the image map (pigment,
actually), and prepared it for the Object Collection when it comes back
online. It us currently hosted on GitHub:
  https://github.com/CousinRicky/POV-SpiralImage


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.