POV-Ray : Newsgroups : povray.binaries.images : Lizards pattern : Re: Lizards pattern Server Time
5 Nov 2024 13:25:26 EST (-0500)
  Re: Lizards pattern  
From: Bill Pragnell
Date: 26 Mar 2009 05:30:01
Message: <web.49cb49e8135d7136dd25f0b0@news.povray.org>
Thibaut Jonckheere <tua### [at] MAPSONyahoofr> wrote:
> I like it !
>
> and I would be interested by the method and the include file

Well, the method's not complicated, although maybe a little tedious (I did say
'relatively' quick!). Import the source image into inkscape, and trace the
fundamental repeating shape. Not the 'unit cell' of the pattern, just one
light/dark pair - in the case of the lizards, this was one complete lizard plus
the spine and eyes from the neighbour. Combine the paths. Export to POV-Ray. A
few trials (and errors) should allow you to copy and rotate the prism
sufficient to fill a unit cell. Many of them will be off the edge of the unit
cell, but no matter. Then, use an object pattern based on a union of the
prisms, and use repeat warps in x and z to populate the plane.

Some care is needed during tracing to make sure the bits of the shapes line up
with each other, but you can get away with some errors - look closely at the
lizards.

This assumes the unit cell is rectangular - I'm not sure how to approach the
hexagonal/rhomboidal patterns yet.

Bill


Post a reply to this message

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