POV-Ray : Newsgroups : povray.general : Strage Gradient! Server Time
20 Nov 2024 02:37:20 EST (-0500)
  Strage Gradient! (Message 1 to 3 of 3)  
From: Eitan Tal
Subject: Strage Gradient!
Date: 29 Oct 2001 05:05:44
Message: <3BDD2989.68C6AE34@netvision.net.il>
take a look at the image at .images.
This can only happen by scaling, I don't find any.
The texture code:

#declare MyGradientX=
texture {
  gradient x
  texture_map {
    [0.0 T_Stone10]
    [0.4 T_Stone10]
    [0.4 pigment {color rgbt <1,1,1,1,1>}]
    [0.5 pigment {color rgbt <1,1,1,1,1>}]
    [0.5 T_Stone15]
    [0.9 T_Stone15]
    [0.9 pigment {color rgbt <1,1,1,1,1>}]
    [1.0 pigment {color rgbt <1,1,1,1,1>}]
  }
}

#declare Texture3 =
texture {
  gradient z
  texture_map {
    [0.0 MyGradientX]
    [0.4 MyGradientX]
    [0.4 pigment {color rgbt <1,1,1,1,1>}]
    [0.5 pigment {color rgbt <1,1,1,1,1>}]
    [0.5 MyGradientX translate 0.5*x]
    [0.9 MyGradientX translate 0.5*x]
    [0.9 pigment {color rgbt <1,1,1,1,1>}]
    [1.0 pigment {color rgbt <1,1,1,1,1>}]
  }
  translate 90*x
}

Object code:

difference {
  plane { y, 0 }
  cylinder {-1*y, 3*y, 30 }
  texture {Texture3}
}


Post a reply to this message

From: Warp
Subject: Re: Strage Gradient!
Date: 29 Oct 2001 06:34:12
Message: <3bdd3eb1@news.povray.org>
Eitan Tal <eit### [at] netvisionnetil> wrote:
: take a look at the image at .images.
: This can only happen by scaling, I don't find any.

  "This"? What is "this"? You should be more descriptive. If you don't tell
us what is wrong in the image, we have to just guess it. I didn't figure out
what are you talking about.

-- 
#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: Mike Williams
Subject: Re: Strage Gradient!
Date: 29 Oct 2001 13:53:09
Message: <uBWMvEAMTa37Ewpu@econym.demon.co.uk>
Wasn't it Eitan Tal who wrote:
>take a look at the image at .images.
>This can only happen by scaling, I don't find any.
>The texture code:

When you just render the code you posted, you just get clean alternating
squares of stone textures. The effects along the front and left edges of
the tiles are coming from some other part of your scene file that you're
not telling us about.

I assume it's these effect along the edges of the squares that you are
having problems with. I suggest making a simpler scene and removing
things one by one until the effect goes away. When you get down to
something as simple as the code you posted here, the effect will have
gone. Whatever you removed just before the problem disappeared would be
what's causing the effect.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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