POV-Ray : Newsgroups : povray.general : Help to set this product on Pov-Ray : Re: Help to set this product on Pov-Ray Server Time
25 Apr 2024 02:19:26 EDT (-0400)
  Re: Help to set this product on Pov-Ray  
From: Alain
Date: 13 Dec 2017 20:09:36
Message: <5a31cf50$1@news.povray.org>
Le 17-12-13 à 17:59, Pablo a écrit :
> Hi everyone, i'm Pablo, first-year engineer design student and I have to make up
> this product on pov ray. How would you make it? Sphere_sweep? It doesnt look so
> realistic:(
> Thanks
> 
> This is the product:
>
http://e01-expansion.uecdn.es/assets/multimedia/imagenes/2017/08/24/15035604280222.gif
> 
> 
> 
As Bald Eagle said, but I'd start with the piriform internal function 
that you can find in functions.inc

#include "functions.inc"

Then, you can use f_piriform(x,y,z, Strength).
Alternatively, you may rather want to use half of 
f_lemniscate_of_gerono(x,y,z, Strength).

In both cases, you want to scale up along the main axis.

f_piriform_2d and f_lemniscate_of_gerono_2d are more complexe 
implementations that allow more control over the shape, like making it 
more or less rounded.
Take a look at the sample scene i_internals.pov to get a better 
understanding of the working of those.

For the ribbing, I'd use #declare f_radial = function {pattern {radial 
sin_wave frequency 12}} to be added (go inward) or subtracted (go 
outward) from the above function.
Adjust frequency if you want more or less ribs.


Post a reply to this message

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