POV-Ray : Newsgroups : povray.binaries.images : Fun with splines (another tree) : Re: Fun with splines (another tree) Server Time
5 Nov 2024 10:21:12 EST (-0500)
  Re: Fun with splines (another tree)  
From: David Wilkinson
Date: 8 Jan 2000 18:16:51
Message: <fmgf7s4obdsq70ce267kt7a0prrvg6lnvm@4ax.com>
On Sat, 08 Jan 2000 10:41:51 -0500, Andrew Clinton <cli### [at] ibmnet> wrote:

>This is the macro:
>
>#macro instslope (Axis1,Axis2)
> #local vX1=vnormalize(Axis1);
> #local vX2=vnormalize(Axis2);
> #local vY=vnormalize(vcross(vX1,vX2));
> #local vZ1=vnormalize(vcross(vX1,vY));
> #local vZ2=vnormalize(vcross(vX2,vY));
> matrix < vX1.x, vY.x,vZ1.x,
>  vX1.y,vY.y,vZ1.y,
>  vX1.z,vY.z, vZ1.z,
>  0,0,0>
> matrix < vX2.x,vX2.y,vX2.z,
>  vY.x,vY.y, vY.z,
>  vZ2.x,vZ2.y,vZ2.z,
>  0,0,0>
>#end
>
>I can't even find the original message anymore but I think it was called
>Reorient (I renamed it).  I can think of many more uses for this, not only for
>trees!
>
Reorient is from John van Sickle's macro zip file
http://users.erols.com/vansickl/macs.htm
and as you say it is an extremely useful macro.

Your tree is looking quite good, but I think the branches need a bit more randomness
in
the angle they make with the trunk.

David
----------------------------
dav### [at] cwcomnet
http://www.hamiltonite.mcmail.com
----------------------------


Post a reply to this message

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