POV-Ray : Newsgroups : povray.beta-test : "warp" broken in beta 4? Server Time
12 Nov 2024 16:26:48 EST (-0500)
  "warp" broken in beta 4? (Message 1 to 9 of 9)  
From: Jeff Lee
Subject: "warp" broken in beta 4?
Date: 1 Oct 2001 16:06:17
Message: <1103_1001966819@mcmurdo>
I have a scene, originally written for MegaPOV 0.5, which takes a complex texture used
on a flat part of a model, and imposes a cylindrical warp for use on another part.  
It fails under 3.5 beta 4.  Here's an extremely simplified version:

#declare T_Flat  = texture { pigment { gradient x }}

#declare T_Cylindrical = texture { T_Flat
  scale <0.075/pi,1,10>
  warp { cylindrical }
  rotate x*-90
}

Is that use of "warp" not permitted under 3.5, or is it supposed to work like it did
in MegaPOV?


Post a reply to this message

From: Christoph Hormann
Subject: Re: "warp" broken in beta 4?
Date: 1 Oct 2001 16:40:32
Message: <3BB8D574.8F7F5F74@gmx.de>
Jeff Lee wrote:
> 
> [...]
> 
> Is that use of "warp" not permitted under 3.5, or is it supposed to work like it did
in MegaPOV?

It works AFAIK.

See the 'object_pattern.pov' demo scene for example.

Can't say anything about differences to megapov right now.

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: Jeff Lee
Subject: Re: "warp" broken in beta 4?
Date: 1 Oct 2001 16:52:23
Message: <1103_1001969579@mcmurdo>
On Mon, 01 Oct 2001 22:43:32 +0200, Christoph Hormann <chr### [at] gmxde> wrote:
> Jeff Lee wrote:
> > 
> > Is that use of "warp" not permitted under 3.5, or is it supposed to work like it
did in MegaPOV?
> 
> It works AFAIK.

Not for me.  I try to render, and I get:

     File: f:\users\jeff\povray\scenes\warperr.pov  Line: 3
       scale <0.075/pi,1,10>

       warp <----ERROR

     Parse Error: No matching } in 'texture', warp found instead


     Returned from renderer with error status


Post a reply to this message

From: Christoph Hormann
Subject: Re: "warp" broken in beta 4?
Date: 1 Oct 2001 17:04:25
Message: <3BB8DB16.9B16007F@gmx.de>
Jeff Lee wrote:
> 
> Not for me.  I try to render, and I get:
> 
>      File: f:\users\jeff\povray\scenes\warperr.pov  Line: 3
>        scale <0.075/pi,1,10>
> 
>        warp <----ERROR
> 
>      Parse Error: No matching } in 'texture', warp found instead
> 
>      Returned from renderer with error status

Hmm, it seems to be a bug, i'm just not sure in which situations exactly
this happens.

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: Thorsten Froehlich
Subject: Re: "warp" broken in beta 4?
Date: 1 Oct 2001 17:10:35
Message: <3bb8dbcb@news.povray.org>
In article <1103_1001966819@mcmurdo> , Jeff Lee <godfrey@shipbrook.com>  
wrote:

> #declare T_Flat  = texture { pigment { gradient x }}
>
> #declare T_Cylindrical = texture { T_Flat
>   scale <0.075/pi,1,10>
>   warp { cylindrical }
>   rotate x*-90
> }

I can confirm this does not work.  However, i do not know if it is supposed
to work in 3.5 or not.


    Thorsten


Post a reply to this message

From: Christoph Hormann
Subject: Re: "warp" broken in beta 4?
Date: 1 Oct 2001 18:21:10
Message: <3BB8ED0F.D50F6F7C@gmx.de>
Thorsten Froehlich wrote:
> 
> I can confirm this does not work.  However, i do not know if it is supposed
> to work in 3.5 or not.
> 

See the 'object_pattern.pov' sample scene for a working example.  

It seem to work with texture maps but not if they are declared.

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: Francois Labreque
Subject: Re: "warp" broken in beta 4?
Date: 1 Oct 2001 20:20:03
Message: <3BB907B7.4080309@videotron.ca>
Christoph Hormann wrote:

> 
> Thorsten Froehlich wrote:
> 
>>I can confirm this does not work.  However, i do not know if it is supposed
>>to work in 3.5 or not.
>>
>>
> 
> See the 'object_pattern.pov' sample scene for a working example.  
> 
> It seem to work with texture maps but not if they are declared.


It is not specific to declared textures as it fails on the following as 
well:

sphere{
     < 0, 0, 0 > 2
     texture{
         pigment{ gradient x }
         scale <0.075/pi,1,10>
         warp { cylindrical }
         rotate x*-90
     }
}


 From my experience, it works when it is inside a pigment, finish or 
normal block, but not at the "texture" level.

For example, Jeff's code will work, if modified this way:

#declare P_Flat  = pigment { gradient x }

#declare T_Cylindrical = texture {
     pigment{
         P_Flat
         warp { cylindrical }
     }
     scale <0.075/pi,1,10>
     rotate x*-90
}

-- 
/*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: Jeff Lee
Subject: Re: "warp" broken in beta 4?
Date: 1 Oct 2001 23:41:17
Message: <3bb93711.8286435@news.povray.org>
Francois Labreque <fla### [at] videotronca> wrote:
> 
>  From my experience, it works when it is inside a pigment, finish or 
> normal block, but not at the "texture" level.
> 
> For example, Jeff's code will work, if modified this way:
> 
> #declare P_Flat  = pigment { gradient x }
> 
> #declare T_Cylindrical = texture {
>      pigment{
>          P_Flat
>          warp { cylindrical }
>      }
>      scale <0.075/pi,1,10>
>      rotate x*-90
> }

Unfortunately, my *original* texture was much more complex, with several
levels of textures.  :-(


Post a reply to this message

From: Marc-Hendrik Bremer
Subject: Re: "warp" broken in beta 4?
Date: 2 Oct 2001 05:17:03
Message: <3bb9860f@news.povray.org>
Francois Labreque schrieb in Nachricht <3BB### [at] videotronca>...
> From my experience, it works when it is inside a pigment, finish or
>normal block, but not at the "texture" level.


I guessed something like that, too, but the mentioned object_pattern.pov
uses the war at the texture level and it works.

#declare Tex_Column=
texture {
  object {
    Text_Obj
    texture { Tex_1 },
    texture { Tex_Metal_A }
  }

  warp { cylindrical }
}

Strange,

Marc-Hendrik


Post a reply to this message

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