Convert/export graphics from Pov-Ray in 2D vector format
Asked Answered
G

3

5

By default, Pov-Ray renders a bitmap file. Is there a way to convert or export the same image, in a vector format like eps, pdf, svg etc?

Groceryman answered 15/9, 2012 at 9:29 Comment(0)
F
4

POV-Ray does not have any sort of vector output. In general ray-tracers (like POV-Ray) work by tracing rays from screen pixels into the scene, to work out what colour pixels should be - so they are inherently pixel based.

To 'ray-trace' to a vector format, you would have to calculate illumination values for each visible polygon, and then project the polygons onto the viewing angle as vectors. I don't know of any available software that can do this.

Freemanfreemartin answered 15/9, 2012 at 9:34 Comment(1)
Thanks. I hoped to be a solution, but at least now I know I shouldn't waste time looking after it.Groceryman
M
2

I'll also add that if you take an image and convert it using most tools to a vector format like pdf or eps, it basically just wraps up the bitmap data into an array and still can only render it pixel by pixel.

But if you render with POV-Ray at high contrast so that you can convert it to a black and white image, you can then use free software called potrace to convert it to true vector graphics.

Macrospore answered 27/12, 2012 at 22:47 Comment(1)
Thanks, that was what I eventually did.Groceryman
S
2

Firstly, you can export the POV-Ray graphic to an asc file. To do so, see the link and answer given here.

Then you can open this asc file in Meshlab, and then export it in the STL or OBJ format. Finally you can import the STL or the OBJ file in Wings3D, which allows to export to eps and svg.

Subclavian answered 25/3, 2018 at 16:25 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.