POV-Ray : Newsgroups : povray.binaries.images : Ivy Generator : Re: Ivy Generator Server Time
24 Apr 2024 01:23:15 EDT (-0400)
  Re: Ivy Generator  
From: Thomas de Groot
Date: 5 Jul 2009 03:02:42
Message: <4a505012$1@news.povray.org>
"hobBIT" <bla### [at] gmxde> schreef in bericht 
news:4a4f83fa$1@news.povray.org...

> Imho mesh2 should work, I'm not that pov expert. The algorithm is quite 
> easy:
> - calculate direction from current position, this can be manipulated by 
> different weight factors
> - find nearest intersection to the given object instance, this is done 
> using 'trace', so it should work with mesh2
>   (but this can heavily increase parsing time, I've implemented a little 
> macro which searches in all directions, so 96 traces for every twig step 
> can result in horrible parsing times if objects are too complex, I thought 
> about saving this to a file, so re-reandering with the same params will go 
> much faster)
> - the resulting end position is than moved to this intersection position, 
> leaving a little distance into normal direction of the intersection

Yes, mesh2 objects will work indeed.

I think that writing away the end positions to file would be an excellent 
idea. I do this too for planting on a large height_field for instance. Saves 
a lot of time in the end.

Thomas


Post a reply to this message

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