POV-Ray : Newsgroups : povray.general : Two feature requests related to SVG Server Time
26 Dec 2024 14:31:41 EST (-0500)
  Two feature requests related to SVG (Message 1 to 10 of 15)  
Goto Latest 10 Messages Next 5 Messages >>>
From: SharkD
Subject: Two feature requests related to SVG
Date: 14 Jun 2007 22:40:02
Message: <web.4671fba4f42fd85515e9baef0@news.povray.org>
Two separate feature requests:

1) Support SVG as an import file format.

2) Copy SVG's text formatting capabilities, namely text centering and
aligning text to paths.

SVG is a standard image format and, since it is a vector format, shares many
similarities with POV-Ray. I would like to see POV-Ray adapt some of the
format's capabilities, as well as support the format via import.

-Mike


Post a reply to this message

From: Leroy
Subject: Re: Two feature requests related to SVG
Date: 15 Jun 2007 00:29:01
Message: <467214B6.8000004@joplin.com>
SharkD wrote:
> SVG is a standard image format 

First time I've heard of it :0

But I don't use vector formats much. :)


Post a reply to this message

From: Samuel Benge
Subject: Re: Two feature requests related to SVG
Date: 15 Jun 2007 00:43:42
Message: <467218fe@news.povray.org>
SharkD wrote:
> Two separate feature requests:
> 
> 1) Support SVG as an import file format.
> 
> 2) Copy SVG's text formatting capabilities, namely text centering and
> aligning text to paths.
> 
> SVG is a standard image format and, since it is a vector format, shares many
> similarities with POV-Ray. I would like to see POV-Ray adapt some of the
> format's capabilities, as well as support the format via import.
> 
> -Mike

If this were implemented, it would be nice if the user were able to call 
on individual layers of the image.

SVG is an open-source format, isn't it? Being so, it would make a nice 
addition to POV if it could be implemented without bloating the program.

~Sam


Post a reply to this message

From: Warp
Subject: Re: Two feature requests related to SVG
Date: 15 Jun 2007 05:00:46
Message: <4672553e@news.povray.org>
SharkD <nomail@nomail> wrote:
> 1) Support SVG as an import file format.

  What exactly would povray do with the SVG?

-- 
                                                          - Warp


Post a reply to this message

From: Bill Pragnell
Subject: Re: Two feature requests related to SVG
Date: 15 Jun 2007 05:55:02
Message: <web.467260f379affa24731f01d10@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> SharkD <nomail@nomail> wrote:
> > 1) Support SVG as an import file format.
>
>   What exactly would povray do with the SVG?

Well, it'd certainly be nice to be able to use SVGs as image_maps - no
interpolation required! I know you can almost do this already with object
patterns but it's a bit fiddly. Would it also cut down on memory usage if
you had many simple image_maps?

Lathe and prism splines can already be exported to POV by Inkscape but I
guess it would be slightly easier if the SVG file could be read directly...

Bill


Post a reply to this message

From: Warp
Subject: Re: Two feature requests related to SVG
Date: 15 Jun 2007 07:06:30
Message: <467272b5@news.povray.org>
Bill Pragnell <bil### [at] hotmailcom> wrote:
> Well, it'd certainly be nice to be able to use SVGs as image_maps - no
> interpolation required! I know you can almost do this already with object
> patterns but it's a bit fiddly. Would it also cut down on memory usage if
> you had many simple image_maps?

  How would you determine that a given point is, for example, on a
polyline or inside a polygon?

  The thing with vector graphics is that they are easy to draw as a whole:
Just draw a line for each line in the input, fill polygons for filled
polygons, and so on. However, if you have to determine for a random point
what is its color, it becomes a bit more complicated.

-- 
                                                          - Warp


Post a reply to this message

From: Bill Pragnell
Subject: Re: Two feature requests related to SVG
Date: 15 Jun 2007 07:35:03
Message: <web.4672786979affa24731f01d10@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
>   How would you determine that a given point is, for example, on a
> polyline or inside a polygon?

Well, you know the line thickness. Just represent lines as additional
polygons then process only polygons (for example; there's bound to be a
quicker way).

>   The thing with vector graphics is that they are easy to draw as a whole:
> Just draw a line for each line in the input, fill polygons for filled
> polygons, and so on. However, if you have to determine for a random point
> what is its color, it becomes a bit more complicated.

It might not be trivial but it's hardly insurmountable. You know the
stacking order, surely it's just a matter of working down that until your
point is inside a polygon or you run out of polygons to test? It can't be
much more complicated than interpolating bitmaps.

Bill


Post a reply to this message

From: scott
Subject: Re: Two feature requests related to SVG
Date: 15 Jun 2007 07:52:32
Message: <46727d80$1@news.povray.org>
>>   The thing with vector graphics is that they are easy to draw as a 
>> whole:
>> Just draw a line for each line in the input, fill polygons for filled
>> polygons, and so on. However, if you have to determine for a random point
>> what is its color, it becomes a bit more complicated.
>
> It might not be trivial but it's hardly insurmountable. You know the
> stacking order, surely it's just a matter of working down that until your
> point is inside a polygon or you run out of polygons to test? It can't be
> much more complicated than interpolating bitmaps.

Or just stack the polygons in the Z direction, then use an orthographic 
camera and trace a ray along the Z direction, ... ermmm, hang on :-)


Post a reply to this message

From: SharkD
Subject: Re: Two feature requests related to SVG
Date: 15 Jun 2007 15:00:01
Message: <web.4672e0ca79affa24259503b20@news.povray.org>
Samuel Benge <stb### [at] THIShotmailcom> wrote:
> If this were implemented, it would be nice if the user were able to call
> on individual layers of the image.

SVG doesn't use layers like Photoshop, AFAIK.


Post a reply to this message

From: Jim Henderson
Subject: Re: Two feature requests related to SVG
Date: 15 Jun 2007 15:25:04
Message: <4672e790$1@news.povray.org>
On Fri, 15 Jun 2007 14:56:10 -0400, SharkD wrote:

> SVG doesn't use layers like Photoshop, AFAIK.

Inkscape's "Plain SVG" export includes layer functionality, though, using 
the <g id="LayerName"> tag.  Surely that's something that could be parsed 
on, and as plain SVG, I'd assume it's standards-compliant.

Jim


Post a reply to this message

Goto Latest 10 Messages Next 5 Messages >>>

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