POV-Ray : Newsgroups : povray.beta-test : still loop bug? Server Time
4 Nov 2024 17:35:01 EST (-0500)
  still loop bug? (Message 1 to 6 of 6)  
From: Elias Pschernig
Subject: still loop bug?
Date: 10 Oct 2001 11:54:42
Message: <3bc46f42$1@news.povray.org>
P3-933, windows ME, 3.5.beta.6.icl.win32

Following scene crashes for me: 

#declare I = 0;
#while(I < 2)       

   #declare C = pigment { crackle }                       
   
   #declare CF = function { pigment { C } }
          
   #declare I = I + 1;
#end 

-- 
#macro C(X,Y)cylinder{X*x<X,0,-Y/2>.1}#end#macro U(R,X,Y)intersection{torus{.9
.1}box{-1 0rotate y*R*90}translate<X,0,Y>scale 1-z*.5}#end union{U(0,0,0)U(1,0
,0)U(2,-1,-1)U(1,1,0)U(1,1.5,-3)U(1,2,0)U(3,1,0)U(2,2,0)U(0,3,0)U(3,2,.5)C(.1,
2)C(.8,1)C(.8,-1)C(1.1,1)C(1.9,-1)pigment{rgb 10}rotate x*90translate<-1,0,4>}


Post a reply to this message

From: Christoph Hormann
Subject: Re: still loop bug?
Date: 10 Oct 2001 12:17:20
Message: <3BC47490.5A5241A2@gmx.de>
Elias Pschernig wrote:
> 
> P3-933, windows ME, 3.5.beta.6.icl.win32
> 
> Following scene crashes for me:
> 
> #declare I = 0;
> #while(I < 2)
> 
>    #declare C = pigment { crackle }
> 
>    #declare CF = function { pigment { C } }
> 
>    #declare I = I + 1;
> #end
> 

That's a different bug i think, for the same reason, the insert menu
crashed in the waveform sample too.  Bob's workaround was to use #local
and #undef.

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Elias Pschernig
Subject: Re: still loop bug?
Date: 10 Oct 2001 12:42:05
Message: <3bc47a5d@news.povray.org>
> That's a different bug i think, for the same reason, the insert menu
> crashed in the waveform sample too.  Bob's workaround was to use #local
> and #undef.

Where can I get this file? I could only find the waveform.bmp, but no
.pov for it.

I tried with #local and #undef, but no success so far. Well, I added
the array to still access the calculated function, else there would
be no point for my code..

#local A = array[10]

#local I = 0;
#while(I < 2)       

   #local C = pigment { crackle }                       
   
   #local CF = function { pigment { C } }  
   
   #local A[I] = function { CF }
   
   #undef CF 
    
   #undef C
          
   #local I = I + 1;
#end 

Thanks for this reply and any other suggestions. In case there is
no easy work around, I just wait for the next beta :) (b5 crashes
all the time, and b4 refuses to work.. so not much choice..)
Probably it's not the best idea to develop with a beta anyway, I
still have constants at odd places, because of an earlier bug :)

-- 
#macro C(X,Y)cylinder{X*x<X,0,-Y/2>.1}#end#macro U(R,X,Y)intersection{torus{.9
.1}box{-1 0rotate y*R*90}translate<X,0,Y>scale 1-z*.5}#end union{U(0,0,0)U(1,0
,0)U(2,-1,-1)U(1,1,0)U(1,1.5,-3)U(1,2,0)U(3,1,0)U(2,2,0)U(0,3,0)U(3,2,.5)C(.1,
2)C(.8,1)C(.8,-1)C(1.1,1)C(1.9,-1)pigment{rgb 10}rotate x*90translate<-1,0,4>}


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: still loop bug?
Date: 10 Oct 2001 12:56:29
Message: <3bc47dbd$1@news.povray.org>
In article <3bc47a5d@news.povray.org> , "Elias Pschernig" 
<eli### [at] aonat> wrote:

> (b5 crashes
> all the time, and b4 refuses to work.. so not much choice..)

Maybe you should try beta 6?


Post a reply to this message

From: Christoph Hormann
Subject: Re: still loop bug?
Date: 10 Oct 2001 13:05:26
Message: <3BC47FD0.E0D235E2@gmx.de>
Elias Pschernig wrote:
> 
> Where can I get this file? I could only find the waveform.bmp, but no
> .pov for it.
> 

It's named 'Attributes.pov' in the Insert Menu directory.

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Elias Pschernig
Subject: Re: still loop bug?
Date: 10 Oct 2001 13:16:59
Message: <3bc4828b@news.povray.org>
> > Where can I get this file? I could only find the waveform.bmp, but no
> > .pov for it.
> > 
> 
> It's named 'Attributes.pov' in the Insert Menu directory.
> 

Many thanks. By looking at the code there, I think I found out how to get it
working. In my modified version I was using the wrong syntax for storing the
function in the array..

-- 
#macro C(X,Y)cylinder{X*x<X,0,-Y/2>.1}#end#macro U(R,X,Y)intersection{torus{.9
.1}box{-1 0rotate y*R*90}translate<X,0,Y>scale 1-z*.5}#end union{U(0,0,0)U(1,0
,0)U(2,-1,-1)U(1,1,0)U(1,1.5,-3)U(1,2,0)U(3,1,0)U(2,2,0)U(0,3,0)U(3,2,.5)C(.1,
2)C(.8,1)C(.8,-1)C(1.1,1)C(1.9,-1)pigment{rgb 10}rotate x*90translate<-1,0,4>}


Post a reply to this message

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