POV-Ray : Newsgroups : povray.general : How do you create a paint brush effect? : Re: How do you create a paint brush effect? Server Time
16 Apr 2024 17:03:33 EDT (-0400)
  Re: How do you create a paint brush effect?  
From: Alain Martel
Date: 25 Feb 2020 11:16:34
Message: <5e554862$1@news.povray.org>
Le 2020-02-25 à 08:40, Kima a écrit :
> I wonder what shapes/objects can be used and manipulated to form a paintbrush on
> the canvas, something like
> 
>
https://cdn.imgbin.com/18/11/4/imgbin-oil-paint-paintbrush-watercolor-painting-paint-purple-paint-sticker-GPeinj6dEyvmi
> KYTwDs7AaiA9.jpg
> 
> In the same context, how do you create a spatial object like
> 
>
https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcTtlV3vfVdQRULRJrpWyoqVjDFi9Y2faXwYksCJ57Pr1i_qaVE4
> 
> The reason I mentioned the latter is its similarity with julia_fractal. Perhaps,
> the way julia_fractal is created in POV-Ray can be employed to build the above
> images.
> 
> 

For the first, some creative use of normal could do the trick.

For the second, it can probably be achieved using an isosurface where 
you also manipulate the coordinates passed to the function : Having the 
X and Z coordinates affected by the sin and cos of the Y coordinate will 
cause the shape to twist in a similar way.

Try :
Func(x*sin(y), y, z+cos(y))
to see how it works.
Replace «Func» with some function of your won devising.


Post a reply to this message

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