POV-Ray : Newsgroups : povray.binaries.images : Ivy Generator : Re: Ivy Generator Server Time
26 Apr 2024 18:12:25 EDT (-0400)
  Re: Ivy Generator  
From: hobBIT
Date: 4 Jul 2009 12:31:54
Message: <4a4f83fa$1@news.povray.org>
Thomas de Groot schrieb:
> "hobBIT" <bla### [at] gmxde> schreef in bericht 
> news:web.4a4e17009a7f7b0e28c001c10@news.povray.org...
>> last week I started to write a little ivy generator which can interact 
>> with
>> every povray object. I was a bit inspired by the generator by Thomas Luft
>> (http://graphics.uni-konstanz.de/~luft/ivy_generator/) which only work 
>> with
>> mesh objects. Please leave comments on how to increase realism,
>>
> This is already looking really good! When you say 'every povray object' you 
> mean 'including mesh2'? That is what I understand.
> 
> Thomas 
> 
> 

Thanx :-),

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

hobBIT


Post a reply to this message

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