POV-Ray : Newsgroups : povray.newusers : text on a cylinder : Re: text on a cylinder Server Time
31 Jul 2024 12:13:27 EDT (-0400)
  Re: text on a cylinder  
From: Warp
Date: 7 Nov 2002 10:09:00
Message: <3dca820c@news.povray.org>
Marc-Hendrik Bremer <Mar### [at] t-onlinede> wrote:
> As there are letters in the  IsoCSG Library, it would be possible to bend
> the full text, including the letters, not just rotate and translate them.
> That would be the "right way", but it is of course overkill to use
> isosurfaces for the average 3D text on a cylinder.

  Calculating the intersection of the (already rotated+translated) letters
and a cylinder will give a cylindrical surface to them, which should work
rather well inside a specific range (meaning that the angle between adjacent
letter should not be too high, or else the will be some kind of ugly
distortion, as this is not true bending, but just "carving" the outer
part of the letter to be round).

  Btw, is it more efficient to calculate the intersection of a cylinder
and the union of the letters, or making a union with the intersections of
individual letters with (identical) cylinders?

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

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