POV-Ray : Newsgroups : povray.beta-test : Rendering include files? Server Time
4 Nov 2024 19:20:58 EST (-0500)
  Rendering include files? (Message 1 to 10 of 18)  
Goto Latest 10 Messages Next 8 Messages >>>
From: Francois Labreque
Subject: Rendering include files?
Date: 1 Oct 2001 23:08:22
Message: <3BB92F72.3060200@videotron.ca>
When playing around a scene, by mistake I hit the "run" button while an 
include file was active.  Instead of issuing the usual error message 
"Scene does not contain any object or glows!", it only issued a warning 
and rendered it!!!!

It even did the radiosity pretrace steps although there's no rad block 
in the .inc (obviously!)

This is reproducible at will.

Is this a new behaviour or a bug?

Here's a bit of the output:
----------------------------------------------------------------------------
Warning: No objects in scene.

Scene contains 0 frame level objects; 0 infinite.

Statistics for C:\Program Files\POV-Ray for Windows 
v3.1\Projets\Contraste\tiananmen.inc, Resolution 800 x 600
----------------------------------------------------------------------------
Pixels:          480800   Samples:          480800   Smpls/Pxl: 1.00
Rays:            480800   Saved:                 0   Max Level: 1/5
----------------------------------------------------------------------------
Ray->Shape Intersection          Tests       Succeeded  Percentage
----------------------------------------------------------------------------
----------------------------------------------------------------------------
Calls to Noise:                  0   Calls to DNoise:             10
----------------------------------------------------------------------------
----------------------------------------------------------------------------
Smallest Alloc:                 25 bytes   Largest:            16044
Peak memory used:          1844544 bytes
----------------------------------------------------------------------------
Time For Trace:    0 hours  0 minutes   2.0 seconds (2 seconds)
     Total Time:    0 hours  0 minutes   2.0 seconds (2 seconds)

POV-Ray finished
----------------------------------------------------------------------------

Pov.3.5.Beta4.win32  Athlon 650MHz, Win98SE, 128MB.
-- 
/*Francois Labreque*/#local a=x+y;#local b=x+a;#local c=a+b;#macro P(F//
/*    flabreque    */L)polygon{5,F,F+z,L+z,L,F pigment{rgb 9}}#end union
/*        @        */{P(0,a)P(a,b)P(b,c)P(2*a,2*b)P(2*b,b+c)P(b+c,<2,3>)
/*   videotron.ca  */}camera{location<6,1.25,-6>look_at a orthographic}


Post a reply to this message

From: Bob H 
Subject: Re: Rendering include files?
Date: 2 Oct 2001 02:55:29
Message: <3bb964e1@news.povray.org>
"Francois Labreque" <fla### [at] videotronca> wrote in message
news:3BB### [at] videotronca...
> When playing around a scene, by mistake I hit the "run" button while an
> include file was active.  Instead of issuing the usual error message
> "Scene does not contain any object or glows!", it only issued a warning
> and rendered it!!!!
>
> It even did the radiosity pretrace steps although there's no rad block
> in the .inc (obviously!)
>
> This is reproducible at will.
>
> Is this a new behaviour or a bug?

I didn't find that happening here.  Was an ini used, or any included files
within the inc?

Beta4 (and iB4), WinMe, PIII

Bob H.


Post a reply to this message

From: Francois Labreque
Subject: Re: Rendering include files?
Date: 2 Oct 2001 07:55:45
Message: <3BB9AB0B.9040308@videotron.ca>
Bob H. wrote:

> "Francois Labreque" <fla### [at] videotronca> wrote in message
> news:3BB### [at] videotronca...
>>
>>It even did the radiosity pretrace steps although there's no rad block
>>in the .inc (obviously!)
>>
>>This is reproducible at will.
>>
>>Is this a new behaviour or a bug?
>>
> 
> I didn't find that happening here.  Was an ini used, or any included files
> within the inc?


Nope.  I use the standard .ini files provided with the package.  My .inc 
is 700 lines of #declares, but I've just retested it with "colors.inc" 
and it does the same thing.


-- 
/*Francois Labreque*/#local a=x+y;#local b=x+a;#local c=a+b;#macro P(F//
/*    flabreque    */L)polygon{5,F,F+z,L+z,L,F pigment{rgb 9}}#end union
/*        @        */{P(0,a)P(a,b)P(b,c)P(2*a,2*b)P(2*b,b+c)P(b+c,<2,3>)
/*   videotron.ca  */}camera{location<6,1.25,-6>look_at a orthographic}


Post a reply to this message

