|
|
"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
|
|