|
|
m@b wrote on 08/06/2021 11:32:
> On 08/06/2021 4:24 pm, Mr wrote:
>> "m@b" <sai### [at] googlemailcom> wrote:
>>> Trying to emulate mechanical shading.
>>>
>>> m@
>>
>> Nice!
>> How does it work?
>>
>
> The image is put into a function:
>
> #declare MyTesti = function
> { pigment
> }
>
> (I am not sure where this function came from - I used it many years ago
> in another project.)
>
> These 4 functionas contain the information for each colour:
>
> #declare TestG = function {MyTesti(x,y,z).green}
> #declare TestB = function {MyTesti(x,y,z).blue}
> #declare TestK = function {MyTesti(x,y,z).grey}
>
> Each point on the image is interrogated and a sphere is drawn.
> The sphere is scaled by a constant in X and by brightness in Y.
> The sphere is rotated depending on the predominant colour: R, G, B or
> neutral. (Rotation must be a multiple of 45 degrees or the spheres don't
> join up to make a line.)
> The sphere is scaled to match the aspect of the input image.
>
> I can post the code, but it needs to be cleaned up first.
>
> m@
>
>
>
The results are very promising, looking in the code would be
interesting, thank you,
Paolo
Post a reply to this message
|
|