POV-Ray : Newsgroups : povray.binaries.images : Black lines? [~22kB] Server Time
2 Oct 2024 10:22:04 EDT (-0400)
  Black lines? [~22kB] (Message 1 to 4 of 4)  
From: ingo
Subject: Black lines? [~22kB]
Date: 21 May 2000 15:20:35
Message: <8F3BD8EFAseed7@204.213.191.228>
Still playing with the X', tying to make a texture with it. But I encounter 
black lines and can't find a reason for it in the scene. What causes it? Or 
is it inaccuracy of Povray (MegaPov)?

Ingo

#version unofficial MegaPov 0.5;
global_settings {assumed_gamma 1.0}
light_source {
   < 500,500,-500>
   rgb 1
}
camera {
   location  <0,0,-6.0>
   look_at   <0,0, 0.0>
}

#declare Letter= text {
//X: <0,0,0>,<0.70314,0.6773,1>
   ttf                       
   "times.ttf"
   "X"
   1,0
   scale <1/0.7,1/0.66,1> //<1/0.7,1/0.665,1>
   translate <0,0,-0.5>
}

/*#declare xPigm= function {
   pigment {
   	proximity {
   	   Letter, 0.2
   		method 0
   		samples 5  //25
   		sample_bailout 500
   		max_density 1.0 	
   		type 1				
   		sides 1				
   	}
      warp {repeat x}
      warp {repeat y}   	
   }
}*/

#declare xPigm= function {
   pigment {
      object { 
         Letter
         pigment {rgb 1}
         pigment {rgb 0}
      }
      warp {repeat x}
      warp {repeat y}
   } 
}

#declare xWrink= function {
   pigment {
      agate
      colour_map {
         [0, rgb 0]
         [1, rgb 0.8]
      }
   }
}

#declare XsinPigm= pigment {
   function {xPigm(sin(x),sin(y)^2,z) & xWrink(x,y,z)}
   scale 1  //0.6
   //rotate <90,0,0>
   colour_map {
      [0, rgb 1]
      [1, rgb 0]
   }
}

box {
   <-7.5,-5,0>,<7.5,5,0.1>
   pigment {XsinPigm}
}


-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message


Attachments:
Download 'XXX#3.jpg' (22 KB)

Preview of image 'XXX#3.jpg'
XXX#3.jpg


 

From: Chris Huff
Subject: Re: Black lines? [~22kB]
Date: 21 May 2000 17:24:13
Message: <chrishuff_99-AA0409.16275121052000@news.povray.org>
In article <8F3BD8EFAseed7@204.213.191.228>, ing### [at] homenl (ingo) 
wrote:

> Still playing with the X', tying to make a texture with it. But I 
> encounter black lines and can't find a reason for it in the scene. 
> What causes it? Or is it inaccuracy of Povray (MegaPov)?

It is a precision problem, similar to the coincident surfaces problem. 
Try replacing xPigm with this version, scaled and translated to avoid 
the problem:
#declare xPigm =
function {
    pigment {
        object {Letter
            pigment {rgb 1}
            pigment {rgb 0}
        }
        warp {repeat x}
        warp {repeat y}
        scale < 1, 1.00002, 1>
        translate < 0,-0.00001, 0>
    } 
}

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


Post a reply to this message

From: ingo
Subject: Re: Black lines? [~22kB]
Date: 22 May 2000 01:22:41
Message: <8F3C4CD27seed7@204.213.191.228>
Chris Huff wrote:

>It is a precision problem, similar to the coincident surfaces problem. 
>Try replacing xPigm with this version, scaled and translated to avoid 
>the problem:
>

Thanks Chris, that does the trick.

Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

From: Psychomek
Subject: Re: Black lines? [~22kB]
Date: 23 May 2000 03:30:54
Message: <392A5F8D.BA67AE94@home.com>
I tried it with arial.ttf and i get them too....  strange... maybe it is the
way Povray(Megapov) reads the files....

ingo wrote:

> Still playing with the X', tying to make a texture with it. But I encounter
> black lines and can't find a reason for it in the scene. What causes it? Or
> is it inaccuracy of Povray (MegaPov)?
>
> Ingo
>
> #version unofficial MegaPov 0.5;
> global_settings {assumed_gamma 1.0}
> light_source {
>    < 500,500,-500>
>    rgb 1
> }
> camera {
>    location  <0,0,-6.0>
>    look_at   <0,0, 0.0>
> }
>
> #declare Letter= text {
> //X: <0,0,0>,<0.70314,0.6773,1>
>    ttf
>    "times.ttf"
>    "X"
>    1,0
>    scale <1/0.7,1/0.66,1> //<1/0.7,1/0.665,1>
>    translate <0,0,-0.5>
> }
>
> /*#declare xPigm= function {
>    pigment {
>         proximity {
>            Letter, 0.2
>                 method 0
>                 samples 5  //25
>                 sample_bailout 500
>                 max_density 1.0
>                 type 1
>                 sides 1
>         }
>       warp {repeat x}
>       warp {repeat y}
>    }
> }*/
>
> #declare xPigm= function {
>    pigment {
>       object {
>          Letter
>          pigment {rgb 1}
>          pigment {rgb 0}
>       }
>       warp {repeat x}
>       warp {repeat y}
>    }
> }
>
> #declare xWrink= function {
>    pigment {
>       agate
>       colour_map {
>          [0, rgb 0]
>          [1, rgb 0.8]
>       }
>    }
> }
>
> #declare XsinPigm= pigment {
>    function {xPigm(sin(x),sin(y)^2,z) & xWrink(x,y,z)}
>    scale 1  //0.6
>    //rotate <90,0,0>
>    colour_map {
>       [0, rgb 1]
>       [1, rgb 0]
>    }
> }
>
> box {
>    <-7.5,-5,0>,<7.5,5,0.1>
>    pigment {XsinPigm}
> }
>
> --
> Photography: http://members.home.nl/ingoogni/
> Pov-Ray    : http://members.home.nl/seed7/
>
>                 Name: XXX#3.jpg
>    XXX#3.jpg    Type: unspecified type (application/octet-stream)
>             Encoding: x-uuencode


Post a reply to this message

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