POV-Ray : Newsgroups : povray.general : .pov in .html Server Time
4 Nov 2024 21:24:13 EST (-0500)
  .pov in .html (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From: Rafal 'Raf256' Maj
Subject: .pov in .html
Date: 21 Sep 2003 15:42:38
Message: <Xns93FDDCB18BF46raf256com@204.213.191.226>
Hi,
where can I downoad programs to make colored .html document from .pov file 
(best - basing on CSS classes that can be later declared in <head> by 
autor)?

Or maybe - do someone have PHP script for generating such code?

TIA

-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: Tim Nikias v2 0
Subject: Re: .pov in .html
Date: 21 Sep 2003 15:46:48
Message: <3f6e0028$1@news.povray.org>
Found this just today while I was googling
for POV-Related stuff and JRG's Scatter-
Macro:

http://www.hanfordonline.co.uk/povray/content/pov2html/

Regards,
Tim


-- 
Tim Nikias v2.0
Homepage: http://www.digitaltwilight.de/no_lights
Email: no_lights (@) digitaltwilight.de


> Hi,
> where can I downoad programs to make colored .html document from .pov file
> (best - basing on CSS classes that can be later declared in <head> by
> autor)?
>
> Or maybe - do someone have PHP script for generating such code?
>
> TIA
>
> -- 
> #macro
g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
> pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local
l=mod(c,100
> );g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end
light_source{
> y 2}sphere{z*20
9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 11.09.2003


Post a reply to this message

From: Ken
Subject: Re: .pov in .html
Date: 21 Sep 2003 15:48:49
Message: <3F6E0095.E207F166@pacbell.net>
Rafal 'Raf256' Maj wrote:
> 
> Hi,
> where can I downoad programs to make colored .html document from .pov file
> (best - basing on CSS classes that can be later declared in <head> by
> autor)?
> 
> Or maybe - do someone have PHP script for generating such code?

http://www.palfrader.org/code2html/

-- 
Ken Tyler


Post a reply to this message

From: Warp
Subject: Re: .pov in .html
Date: 21 Sep 2003 15:55:01
Message: <3f6e0215@news.povray.org>
Tim Nikias v2.0 <no_lights (@) digitaltwilight.de> wrote:
> http://www.hanfordonline.co.uk/povray/content/pov2html/

  It uses variable-width font... ugh!

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Slime
Subject: Re: .pov in .html
Date: 21 Sep 2003 16:46:09
Message: <3f6e0e11$1@news.povray.org>
> http://www.hanfordonline.co.uk/povray/content/pov2html/


Looks good to me, except that it uses "strong" tags for everything, which is
fairly arbitrary... when you're styling with CSS, you should use HTML tags
that closely represent what they surround. Obviously, there's no
<povkeyword> tag, but it might make sense to use an <em> tag for that
(because you want the keywords emphasised in one way or another), and maybe
<span> tags for most other things, since there's no real meaning associated
with them.

Now, what would be *really* awesome, is if it turned macro calls and
identifiers into hyperlinks which linked to the place in the source where
they were defined... =)

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

From: Lutz-Peter Hooge
Subject: Re: .pov in .html
Date: 21 Sep 2003 16:51:04
Message: <3f6e0f38@news.povray.org>
Rafal 'Raf256' Maj <spa### [at] raf256com> wrote:

> Or maybe - do someone have PHP script for generating such code?

Yes, I made one last year. It is still on the free webspace where
I uploaded it then. You can see its output here:
http://mitglied.lycos.de/lpvader/pov2html/pov2html.php?sourcefile=source.pov

If you want the source, you can just use a security hole in it 
to get it ;-)

Lutz-Peter


Post a reply to this message

From: Marc Champagne
Subject: Re: .pov in .html
Date: 21 Sep 2003 20:24:23
Message: <Xns93FDCF1FAEA40POVMIKA@204.213.191.226>
Warp <war### [at] tagpovrayorg> wrote in
news:3f6e0215@news.povray.org: 

> Tim Nikias v2.0 <no_lights (@) digitaltwilight.de> wrote:
>> http://www.hanfordonline.co.uk/povray/content/pov2html/
> 
>   It uses variable-width font... ugh!

Umm its fixed width for me, chances are that your brower's
default setting for fixed font has been set/changed to a
variable one :) 

-- 
Marc Champagne
marcch.AT.videotron.DOT.ca
Montreal, CANADA


Post a reply to this message

From: ABX
Subject: Re: .pov in .html
Date: 22 Sep 2003 02:56:10
Message: <557tmvglp91u245am5ajdgd4kilgh8ukei@4ax.com>
On 21 Sep 2003 15:42:38 -0400, "Rafal 'Raf256' Maj" <spa### [at] raf256com> wrote:
> Hi,
> where can I ...

http://news.povray.org/search/?s=html

ABX


Post a reply to this message

From: Tom Melly
Subject: Re: .pov in .html
Date: 22 Sep 2003 07:00:02
Message: <3f6ed632@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message news:3f6ecdc3@news.povray.org...
>
> pre {  font-family: "Lucida Console, Arial, Helvetica, sans-serif"; font-size:
normal}

iirc that's pretty shi**y CSS anyway - Lucida Console is the only font that
should be quoted - i.e.:
pre {  font-family: "Lucida Console", Arial, Helvetica, sans-serif; font-size:
normal}


Post a reply to this message

From: Tim Cook
Subject: Re: .pov in .html
Date: 22 Sep 2003 11:41:49
Message: <3f6f183d@news.povray.org>
Warp wrote:
> And failing all that, it takes "sans-serif" which by definition
> is proportional.

Sans serif is NOT by definition proportional.  Sans serif is by
definition 'without serifs' (you know, those little hooks at the
ends).  Has nothing to do with proportionality.  A fixed-width
font can be sans serif.


Post a reply to this message

Goto Latest 10 Messages Next 2 Messages >>>

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