POV-Ray : Newsgroups : povray.advanced-users : 2D graphical elements : Re: 2D graphical elements Server Time
30 Jun 2024 02:29:42 EDT (-0400)
  Re: 2D graphical elements  
From: Le Forgeron
Date: 12 Mar 2011 05:17:29
Message: <4d7b4839$1@news.povray.org>
Le 12/03/2011 04:40, posfan12 nous fit lire :
> clipka <ano### [at] anonymousorg> wrote:
>> I guess a macro library would be the way to go there. Making the objects
>> effectively 2D could be achieved by using an almost-zero depth, or
>> intersecting with a simple 2D shape such as a disk or two triangles
>> arranged as a square or something.
> 
> What are good candidate 3D objects? They should be smooth and also render fast.
> 
> 9.2 The ‘rect’ element
> 9.3 The ‘circle’ element
> 9.4 The ‘ellipse’ element
> 9.5 The ‘line’ element
> 9.6 The ‘polyline’ element
> 9.7 The ‘polygon’ element
> 

Already seen in FS#63

    * Rectangles can have rounded corners
    * Polygons have last point connected to first

circle = disc
ellipse = disc + scale
polygon = polygon !
rect = flat box, but rounded corners would be a bonus
line = flat box + rotate, but need a pen size!
polyline = sequence of flat box & connecting disc, also need a pen size


> From the W3C:
> http://www.w3.org/TR/SVG/shapes.html
> 
> 
> Plus the 'path' element, which can be any of:
> 
> + straight lines
> + two types of Bezier curves
> + circular and elliptic arcs

Spline! (and it will suck for circular & elliptic arcs)
and you will need a text processing to load the fonts, split each letter
apart and put them along the spline.


Post a reply to this message

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