POV-Ray : Newsgroups : povray.general : Text, csg & speed : Re: Text, csg & speed Server Time
4 Aug 2024 00:28:14 EDT (-0400)
  Re: Text, csg & speed  
From: Jellby
Date: 4 Sep 2003 15:13:37
Message: <3f578ee0@news.povray.org>
Among other things, Mike Williams wrote:

>>I'm modelling an engraved ring (the One Ring, actually), and I'm suffering
>>a serious slow down when I add the text. Currently, the basic structure of
>>the model is something like this:
>>
>>  union {
>>    INNER_RING (inside of the letters, sort of a torus)
>>    difference {
>>      OUTER_RING (a slightly bigger torus)
>>      TEXT (a union of individually rotated and translated letters)
>>    }
>>  }
>>
>>The whole thing is bounded_by a short cylinder of the right size. Is there
>>anything I could do to improve the rendering speed? Without text it
>>renders in around 2 minutes, with text it takes more than 2 hours.
> 
> If possible, try cutting the OUTER_RING into letter-sized pieces,
> difference one letter from each piece and union them back together
> afterwards. Then remove your manual bounding, and let POV bounr it
> automatically.

Thanks for the ideas (yours and the other posters'). I tried this, but it 
was becoming a too complicated code and I didn't see much improvement (I 
assume it would have worked if I had done it right from the beginning).

However, if I manually bound each letter inside the TEXT union, render time 
goes from 180 to 18 minutes (True Type Font test percentage: 44%). I 
thought they would have been automatically bounded, since they are inside a 
union...

-- 
light_source{9+9*x,1}camera{orthographic look_at(1-y)/4angle 30location
9/4-z*4}light_source{-9*z,1}union{box{.9-z.1+x clipped_by{plane{2+y-4*x
0}}}box{z-y-.1.1+z}box{-.1.1+x}box{.1z-.1}pigment{rgb<.8.2,1>}}//Jellby


Post a reply to this message

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