POV-Ray : Newsgroups : povray.macintosh : While bug? or am I missing somthing? Server Time
24 Nov 2024 08:42:34 EST (-0500)
  While bug? or am I missing somthing? (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: David
Subject: While bug? or am I missing somthing?
Date: 3 Mar 2000 14:19:53
Message: <38c01059$1@news.povray.org>
This is so strange.
If I create some objects w/ a while loop POV says I'm out of memory.
This happens even if I give POV 3.1 96MB and have only two objects in the
loop. I can put in as many as I want by hand.
Is this a bug or am I doing somthing wrong?

    As a raytracing newbie, I awat an anwsore.


Post a reply to this message

From: Chris Huff
Subject: Re: While bug? or am I missing somthing?
Date: 3 Mar 2000 15:28:21
Message: <chrishuff_99-A3E467.15295803032000@news.povray.org>
In article <38c01059$1@news.povray.org>, "David" <dav### [at] maccom> 
wrote:

> This is so strange.
> If I create some objects w/ a while loop POV says I'm out of memory.
> This happens even if I give POV 3.1 96MB and have only two objects in the
> loop. I can put in as many as I want by hand.
> Is this a bug or am I doing somthing wrong?
> 
>     As a raytracing newbie, I awat an anwsore.

Are you sure the loop ends? If you control the loop with a counter 
variable, but forget to increment the counter, it will keep looping and 
creating objects until it runs out of memory.
#declare K=0;
#while(K<10)
    ...
    #declare K=K+1;// If this isn't here, the loop will never end
#end

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

From: David
Subject: Re: While bug? or am I missing somthing?
Date: 28 Mar 2000 22:40:42
Message: <B506BB53.330%davidmccabe@mac.com>
I know my way arond C++, Lingo, BASIC, and POV-Script.
And yes, I do know how to close a loop, thank you very much.
Have any other solutions?

-- 
David McCabe


Post a reply to this message

From: Ken
Subject: Re: While bug? or am I missing somthing?
Date: 28 Mar 2000 23:30:43
Message: <38E1821C.4DFF9D4F@pacbell.net>
David wrote:
> 
> I know my way arond C++, Lingo, BASIC, and POV-Script.
> And yes, I do know how to close a loop, thank you very much.
> Have any other solutions?

Can you provide us with an example of what is causing you problems.
Anything else we can offer would only be guess work.

-- 
Ken Tyler -  1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Alan Kong
Subject: Re: While bug? or am I missing somthing?
Date: 29 Mar 2000 07:15:21
Message: <5ps3esgov466p3jb1qc54pe1prvj03voqv@4ax.com>
On Tue, 28 Mar 2000 19:41:07 -0800 David <dav### [at] maccom> wrote:

>I know my way arond C++, Lingo, BASIC, and POV-Script.
>And yes, I do know how to close a loop, thank you very much.
>Have any other solutions?

On Tue, 28 Mar 2000 20:10:04 -0800 Ken <tyl### [at] pacbellnet> wrote:
>
>>Can you provide us with an example of what is causing you problems.
>>Anything else we can offer would only be guess work.

  Hi, David. Please also pare down the scene to a minimum necessary to
reproduce the problem.

-- 
Alan - ako### [at] povrayorg - a k o n g <at> p o v r a y <dot> o r g
http://www.povray.org - Home of the Persistence of Vision Ray Tracer


Post a reply to this message

From: David
Subject: Re: While bug? or am I missing somthing?
Date: 29 Mar 2000 17:55:17
Message: <B507C9ED.343%davidmccabe@mac.com>
OK here you go:

#include "colors.inc"

camera{ location <0,2,-6> look_at 0 }
light_source{ <40,40,-30>,color White }
#declare i = 1;
#while( i <= 2 )
    sphere{ (x*i)-2, .5  pigment{color Red} }
    #declare i = i + 1
#end


> From: Alan Kong <ako### [at] povrayNO-SPAMorg>
> Organization: POV-Team
> Newsgroups: povray.macintosh
> Date: Wed, 29 Mar 2000 04:15:37 -0800
> Subject: Re: While bug? or am I missing somthing?
> 
> On Tue, 28 Mar 2000 19:41:07 -0800 David <dav### [at] maccom> wrote:
> 
>> I know my way arond C++, Lingo, BASIC, and POV-Script.
>> And yes, I do know how to close a loop, thank you very much.
>> Have any other solutions?
> 
> On Tue, 28 Mar 2000 20:10:04 -0800 Ken <tyl### [at] pacbellnet> wrote:
>> 
>>> Can you provide us with an example of what is causing you problems.
>>> Anything else we can offer would only be guess work.
> 
> Hi, David. Please also pare down the scene to a minimum necessary to
> reproduce the problem.
> 
> -- 
> Alan - ako### [at] povrayorg - a k o n g <at> p o v r a y <dot> o r g
> http://www.povray.org - Home of the Persistence of Vision Ray Tracer


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: While bug? or am I missing somthing?
Date: 29 Mar 2000 18:02:00
Message: <38e28b68$1@news.povray.org>
In article <B507C9ED.343%dav### [at] maccom> , David <dav### [at] maccom>
wrote:

> #include "colors.inc"
>
> camera{ location <0,2,-6> look_at 0 }
> light_source{ <40,40,-30>,color White }
> #declare i = 1;
> #while( i <= 2 )
>     sphere{ (x*i)-2, .5  pigment{color Red} }
>     #declare i = i + 1
> #end


Works fine for me.  Less than 65 KB of memory used.  Are you using POV-Ray
Mac 3.1g.r2?


    Thorsten


____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Chris Huff
Subject: Re: While bug? or am I missing somthing?
Date: 29 Mar 2000 18:18:43
Message: <chrishuff_99-07133A.18210029032000@news.povray.org>
In article <B507C9ED.343%dav### [at] maccom>, David 
<dav### [at] maccom> wrote:

> OK here you go:
> 
> #include "colors.inc"
> 
> camera{ location <0,2,-6> look_at 0 }
> light_source{ <40,40,-30>,color White }
> #declare i = 1;
> #while( i <= 2 )
>     sphere{ (x*i)-2, .5  pigment{color Red} }
>     #declare i = i + 1
> #end

Well, you missed a semicolon on the incrementing #declare, but that code 
worked fine under both 3.1g.r2 and MacMegaPOV 0.4 even without the 
semicolon. What version are you using?

-- 
Christopher James Huff - Personal e-mail: chr### [at] yahoocom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Web page: http://chrishuff.dhs.org/


Post a reply to this message

From: David
Subject: Re: While bug? or am I missing somthing?
Date: 30 Mar 2000 14:44:51
Message: <B508EECB.3DD%davidmccabe@mac.com>
Yes Thorsten, I use that version. I do not know the reson, but some times
that code will work for me and sometimes it will not.

> From: Chris Huff <chr### [at] yahoocom>
> Newsgroups: povray.macintosh
> Date: Wed, 29 Mar 2000 18:21:00 -0500
> Subject: Re: While bug? or am I missing somthing?
> 
> In article <B507C9ED.343%dav### [at] maccom>, David
> <dav### [at] maccom> wrote:
> 
>> OK here you go:
>> 
>> #include "colors.inc"
>> 
>> camera{ location <0,2,-6> look_at 0 }
>> light_source{ <40,40,-30>,color White }
>> #declare i = 1;
>> #while( i <= 2 )
>> sphere{ (x*i)-2, .5  pigment{color Red} }
>> #declare i = i + 1
>> #end
> 
> Well, you missed a semicolon on the incrementing #declare, but that code
> worked fine under both 3.1g.r2 and MacMegaPOV 0.4 even without the
> semicolon. What version are you using?
> 
> -- 
> Christopher James Huff - Personal e-mail: chr### [at] yahoocom
> TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
> Web page: http://chrishuff.dhs.org/


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: While bug? or am I missing somthing?
Date: 30 Mar 2000 15:11:36
Message: <38e3b4f8@news.povray.org>
In article <B508EECB.3DD%dav### [at] maccom> , David <dav### [at] maccom>
wrote:

> Yes Thorsten, I use that version. I do not know the reson, but some times
> that code will work for me and sometimes it will not.

As much as I would like to help, there is no way I can if the bug cannot be
reproduced.  The best solution I can offer is that you keep looking, and
once you have a scene which always reproduces the problem for you, e-mail it
to <mac### [at] povrayorg> and I will see what I can do.


      Thorsten


____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Goto Latest 10 Messages Next 1 Messages >>>

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