POV-Ray : Newsgroups : povray.programming : File Queue limitation Server Time
22 Dec 2024 21:56:13 EST (-0500)
  File Queue limitation (Message 1 to 10 of 10)  
From: audioguyTH
Subject: File Queue limitation
Date: 26 Oct 2003 19:05:00
Message: <web.3f9c60e2499b84a9d96ba9410@news.povray.org>
I am writing a program that allows you to draw freehand animation camera
paths. It outputs a .pov file for every frame. The file queue in POV for
windows 3.5 seems to have a limitation in the file queue of 512 files. Of
course I can work around this, but is there any way to force the file queue
to accept more? Or might I suggest this as a bug/limitation?

Thanks


Post a reply to this message

From: ABX
Subject: Re: File Queue limitation
Date: 27 Oct 2003 02:16:35
Message: <68hppv0893m5p4tk83kued1hbodjpi69bv@4ax.com>
On Sun, 26 Oct 2003 19:04:16 EST, "audioguyTH" <aud### [at] mindspringcom>
wrote:
> I am writing a program that allows you to draw freehand animation camera
> paths. It outputs a .pov file for every frame. The file queue in POV for
> windows 3.5 seems to have a limitation in the file queue of 512 files. Of
> course I can work around this, but is there any way to force the file queue
> to accept more? Or might I suggest this as a bug/limitation?

This is a feature. AFAIK you can customize it with changing one constant and
recompile. See:

#define MAX_QUEUE       512

in pvguiext.h.

ABX


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: File Queue limitation
Date: 27 Oct 2003 09:08:21
Message: <3f9d26d5@news.povray.org>
In article <web.3f9c60e2499b84a9d96ba9410@news.povray.org> , "audioguyTH" 
<aud### [at] mindspringcom> wrote:

> I am writing a program that allows you to draw freehand animation camera
> paths. It outputs a .pov file for every frame.

If you just change the camera path it does not make *any* sense at all to
output a separate file for it.  Just generate the appropriate POV SDL for
the camera path and you don't have any problems.  This also make your
program compatible with something other than the Windows GUI version of
POV-Ray.

    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: Todd Haygood
Subject: Re: File Queue limitation
Date: 27 Oct 2003 17:02:13
Message: <3f9d95e5$1@news.povray.org>
I have written a freehand camera path drawing program in Visual Basic 6. I
am sure there is a better way to do what I am doing without generating lots
of POVRAY files, but I just wanted to make it work. My program does work
quite well, but having to reload the filequeue in 512 chunks is a bit of a
pain.

Is there any way to set the Max Value of the filequeue short of
re-compiling?

I am a beginner at VB6 and POVRAY, but I have gotten my program this far- I
would like to see if I can make it any easier.

Thanks

"Thorsten Froehlich" <tho### [at] trfde> wrote in message
news:3f9d26d5@news.povray.org...
> In article <web.3f9c60e2499b84a9d96ba9410@news.povray.org> , "audioguyTH"
> <aud### [at] mindspringcom> wrote:
>
> > I am writing a program that allows you to draw freehand animation camera
> > paths. It outputs a .pov file for every frame.
>
> If you just change the camera path it does not make *any* sense at all to
> output a separate file for it.  Just generate the appropriate POV SDL for
> the camera path and you don't have any problems.  This also make your
> program compatible with something other than the Windows GUI version of
> POV-Ray.
>
>     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: Christopher James Huff
Subject: Re: File Queue limitation
Date: 27 Oct 2003 18:50:45
Message: <cjameshuff-6A13B6.18484227102003@netplex.aussie.org>
In article <3f9d95e5$1@news.povray.org>,
 "Todd Haygood" <aud### [at] mindspringcom> wrote:

> I am a beginner at VB6 and POVRAY, but I have gotten my program this far- I
> would like to see if I can make it any easier.

You can, by approaching the problem differently. You are just going 
about it the wrong way. The problem is with your program's output, not 
with the file queue limitation.

The best way to do it: put the data in a spline (or multiple splines), 
and render an animation with the camera based on the spline(s) and the 
clock variable. This will likely be the most efficient method, and will 
give you interpolation of the data allowing you to compute far fewer 
points.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Mike Williams
Subject: Re: File Queue limitation
Date: 28 Oct 2003 00:08:01
Message: <HyEpgAAOrcn$EwfL@econym.demon.co.uk>
Wasn't it Todd Haygood who wrote:
>I have written a freehand camera path drawing program in Visual Basic 6. I
>am sure there is a better way to do what I am doing without generating lots
>of POVRAY files

I'd suggest writing the info to a file in a format that can be read by
the POVRay #read command. Write a single animated POV scene with each
frame reading through the file with a #while loop to find the camera
data corresponding to the frame_number.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: ingo
Subject: Re: File Queue limitation
Date: 28 Oct 2003 11:36:47
Message: <Xns9422B32ABBEADseed7@netplex.aussie.org>
in news:3f9d95e5$1@news.povray.org Todd Haygood wrote:

