POV-Ray : Newsgroups : povray.binaries.images : Fun with splines (another tree) Server Time
5 Nov 2024 08:06:59 EST (-0500)
  Fun with splines (another tree) (Message 1 to 10 of 10)  
From: Andrew Clinton
Subject: Fun with splines (another tree)
Date: 7 Jan 2000 19:45:56
Message: <387688B0.72A80EFA@ibm.net>
I've been playing with the macro I did for the gardens entry and rewrote
the tree macro to use splines.  I'm surprised I didn't think of this
before...for the entry I used 3 clumsy macros to do mainly the same
thing. For this, the render time wasn't bad, but the parsing was
horrid.  Let me know what you think.

I also picked up a macro from these groups (called Reorient I think?) to
orient the blob components on the slope of the spline. I'm not sure who
wrote it.  Let me know so I can give credit!

Andrew C


Post a reply to this message


Attachments:
Download 'splinetree.jpg' (61 KB)

Preview of image 'splinetree.jpg'
splinetree.jpg


 

From: David Fontaine
Subject: Re: Fun with splines (another tree)
Date: 7 Jan 2000 22:05:45
Message: <3876A72E.B573DCB8@faricy.net>
The trunk curves kind of wierd so it looks like a branch rather than a whole
tree, but it is quite realistic.

> I also picked up a macro from these groups (called Reorient I think?) to
> orient the blob components on the slope of the spline. I'm not sure who
> wrote it.  Let me know so I can give credit!

If it's reposition(vector1,vector2) it might be mine.

--
Homepage: http://www.faricy.net/~davidf/
___     ______________________________
 | \     |_       <dav### [at] faricynet>
 |_/avid |ontaine      <ICQ 55354965>


Post a reply to this message

From: Robert Chaffe
Subject: Re: Fun with splines (another tree)
Date: 7 Jan 2000 22:17:11
Message: <3876ac37@news.povray.org>
Oh, that looks natural.  Are you going to share that macro?  Please?

rc


Post a reply to this message

From: mr art
Subject: Re: Fun with splines (another tree)
Date: 7 Jan 2000 22:32:23
Message: <3876AF91.9569FC70@gci.net>
It looks natural to me. I couldn't tell you what type
of plant/tree/bush is is like, but I wouldn't think
it odd to see it in a landscape. Is there any chance that
you will be releasing the code to the public?

Andrew Clinton wrote:
> 
> I've been playing with the macro I did for the gardens entry and rewrote
> the tree macro to use splines.  I'm surprised I didn't think of this
> before...for the entry I used 3 clumsy macros to do mainly the same
> thing. For this, the render time wasn't bad, but the parsing was
> horrid.  Let me know what you think.
> 
> I also picked up a macro from these groups (called Reorient I think?) to
> orient the blob components on the slope of the spline. I'm not sure who
> wrote it.  Let me know so I can give credit!
> 
> Andrew C
> 
>   ------------------------------------------------------------------------
>  [Image]

-- 
Mr. Art

"Often the appearance of reality is more important 
than the reality of the appearance."
Bill DeWitt 2000


Post a reply to this message

From: TonyB
Subject: Re: Fun with splines (another tree)
Date: 7 Jan 2000 23:29:00
Message: <3876bd0c@news.povray.org>
<<... And so the POV Community reached another level of realism...>> Verse
rand(seed(333))*100, Chapter rand(seed(777))*10 of the Book of POV...


Post a reply to this message

From: Sigmund Kyrre Aas
Subject: Re: Fun with splines (another tree)
Date: 8 Jan 2000 06:16:55
Message: <38771838.7CABEAF0@stud.ntnu.no>
That's amazing! This is just how 'dwarf birch' (?) here in Norway looks.
It grows at high altitude, even above the timberline, so it's often more
weather beaten and crumpled than this.

sig.

