Hi, i need your help. I had not really worked with osl, and I need to draw a Vogel Spiral.I found different variations on a python, but not on a osl. if you can show how to do it, or send on the right path, I will be very grateful!
For OSL you need to turn that into a parametric formula (something like f(x, y)=Color).
What you have there is f(w)=[x, y], for w in range(n). So you need to invert that, which is not easy, and the result it’s computational expensive.
Also, you need a shape. A point doesn’t have dimensions, so even if you lucky that the render will peek that exactly point for sampling, It will soon be gone next to the other sampled points.
My sugestion is to use that python to plot an image texture instead of using OSL.
float krug = circle((s-dek_x-0.5), (t-dek_y-0.5), CircleR);
outColor = krug;
}
To start, I want to make small circles draw on the trajectory of a large circle, but how do I implement this in cycle? So I can adjust the number of circles and steps?
I understand what needs to be done somethings like this:
for (int i = 0; i<=360; i = i+10)
but what i need to do with i?