POV-Ray : Newsgroups : povray.general : how to render pov1.0 scenes with pov 3.1g Server Time
7 Aug 2024 05:18:51 EDT (-0400)
  how to render pov1.0 scenes with pov 3.1g (Message 11 to 14 of 14)  
<<< Previous 10 Messages Goto Initial 10 Messages
From:
Subject: Re: how to render pov1.0 scenes with pov 3.1g
Date: 10 Dec 2001 03:16:17
Message: <bjr81u0f3e54pb1ftpm1kms5sp1jkkgcuq@4ax.com>
On Sat, 08 Dec 2001 19:12:06 +0100, Christoph Hormann <chr### [at] gmxde>
wrote:
> just add commas in the vectors

???

#local C=< 1 2 3 >;

works fine with 3.5
is it different with 3.1 ?

ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)|_((x+y)*.7,z,.1)|_((x+y+2)*.7,z,.1)|_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35


Post a reply to this message

From: Mike Williams
Subject: Re: how to render pov1.0 scenes with pov 3.1g
Date: 10 Dec 2001 14:39:36
Message: <BbpnZHA58QF8Ewgk@econym.demon.co.uk>

>On Sat, 08 Dec 2001 19:12:06 +0100, Christoph Hormann <chr### [at] gmxde>
>wrote:
>> just add commas in the vectors
>
>???
>
>#local C=< 1 2 3 >;
>
>works fine with 3.5
>is it different with 3.1 ?

It's not 3.1 that's the problem, it's 1.0.

In 1.0 you could have points like <1 -1 1>. Because it didn't have the
ability to evaluate the expression "1 -1", it was quite happy with there
being three values. In versions 2.0 and later "1 -1" is evaluated,
giving 0 as the result and now <1 -1 1> only has two co-ordinates.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: PeterC
Subject: Re: how to render pov1.0 scenes with pov 3.1g
Date: 12 Dec 2001 21:36:22
Message: <3c180ce0.9254573@localhost>
On Sat, 08 Dec 2001 19:12:06 +0100, Christoph Hormann
<chr### [at] gmxde> wrote:


>
>BTW, converting syntax to 3.1 is not that difficult either, just add
>commas in the vectors, replace 'composite' with 'union' and change the
>texture syntax.
>

	One could write a .pov script to read in the
old .pov file and do the replacements automatically.

Pete


Post a reply to this message

From: Warp
Subject: Re: how to render pov1.0 scenes with pov 3.1g
Date: 13 Dec 2001 05:42:16
Message: <3c188608@news.povray.org>
Pet### [at] nymaliasnetalmost wrote:
: 	One could write a .pov script to read in the
: old .pov file and do the replacements automatically.

  File reading in povray is not that versatile.
  You can read only povray elements (floats, vectors, strings, objects...),
nothing else.

-- 
#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

<<< Previous 10 Messages Goto Initial 10 Messages

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