POV-Ray : Newsgroups : povray.newusers : SVG and LaTeX Server Time
21 Nov 2024 08:13:20 EST (-0500)
  SVG and LaTeX (Message 1 to 3 of 3)  
From: Revenant
Subject: SVG and LaTeX
Date: 6 Sep 2017 11:25:01
Message: <web.59b01290266642a53635b62d0@news.povray.org>
Hello

I am beginner in Povray. I use LaTeX for producing my documents.

My questions are :
1. Is there any way to render povray scene in svg ?

2. Like Asymptote why don't provide povray package for LaTex, that will be help
to promote povray.

Thank you in advance


Post a reply to this message

From: Bald Eagle
Subject: Re: SVG and LaTeX
Date: 6 Sep 2017 12:35:01
Message: <web.59b023415b026d5ac437ac910@news.povray.org>
"Revenant" <hao### [at] yahoofr> wrote:
> Hello
>
> I am beginner in Povray. I use LaTeX for producing my documents.
>
> My questions are :
> 1. Is there any way to render povray scene in svg ?

POV-Ray scenes are rendered by the rendering engine as a graphic file - bmp,
gif, jpg, png, etc.

SVG is more of a "shape-description file" that software such as a browser uses
to display the interpreted information --- much like POV-Ray has the SDL file
which is used to generate the raytraced image.

You can do something like use the #read directive to see what's in the SVG file
and sort of write your own parser to then build a scene using the mathematical
"primitives" that POV-Ray uses to raytrace a scene,
or in the other direction,
You can write SDL which will write a rough-equivalent shape to an SVG file that
can be displayed by other software.

The latter has been done before, though not exhaustively.

> 2. Like Asymptote why don't provide povray package for LaTex, that will be help
> to promote povray.

As clipka is fond of saying - there are 1000 things that _could_ be done -
however POV-Ray is free, and the dev team has their hands full doing what they
have decided are the most productive things.

I'm not exactly sure what it is that you're looking for, but perhaps this will
start you off in the right direction:

https://tex.stackexchange.com/questions/295135/povray-code-not-highlighted-minted


Post a reply to this message

From: Bald Eagle
Subject: Re: SVG and LaTeX
Date: 6 Sep 2017 15:05:01
Message: <web.59b0466d5b026d5ac437ac910@news.povray.org>
"Revenant" <hao### [at] yahoofr> wrote:

> 2. Like Asymptote why don't provide povray package for LaTex, that will be help
> to promote povray.

Not sure if this is helpful at all:
http://texgraph.forumpro.fr/t187-le-modele-povray-mod


Post a reply to this message

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