POV-Ray : Newsgroups : povray.general : pov 4 feature dream Server Time
7 Aug 2024 05:22:56 EDT (-0400)
  pov 4 feature dream (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: nLewis
Subject: pov 4 feature dream
Date: 27 Nov 2001 17:21:19
Message: <3c0411df@news.povray.org>
It's so simple, it can be done with a little patch if anyone wants to -
How about having a command for POV to print out the post-preprocessed file -
that is, the parsed file - so that if you have tons of macros and while's
and if's you can generate a parsed file with a single command and quickly
render an animation without re-parsing?
Or just saving time?
Or using the same file with minor changes?
Or making a POV X.X scene backwards compatible easily? (If it has functions
like trace())
Or just for fun?
this must be pretty easy to implement.

may your beard grow long and prosper,
Noam Lewis.


Post a reply to this message

From: Jérôme Grimbert
Subject: Re: pov 4 feature dream
Date: 28 Nov 2001 05:08:02
Message: <3C04B783.B4896963@atosorigin.com>
nLewis wrote:
> 
> It's so simple, it can be done with a little patch if anyone wants to -
> How about having a command for POV to print out the post-preprocessed file -
> that is, the parsed file - so that if you have tons of macros and while's
> and if's you can generate a parsed file with a single command and quickly
> render an animation without re-parsing?
> Or just saving time?
> Or using the same file with minor changes?
> Or making a POV X.X scene backwards compatible easily? (If it has functions
> like trace())
> Or just for fun?
> this must be pretty easy to implement.

Your asking for a kind of POB format (text readable, but still same as POB).

It could be done at the end of the parsing, running through each object,
 if you add a function for each object & pigment & finish & interior & ... 
 that would get its data structures and produces a text output.

Beware, you might save parsing time (next time) but not space.
 (a small set of #while can save you millions of lines).
Interestingly, it might convert all meshes in mesh2 format...


Post a reply to this message

From: Warp
Subject: Re: pov 4 feature dream
Date: 28 Nov 2001 05:31:04
Message: <3c04bce8@news.povray.org>
nLewis <noa### [at] writemecom> wrote:
: It's so simple, it can be done with a little patch if anyone wants to -
: How about having a command for POV to print out the post-preprocessed file -
: that is, the parsed file - so that if you have tons of macros and while's
: and if's you can generate a parsed file with a single command and quickly
: render an animation without re-parsing?

  So if you have a 1-kilobyte pov-file which creates a million spheres,
you'll end up with a 50-megabyte parsed file?

  And this idea about having a byte-compiled version of the scene has been
already discussed 100 times before. It is possible, but not simple.

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


Post a reply to this message

From: Tom Stone
Subject: Re: pov 4 feature dream
Date: 29 Nov 2001 20:47:32
Message: <tom.stone-3011010313280001@d212-151-227-115.swipnet.se>
Here's another little idea then.

It would be a nice shortcut to be able to open an .inc file from within
the .pov file by Control-Clicking on the name of the .inc file in the
source.

But maybe that is a platform specific idea, I don't know.

-- 
Tom Stone
Domarebacken 42, 14557 Norsborg, Sweden
Phone: Int+46 8 5318 4318, Tel: 08-5318 4318
http://home5.swipnet.se/~w-52256/index.htm


Post a reply to this message

From: Ron Parker
Subject: Re: pov 4 feature dream
Date: 29 Nov 2001 20:50:42
Message: <slrna0dpfl.t5q.ron.parker@fwi.com>
On Fri, 30 Nov 2001 03:13:27 +0100, Tom Stone wrote:
> Here's another little idea then.
> 
> It would be a nice shortcut to be able to open an .inc file from within
> the .pov file by Control-Clicking on the name of the .inc file in the
> source.
> 
> But maybe that is a platform specific idea, I don't know.

It is, just because there's no cross-platform editor.  But if you had 
a real computer (snerk!) you'd be able to right-click and select "open
whatever.inc" from the menu.

-- 
#local R=rgb 99;#local P=R-R;#local F=pigment{gradient x}box{0,1pigment{gradient
y pigment_map{[.5F pigment_map{[.3R][.3F color_map{[.15red 99][.15P]}rotate z*45
translate x]}]#local H=pigment{gradient y color_map{[.5P][.5R]}scale 1/3}[.5F
pigment_map{[.3R][.3H][.7H][.7R]}]}}}camera{location.5-3*z}//only my opinions


Post a reply to this message

From: Ben Chambers
Subject: Re: pov 4 feature dream
Date: 30 Nov 2001 02:48:10
Message: <3c0739ba@news.povray.org>
"nLewis" <noa### [at] writemecom> wrote in message
news:3c0411df@news.povray.org...
> It's so simple, it can be done with a little patch if anyone wants to -
> How about having a command for POV to print out the post-preprocessed
file -
> that is, the parsed file - so that if you have tons of macros and while's
> and if's you can generate a parsed file with a single command and quickly
> render an animation without re-parsing?
> Or just saving time?
> Or using the same file with minor changes?
> Or making a POV X.X scene backwards compatible easily? (If it has
functions
> like trace())
> Or just for fun?
> this must be pretty easy to implement.
>
> may your beard grow long and prosper,
> Noam Lewis.

AFAIK, you can do this with the preprocessor from gcc.  Unfortunately, I
don't remember how :)

...Chambers


Post a reply to this message

From: Bill DeWitt
Subject: Re: pov 4 feature dream
Date: 30 Nov 2001 07:43:49
Message: <3c077f05$1@news.povray.org>
"Ben Chambers" <bdc### [at] hotmailcom> wrote :
> >
> > may your beard grow long and prosper,
> > Noam Lewis.
>
> AFAIK, you can do this with the preprocessor from gcc.  Unfortunately, I
> don't remember how :)

    Just had to point out this personal hygiene tip.


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: pov 4 feature dream
Date: 30 Nov 2001 08:30:16
Message: <3c0789e8@news.povray.org>
In article <tom### [at] d212-151-227-115swipnetse> , 
tom### [at] swipnetse (Tom Stone) wrote:

> Here's another little idea then.
>
> It would be a nice shortcut to be able to open an .inc file from within
> the .pov file by Control-Clicking on the name of the .inc file in the
> source.
>
> But maybe that is a platform specific idea, I don't know.

In the Mac version you can open the file via the #include file menu of the
currently open window.  No double-clicking yet, but very close.

As far the Windows version, I _think_ this feature is already there, but i
don't know for sure how it works.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Warp
Subject: Re: pov 4 feature dream
Date: 30 Nov 2001 08:38:29
Message: <3c078bd5@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
: As far the Windows version, I _think_ this feature is already there, but i
: don't know for sure how it works.

  It is there and it works. Right-click and select 'Open "whatever.inc"' from
the menu.
  In fact, it's a quite handy feature.

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


Post a reply to this message

From: PeterC
Subject: Re: pov 4 feature dream
Date: 1 Dec 2001 13:56:23
Message: <3c084e33.4487878@localhost>
On Wed, 28 Nov 2001 00:21:48 +0200, "nLewis"
<noa### [at] writemecom> wrote:

>It's so simple, it can be done with a little patch if anyone wants to -
>How about having a command for POV to print out the post-preprocessed file -
>that is, the parsed file - so that if you have tons of macros and while's
>and if's you can generate a parsed file with a single command and quickly
>render an animation without re-parsing?

snip

	What would you do about a .pov file that generates a
.pov/.inc file and then includes it?

Pete


Post a reply to this message

Goto Latest 10 Messages Next 1 Messages >>>

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