POV-Ray : Newsgroups : povray.general : Emergency help: Can someone teach me how to make spirals? : Emergency help: Can someone teach me how to make spirals? Server Time
7 Jan 2025 23:31:47 EST (-0500)
  Emergency help: Can someone teach me how to make spirals?  
From: DD123
Date: 3 Jan 2025 21:50:00
Message: <web.6778a14c75c33f99c838269347e8d5e0@news.povray.org>
Hello everyone,

The task asked me to create an image just like the one in Figure 1. There are 5
revolutions in it. So far my code can only create 1  revolution.


#include "colors.inc"
#include "shapes.inc"

camera {
location <6, 9, -13>
look_at <0, 0, 0>
angle 45}
light_source {
<-5, 10, -20>
color 2*White
shadowless}
global_settings {ambient_light 3*White}



sphere_sweep {
linear_spline 11,

#declare N = 0;
#while(N < 11)
#declare RAD = 2*pi*30*N/360;
<2*cos(RAD), 0, 2*sin(RAD)>, 0.1
#declare N = N + 1;
#end
pigment {color Yellow}
}

The outcome can only create 1 revolution of the spiral. I have an external file
that can define the x,y,z axis. Can someone teach me how to create spirals
exactly like figure 1?

Cheers!


Post a reply to this message


Attachments:
Download '1.png' (32 KB)

Preview of image '1.png'
1.png


 

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