Andrew Clinton wrote:
> 
> I've been playing with the macro I did for the gardens entry and rewrote
> the tree macro to use splines.  I'm surprised I didn't think of this
> before...for the entry I used 3 clumsy macros to do mainly the same
> thing. For this, the render time wasn't bad, but the parsing was
> horrid.  Let me know what you think.
> 
> I also picked up a macro from these groups (called Reorient I think?) to
> orient the blob components on the slope of the spline. I'm not sure who
> wrote it.  Let me know so I can give credit!
> 
> Andrew C
> 
>   ------------------------------------------------------------------------
>  [Image]


Post a reply to this message

From: Andrew Clinton
Subject: Re: Fun with splines (another tree)
Date: 8 Jan 2000 10:42:15
Message: <38775ABF.DE875236@ibm.net>
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!

Thanks for the comments,

Andrew C


David Fontaine wrote:

> The trunk curves kind of wierd so it looks like a branch rather than a whole
> tree, but it is quite realistic.
>
> > I also picked up a macro from these groups (called Reorient I think?) to
> > orient the blob components on the slope of the spline. I'm not sure who
> > wrote it.  Let me know so I can give credit!
>
> If it's reposition(vector1,vector2) it might be mine.
>
> --
> Homepage: http://www.faricy.net/~davidf/
> ___     ______________________________
>  | \     |_       <dav### [at] faricynet>
>  |_/avid |ontaine      <ICQ 55354965>


Post a reply to this message

From: Sander
Subject: Re: Fun with splines (another tree)
Date: 8 Jan 2000 11:11:57
Message: <387761cd@news.povray.org>
Very good, Andrew, and since it seems to grow in Norway, it should be put in
the gallery of famous pictures (whose was that again?).
Decidedly beautiful and natural looking.
--
Regards,
Sander


Andrew Clinton <cli### [at] ibmnet> schreef in berichtnieuws
387688B0.72A80EFA@ibm.net...
> I've been playing with the macro I did for the gardens entry and rewrote
> the tree macro to use splines.  I'm surprised I didn't think of this
> before...for the entry I used 3 clumsy macros to do mainly the same
> thing. For this, the render time wasn't bad, but the parsing was
> horrid.  Let me know what you think.
>
> I also picked up a macro from these groups (called Reorient I think?) to
> orient the blob components on the slope of the spline. I'm not sure who
> wrote it.  Let me know so I can give credit!
>
> Andrew C
>


----------------------------------------------------------------------------
----


Post a reply to this message

From: Andrew Clinton
Subject: Re: Fun with splines (another tree)
Date: 8 Jan 2000 13:49:33
Message: <387786A3.DBDA48B6@ibm.net>
Thanks! Certainly, I'll be putting it on my website sometime (and maybe I'll
post it in these groups.)  I'm working on a few more things, mainly adding the
option to define many leaves/flowers/fruit before calling the macro, and their
probabilities of appearing on the endpoint of a segment.

I'm also trying to make it so you don't need a PhD to run this thing...the
arrays that are needed to define before running it may seem daunting.

Andrew C


"mr.art" wrote:

> It looks natural to me. I couldn't tell you what type
> of plant/tree/bush is is like, but I wouldn't think
> it odd to see it in a landscape. Is there any chance that
> you will be releasing the code to the public?
>
> Andrew Clinton wrote:
> >
> > I've been playing with the macro I did for the gardens entry and rewrote
> > the tree macro to use splines.  I'm surprised I didn't think of this
> > before...for the entry I used 3 clumsy macros to do mainly the same
> > thing. For this, the render time wasn't bad, but the parsing was
> > horrid.  Let me know what you think.
> >
> > I also picked up a macro from these groups (called Reorient I think?) to
> > orient the blob components on the slope of the spline. I'm not sure who
> > wrote it.  Let me know so I can give credit!
> >
> > Andrew C
> >
> >   ------------------------------------------------------------------------
> >  [Image]
>
> --
> Mr. Art
>
> "Often the appearance of reality is more important
> than the reality of the appearance."
> Bill DeWitt 2000


Post a reply to this message

From: David Wilkinson
Subject: Re: Fun with splines (another tree)
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.