> I have written a freehand camera path drawing program in Visual Basic
> 6. I am sure there is a better way to do what I am doing without
> generating lots of POVRAY files, but I just wanted to make it work.
> My program does work quite well, but having to reload the filequeue
> in 512 chunks is a bit of a pain.

As your program seems to generate POV files, you can probably modify 
your program in such a way that, instead of writing each file to disk, 
it calls POV-Ray for each frame and passes the 'file' through stdout.
Gilles Tran somewhere posted how he calls POV-Ray from VBA (Access).

Another way could be that, for every frame, your program writes an 
include file that contains the camera statement.
You need a, single, scene file that has to include the right camera 
include file for each consecutive frame. Check 'frame_number' in 
"6.1.3.4.2  Clock Identifiers" for how to control this.

> Is there any way to set the Max Value of the filequeue short of
> re-compiling?

No.

Ingo


Post a reply to this message

From: Todd Haygood
Subject: Re: File Queue limitation
Date: 28 Oct 2003 16:41:27
Message: <3f9ee287$1@news.povray.org>
Thanks everyone. Of course I see now that writing a single file with all of
the camera vectors in a single file and having POV-Ray #read each frame is a
much better way to do it. Can anyone point me to a simple working example of
this type of I/O? I looked at the documentation, but I am still a little
fuzzy.

Thanks
"ingo" <ing### [at] tagpovrayorg> wrote in message
news:Xns### [at] netplexaussieorg...
> in news:3f9d95e5$1@news.povray.org Todd Haygood wrote:
>
> > I have written a freehand camera path drawing program in Visual Basic
> > 6. I am sure there is a better way to do what I am doing without
> > generating lots of POVRAY files, but I just wanted to make it work.
> > My program does work quite well, but having to reload the filequeue
> > in 512 chunks is a bit of a pain.
>
> As your program seems to generate POV files, you can probably modify
> your program in such a way that, instead of writing each file to disk,
> it calls POV-Ray for each frame and passes the 'file' through stdout.
> Gilles Tran somewhere posted how he calls POV-Ray from VBA (Access).
>
> Another way could be that, for every frame, your program writes an
> include file that contains the camera statement.
> You need a, single, scene file that has to include the right camera
> include file for each consecutive frame. Check 'frame_number' in
> "6.1.3.4.2  Clock Identifiers" for how to control this.
>
> > Is there any way to set the Max Value of the filequeue short of
> > re-compiling?
>
> No.
>
> Ingo


Post a reply to this message

From: Hughes, B 
Subject: Re: File Queue limitation
Date: 28 Oct 2003 19:16:45
Message: <3f9f06ed@news.povray.org>
"Todd Haygood" <aud### [at] mindspringcom> wrote in message
news:3f9ee287$1@news.povray.org...
> Thanks everyone. Of course I see now that writing a single file with all
of
> the camera vectors in a single file and having POV-Ray #read each frame is
a
> much better way to do it. Can anyone point me to a simple working example
of
> this type of I/O? I looked at the documentation, but I am still a little
> fuzzy.

A good short example file exists within the POV-Ray\scenes\language\fileio
subfolder/directory. Might be all you need to know. If not, hopefully this
can continue at povray.general.

Bob H.


Post a reply to this message

From: Mike Williams
Subject: Re: File Queue limitation
Date: 28 Oct 2003 19:38:38
Message: <BOuoPCAntwn$EwdK@econym.demon.co.uk>
Wasn't it Todd Haygood who wrote:
>Thanks everyone. Of course I see now that writing a single file with all of
>the camera vectors in a single file and having POV-Ray #read each frame is a
>much better way to do it. Can anyone point me to a simple working example of
>this type of I/O? I looked at the documentation, but I am still a little
>fuzzy.

#version 3.5;
global_settings {assumed_gamma 1.0}

#fopen FILE "camera.dat" read
#declare N=0;
#while (N<=frame_number)
  #read (FILE, Locn, LookAt, Angle)
  #declare N=N+1;
#end

camera {
  location   Locn
  look_at    LookAt
  angle      Angle
}

light_source {<-30, 100, -30> color rgb 1}
sphere {y,1 pigment { rgb 0 } finish {reflection 1}}
plane {y, 0
  pigment { checker rgb 1, rgb 0}
}


The "camera.dat" file looks like this. Note that the "," is required at
the ends of the lines if you have line breaks.

<0,0,-10>,<0,0.0,0>,50,
<2,1,-10>,<0,0.1,0>,45,
<4,2,-10>,<0,0.2,0>,40,
<6,3,-10>,<0,0.3,0>,35,
<7,4,-10>,<0,0.4,0>,30,
<6,5,-10>,<0,0.5,0>,35,
<4,6,-10>,<0,0.6,0>,40,
<2,7,-10>,<0,0.7,0>,45,
<0,8,-10>,<0,0.8,0>,50

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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