From: Warp
Subject: Re: Rendering include files?
Date: 2 Oct 2001 08:11:25
Message: <3bb9aeec@news.povray.org>
Francois Labreque <fla### [at] videotronca> wrote:
: When playing around a scene, by mistake I hit the "run" button while an 
: include file was active.  Instead of issuing the usual error message 
: "Scene does not contain any object or glows!", it only issued a warning 
: and rendered it!!!!

  The malfunction being?

-- 
#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: Ken
Subject: Re: Rendering include files?
Date: 2 Oct 2001 08:41:28
Message: <3BB9B73F.22452E23@pacbell.net>
Warp wrote:
> 
> Francois Labreque <fla### [at] videotronca> wrote:
> : When playing around a scene, by mistake I hit the "run" button while an
> : include file was active.  Instead of issuing the usual error message
> : "Scene does not contain any object or glows!", it only issued a warning
> : and rendered it!!!!
> 
>   The malfunction being?

In POV-Ray v3.1g when there were no objects in the scene the renderer
stopped and returned an error message. In POV-Ray v3.5b the renderer
does not stop when there are no objects in the scene and returns
a warning instead. I don't recall if this was an intentional change
or not.

-- 
Ken Tyler - POV-Ray Technical Assistance Group


Post a reply to this message

From: Francois Labreque
Subject: Re: Rendering include files?
Date: 2 Oct 2001 08:50:58
Message: <3BB9B7FC.4030800@videotron.ca>
Warp wrote:

> Francois Labreque <fla### [at] videotronca> wrote:
> : When playing around a scene, by mistake I hit the "run" button while an 
> : include file was active.  Instead of issuing the usual error message 
> : "Scene does not contain any object or glows!", it only issued a warning 
> : and rendered it!!!!
> 
>   The malfunction being?
> 


Going to the trouble of shooting 480800 rays and outputing a black 
800x600 image when it already knows this is not a scene.   I can 
understand parsing the file as it might have side effects such as 
producing output for animations or something of the sort, but previous 
versions did not go through the actual process of rendering an empty scene.

Compare the output of trying to render "glass.inc" from the include 
directory:

POV 3.5 Beta4:
----------------------------------------------------------------------------
Warning: No objects in scene.

Scene contains 0 frame level objects; 0 infinite.

Statistics for C:\Program Files\POV-Ray for Windows 
v3.5\include\glass.inc, Resolution 800 x 600
----------------------------------------------------------------------------
Pixels:          480800   Samples:          480800   Smpls/Pxl: 1.00
Rays:            480800   Saved:                 0   Max Level: 1/5
----------------------------------------------------------------------------
Ray->Shape Intersection          Tests       Succeeded  Percentage
----------------------------------------------------------------------------
----------------------------------------------------------------------------
Calls to Noise:                  0   Calls to DNoise:             10
----------------------------------------------------------------------------
----------------------------------------------------------------------------
Smallest Alloc:                 25 bytes   Largest:            16044
Peak memory used:            94683 bytes
----------------------------------------------------------------------------
Time For Trace:    0 hours  0 minutes   2.0 seconds (2 seconds)
     Total Time:    0 hours  0 minutes   2.0 seconds (2 seconds)

POV-Ray finished
----------------------------------------------------------------------------


POV 3.1:
----------------------------------------------------------------------------
#version Glass_Inc_Temp;
#end

  <----ERROR

C:\Program Files\POV-Ray for Windows v3.1\include\glass.inc:159: error: 
No objects in scene.

Returned from renderer (non-zero return value)
----------------------------------------------------------------------------



MegaPOV 0.7:
----------------------------------------------------------------------------
#version Glass_Inc_Temp;
#end


  <----ERROR

C:\Program Files\POV-Ray for Windows v3.1\include\glass.inc:159: error: 
No objects or glows in scene.

Returned from renderer (non-zero return value)
----------------------------------------------------------------------------

-- 
/*Francois Labreque*/#local a=x+y;#local b=x+a;#local c=a+b;#macro P(F//
/*    flabreque    */L)polygon{5,F,F+z,L+z,L,F pigment{rgb 9}}#end union
/*        @        */{P(0,a)P(a,b)P(b,c)P(2*a,2*b)P(2*b,b+c)P(b+c,<2,3>)
/*   videotron.ca  */}camera{location<6,1.25,-6>look_at a orthographic}


Post a reply to this message

From: Warp
Subject: Re: Rendering include files?
Date: 2 Oct 2001 08:55:17
Message: <3bb9b935@news.povray.org>
Ken <tyl### [at] pacbellnet> wrote:
: In POV-Ray v3.1g when there were no objects in the scene the renderer
: stopped and returned an error message. In POV-Ray v3.5b the renderer
: does not stop when there are no objects in the scene and returns
: a warning instead. I don't recall if this was an intentional change
: or not.

  It is intentional.

  (The reason is that POV-Ray shouldn't judge the intelligence of the user:
If the user really wants to render a scene with no objects, then POV-Ray should
just do it. Doing this is not so crazy as one may think, as there are at least
to clear situations where this is useful:
  1: If you want to render a sky_sphere only (this makes sense sometimes as
the sky_sphere can have any pigment).
  2: If you have an animation where there are some frames with absolutely
no objects.
  In both cases you previously had to add invisible and useless dumb objects
to the scene in order to render it. This doesn't really make sense.)

-- 
#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: Warp
Subject: Re: Rendering include files?
Date: 2 Oct 2001 08:57:03
Message: <3bb9b99f@news.povray.org>
Francois Labreque <fla### [at] videotronca> wrote:
: Going to the trouble of shooting 480800 rays and outputing a black 
: 800x600 image when it already knows this is not a scene.

  The sky_sphere is not considered an object and yet you can get an image
very rich in details with it.
  Also there are cases where in an animation you want to render some empty
frames.

-- 
#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: Thorsten Froehlich
Subject: Re: Rendering include files?
Date: 2 Oct 2001 12:17:03
Message: <3bb9e87f@news.povray.org>
In article <3BB9B73F.22452E23@pacbell.net> , Ken <tyl### [at] pacbellnet>  
wrote:

> I don't recall if this was an intentional change
> or not.

Intentional.  there was some discussion somewhere about it a few weeks ago
and I added it after that.  I dodn't remember when exactly I made the
change, but I know I made it.  It might be in revision.txt or changes.txt in
the distribution.

    Thorsten


Post a reply to this message

From: JRG
Subject: Re: Rendering include files?
Date: 2 Oct 2001 14:05:03
Message: <3bba01cf@news.povray.org>
I find this really handy. Now I can generate a list file for cmpeg directly
from POV-Ray!

--
Jonathan


"Francois Labreque" <fla### [at] videotronca> ha scritto nel messaggio
news:3BB### [at] videotronca...
> When playing around a scene, by mistake I hit the "run" button while an
> include file was active.  Instead of issuing the usual error message
> "Scene does not contain any object or glows!", it only issued a warning
> and rendered it!!!!
>
> It even did the radiosity pretrace steps although there's no rad block
> in the .inc (obviously!)
>
> This is reproducible at will.
>
> Is this a new behaviour or a bug?
>
> Here's a bit of the output:
> --------------------------------------------------------------------------
--
> Warning: No objects in scene.
>
> Scene contains 0 frame level objects; 0 infinite.
>
> Statistics for C:\Program Files\POV-Ray for Windows
> v3.1\Projets\Contraste\tiananmen.inc, Resolution 800 x 600
> --------------------------------------------------------------------------
--
> Pixels:          480800   Samples:          480800   Smpls/Pxl: 1.00
> Rays:            480800   Saved:                 0   Max Level: 1/5
> --------------------------------------------------------------------------
--
> Ray->Shape Intersection          Tests       Succeeded  Percentage
> --------------------------------------------------------------------------
--
> --------------------------------------------------------------------------
--
> Calls to Noise:                  0   Calls to DNoise:             10
> --------------------------------------------------------------------------
--
> --------------------------------------------------------------------------
--
> Smallest Alloc:                 25 bytes   Largest:            16044
> Peak memory used:          1844544 bytes
> --------------------------------------------------------------------------
--
> Time For Trace:    0 hours  0 minutes   2.0 seconds (2 seconds)
>      Total Time:    0 hours  0 minutes   2.0 seconds (2 seconds)
>
> POV-Ray finished
> --------------------------------------------------------------------------
--
>
> Pov.3.5.Beta4.win32  Athlon 650MHz, Win98SE, 128MB.
> --
> /*Francois Labreque*/#local a=x+y;#local b=x+a;#local c=a+b;#macro P(F//
> /*    flabreque    */L)polygon{5,F,F+z,L+z,L,F pigment{rgb 9}}#end union
> /*        @        */{P(0,a)P(a,b)P(b,c)P(2*a,2*b)P(2*b,b+c)P(b+c,<2,3>)
> /*   videotron.ca  */}camera{location<6,1.25,-6>look_at a orthographic}
>


Post a reply to this message

Goto Latest 10 Messages Next 8 Messages >>>

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