POV-Ray : Newsgroups : povray.bugreports : Blobs: Error 1: Negative Values: Holes! / Error 2: Alpha Value Overwriting? : Blobs: Error 1: Negative Values: Holes! / Error 2: Alpha Value Overwriting? Server Time
20 Oct 2021 15:13:46 EDT (-0400)
  Blobs: Error 1: Negative Values: Holes! / Error 2: Alpha Value Overwriting?  
From: Sven Littkowski
Date: 22 Dec 2015 12:15:56
Message: <5679854c@news.povray.org>
The scene took the entire night up to now for rendering, but I discover
two problems and think, it could be caused by programming.

DEFINITE 1ST ERROR
I have a blob, and work with regular (positive) values, but on a few
locations also with negative values. And these negative values seem to
give a problem: around their edges are holes or black areas (holes or
not covered with texture).

POSSIBLE 2ND ERROR
I believe that there is a 2nd problem: while all other areas of the ship
hull follow the texture's FINISH declarations, it seems the blob does
not: the low-light areas should have been almost black, but are gray. My
FINISH declarations use an alpha value for textures of 0.0, but it seems
here that 0.0 is not accepted or it is overwritten.

Full Image:
http://www.SvenLittkowski.name/v/StuffSL - Seneca II - Distance - 001 -
Compressed.jpg

--- SCENE CODE -----------------------

#declare HullFinish = finish
{
 brilliance   1.5
 phong albedo 0.05
 metallic     1.00
 ambient      0.00
}



#declare MyMidshipBlob = blob
{
 #declare MyWidth     = 1.75;
 #declare MyThickness = 0.01;
 #declare MyZ         = 0.20;
 threshold 0.5
 cylinder { < -0.2, 0.0, 0.0 > < 0.2, 0.0, 0.0 > 2.0, 1 scale < 0.12,
1.00, 1.0 > translate < 0.0, 0.0, -0.50 > texture { TextureHullRing
scale 1/450.0 translate < 0.0, 0.0, (-250.0-0.0)/450.0 > } }
 cylinder { < -0.2, 0.0, 0.5 > < 0.2, 0.0, 0.5 > 0.75, 1 scale < 0.5,
1.00, 1.0 > translate < 0.0, 0.0, -0.50 > texture {
TextureHullWindowsSide scale 1/450.0 translate < 0.0, 0.0,
(-250.0-0.0)/450.0 > } }

 cylinder { < -0.2, 0.0, 0.0 > < 0.2, 0.0, 0.0 > 2.0, 1 scale < 0.10,
0.50, 0.5 > translate < 0.0, 0.0, -0.25 > texture {
TextureHullWindowsSide scale 1/450.0 translate < 0.0, 0.0,
(-250.0-0.0)/450.0 > } }

 cylinder { < -MyWidth,  MyThickness+0.150, MyZ+0.00 > < MyWidth,
MyThickness+0.150, MyZ+0.00 > 0.25, 1 texture { TextureHullFront
                            scale 1/450.0 translate < 0.0,
MyThickness+0.000, 0.0 > } }
 cylinder { < -MyWidth,  MyThickness+0.120, MyZ+0.00 > < MyWidth,
MyThickness+0.120, MyZ+0.00 > 0.25, 1 texture {
TextureHullWindowsFewSide rotate < 0.0, 90.0, 0.0 > scale 1/450.0
translate < 0.0,  MyThickness+0.000, 0.0 > } }
 cylinder { < -MyWidth,  MyThickness+0.090, MyZ+0.00 > < MyWidth,
MyThickness+0.090, MyZ+0.00 > 0.25, 1 texture {
TextureHullWindowsFewSide rotate < 0.0, 90.0, 0.0 > scale 1/450.0
translate < 0.0,  MyThickness+0.000, 0.0 > } }
 cylinder { < -MyWidth,  MyThickness+0.060, MyZ+0.00 > < MyWidth,
MyThickness+0.060, MyZ+0.00 > 0.25, 1 texture {
TextureHullWindowsFewSide rotate < 0.0, 90.0, 0.0 > scale 1/450.0
translate < 0.0,  MyThickness+0.000, 0.0 > } }
 cylinder { < -MyWidth,  MyThickness+0.030, MyZ+0.00 > < MyWidth,
MyThickness+0.030, MyZ+0.00 > 0.25, 1 texture {
TextureHullWindowsFewSide rotate < 0.0, 90.0, 0.0 > scale 1/450.0
translate < 0.0,  MyThickness+0.000, 0.0 > } }
 cylinder { < -MyWidth,  0.00,              MyZ+0.00 > < MyWidth,  0.00,
             MyZ+0.00 > 0.25, 1 texture { TextureHullWindowsFewSide
rotate < 0.0, 90.0, 0.0 > scale 1/450.0 translate < 0.0,  00.00,
     0.0 > } }
 cylinder { < -MyWidth, -MyThickness-0.030, MyZ+0.00 > < MyWidth,
-MyThickness-0.030, MyZ+0.00 > 0.25, 1 texture {
TextureHullWindowsFewSide rotate < 0.0, 90.0, 0.0 > scale 1/450.0
translate < 0.0, -MyThickness+0.000, 0.0 > } }
 cylinder { < -MyWidth, -MyThickness-0.060, MyZ+0.00 > < MyWidth,
-MyThickness-0.060, MyZ+0.00 > 0.25, 1 texture {
TextureHullWindowsFewSide rotate < 0.0, 90.0, 0.0 > scale 1/450.0
translate < 0.0, -MyThickness+0.000, 0.0 > } }
 cylinder { < -MyWidth, -MyThickness-0.090, MyZ+0.00 > < MyWidth,
-MyThickness-0.090, MyZ+0.00 > 0.25, 1 texture {
TextureHullWindowsFewSide rotate < 0.0, 90.0, 0.0 > scale 1/450.0
translate < 0.0, -MyThickness+0.000, 0.0 > } }
 cylinder { < -MyWidth, -MyThickness-0.120, MyZ+0.00 > < MyWidth,
-MyThickness-0.120, MyZ+0.00 > 0.25, 1 texture {
TextureHullWindowsFewSide rotate < 0.0, 90.0, 0.0 > scale 1/450.0
translate < 0.0, -MyThickness+0.000, 0.0 > } }
 cylinder { < -MyWidth, -MyThickness-0.150, MyZ+0.00 > < MyWidth,
-MyThickness-0.150, MyZ+0.00 > 0.25, 1 texture { TextureHullFront
                             scale 1/450.0 translate < 0.0,
-MyThickness-0.000, 0.0 > } }

 cylinder { < -MyWidth,  MyThickness+0.150,   MyZ+0.825 > < MyWidth,
MyThickness+0.150,   MyZ+0.075 > 0.25, 1 texture { TextureHullFront
rotate < 90.0, 0.0, 0.0 > scale 1/450.0 translate < 0.0, 0.0, MyZ+0.075
> } }
 cylinder { < -MyWidth, -MyThickness-0.150,   MyZ+0.825 > < MyWidth,
-MyThickness-0.150,   MyZ+0.075 > 0.25, 1 texture { TextureHullFront
rotate < 90.0, 0.0, 0.0 > scale 1/450.0 translate < 0.0, 0.0, MyZ+0.075
> } }

 cylinder { < -MyWidth,  MyThickness  , MyZ+0.15 > < MyWidth,
MyThickness  , MyZ+0.15 > 0.5, 1 texture { TextureHullFront rotate <
90.0, 0.0, 0.0 > scale 1/450.0 translate < 0.0, 0.0, MyZ+0.00 > } }
 cylinder { < -MyWidth, -MyThickness  , MyZ+0.15 > < MyWidth,
-MyThickness  , MyZ+0.15 > 0.5, 1 texture { TextureHullFront rotate <
90.0, 0.0, 0.0 > scale 1/450.0 translate < 0.0, 0.0, MyZ+0.00 > } }

 cylinder { < -MyWidth,  MyThickness  , MyZ+0.30 > < MyWidth,
MyThickness  , MyZ+0.30 > 0.5, 1 texture { TextureHullFront rotate <
90.0, 0.0, 0.0 > scale 1/450.0 translate < 0.0, 0.0, MyZ+0.00 > } }
 cylinder { < -MyWidth, -MyThickness  , MyZ+0.30 > < MyWidth,
-MyThickness  , MyZ+0.30 > 0.5, 1 texture { TextureHullFront rotate <
90.0, 0.0, 0.0 > scale 1/450.0 translate < 0.0, 0.0, MyZ+0.00 > } }

 cylinder { < -MyWidth,  MyThickness  , MyZ+0.45 > < MyWidth,
MyThickness  , MyZ+0.45 > 0.5, 1 texture { TextureHullFront rotate <
90.0, 0.0, 0.0 > scale 1/450.0 translate < 0.0, 0.0, MyZ+0.00 > } }
 cylinder { < -MyWidth, -MyThickness  , MyZ+0.45 > < MyWidth,
-MyThickness  , MyZ+0.45 > 0.5, 1 texture { TextureHullFront rotate <
90.0, 0.0, 0.0 > scale 1/450.0 translate < 0.0, 0.0, MyZ+0.00 > } }

 cylinder { < -MyWidth,  MyThickness  , MyZ+0.60 > < MyWidth,
MyThickness  , MyZ+0.60 > 0.5, 1 texture { TextureHullFront rotate <
90.0, 0.0, 0.0 > scale 1/450.0 translate < 0.0, 0.0, MyZ+0.00 > } }
 cylinder { < -MyWidth, -MyThickness  , MyZ+0.60 > < MyWidth,
-MyThickness  , MyZ+0.60 > 0.5, 1 texture { TextureHullFront rotate <
90.0, 0.0, 0.0 > scale 1/450.0 translate < 0.0, 0.0, MyZ+0.00 > } }

 cylinder { < -MyWidth,  MyThickness  , MyZ+0.75 > < MyWidth,
MyThickness  , MyZ+0.75 > 0.5, 1 texture { TextureHullFront rotate <
90.0, 0.0, 0.0 > scale 1/450.0 translate < 0.0, 0.0, MyZ+0.00 > } }
 cylinder { < -MyWidth, -MyThickness  , MyZ+0.75 > < MyWidth,
-MyThickness  , MyZ+0.75 > 0.5, 1 texture { TextureHullFront rotate <
90.0, 0.0, 0.0 > scale 1/450.0 translate < 0.0, 0.0, MyZ+0.00 > } }

 cylinder { < -MyWidth,  MyThickness+0.150,   MyZ+0.825 > < MyWidth,
MyThickness+0.150,   MyZ+0.825 > 0.25, 1 texture { TextureHullFront
rotate < 90.0, 0.0, 0.0 > scale 1/450.0 translate < 0.0, 0.0, MyZ+0.00 > } }
 cylinder { < -MyWidth, -MyThickness-0.150,   MyZ+0.825 > < MyWidth,
-MyThickness-0.150,   MyZ+0.825 > 0.25, 1 texture { TextureHullFront
rotate < 90.0, 0.0, 0.0 > scale 1/450.0 translate < 0.0, 0.0, MyZ+0.00 >
} }

 cylinder { < -MyWidth,  MyThickness+0.150, MyZ+0.90 > < MyWidth,
MyThickness+0.150, MyZ+0.90 > 0.25, 1 texture { TextureHullFront
                            scale 1/450.0 translate < 0.0,
MyThickness+0.000,   0.0 > } }
 cylinder { < -MyWidth,  MyThickness+0.120, MyZ+0.90 > < MyWidth,
MyThickness+0.120, MyZ+0.90 > 0.25, 1 texture {
TextureHullWindowsFewSide rotate < 0.0, 90.0, 0.0 > scale 1/450.0
translate < 0.0,  MyThickness+0.000,   0.0 > } }
 cylinder { < -MyWidth,  MyThickness+0.090, MyZ+0.90 > < MyWidth,
MyThickness+0.090, MyZ+0.90 > 0.25, 1 texture {
TextureHullWindowsFewSide rotate < 0.0, 90.0, 0.0 > scale 1/450.0
translate < 0.0,  MyThickness+0.000,   0.0 > } }
 cylinder { < -MyWidth,  MyThickness+0.060, MyZ+0.90 > < MyWidth,
MyThickness+0.060, MyZ+0.90 > 0.25, 1 texture {
TextureHullWindowsFewSide rotate < 0.0, 90.0, 0.0 > scale 1/450.0
translate < 0.0,  MyThickness+0.000,   0.0 > } }
 cylinder { < -MyWidth,  MyThickness+0.030, MyZ+0.90 > < MyWidth,
MyThickness+0.030, MyZ+0.90 > 0.25, 1 texture {
TextureHullWindowsFewSide rotate < 0.0, 90.0, 0.0 > scale 1/450.0
translate < 0.0,  MyThickness+0.000,   0.0 > } }
 cylinder { < -MyWidth,  0.00,              MyZ+0.90 > < MyWidth,  0.00,
             MyZ+0.90 > 0.25, 1 texture { TextureHullWindowsFewSide
rotate < 0.0, 90.0, 0.0 > scale 1/450.0 translate < 0.0,  00.00,
       0.0 > } }
 cylinder { < -MyWidth, -MyThickness-0.030, MyZ+0.90 > < MyWidth,
-MyThickness-0.030, MyZ+0.90 > 0.25, 1 texture {
TextureHullWindowsFewSide rotate < 0.0, 90.0, 0.0 > scale 1/450.0
translate < 0.0,  MyThickness-0.000,   0.0 > } }
 cylinder { < -MyWidth, -MyThickness-0.060, MyZ+0.90 > < MyWidth,
-MyThickness-0.060, MyZ+0.90 > 0.25, 1 texture {
TextureHullWindowsFewSide rotate < 0.0, 90.0, 0.0 > scale 1/450.0
translate < 0.0,  MyThickness-0.000,   0.0 > } }
 cylinder { < -MyWidth, -MyThickness-0.090, MyZ+0.90 > < MyWidth,
-MyThickness-0.090, MyZ+0.90 > 0.25, 1 texture {
TextureHullWindowsFewSide rotate < 0.0, 90.0, 0.0 > scale 1/450.0
translate < 0.0,  MyThickness-0.000,   0.0 > } }
 cylinder { < -MyWidth, -MyThickness-0.120, MyZ+0.90 > < MyWidth,
-MyThickness-0.120, MyZ+0.90 > 0.25, 1 texture {
TextureHullWindowsFewSide rotate < 0.0, 90.0, 0.0 > scale 1/450.0
translate < 0.0,  MyThickness-0.000,   0.0 > } }
 cylinder { < -MyWidth, -MyThickness-0.150, MyZ+0.90 > < MyWidth,
-MyThickness-0.150, MyZ+0.90 > 0.25, 1 texture { TextureHullFront
                             scale 1/450.0 translate < 0.0,
MyThickness-0.000,   0.0 > } }

 sphere { < 0.0, 0.0, 0.0 > 0.5, 1 scale < 1.00, 1.00, 0.5 > translate <
 MyWidth-0.2, 0.0, MyZ-0.25 > texture { TextureHullWindowsFewSide scale
1/450.0 translate < 0.0, 0.0, (-250.0-0.0)/450.0 > } } // Hangar-Seiten
 sphere { < 0.0, 0.0, 0.0 > 0.5, 1 scale < 1.00, 1.00, 0.5 > translate <
-MyWidth+0.2, 0.0, MyZ-0.25 > texture { TextureHullWindowsFewSide scale
1/450.0 translate < 0.0, 0.0, (-250.0-0.0)/450.0 > } }
 sphere { < 0.0, 0.0, 0.0 > 0.5, 1 scale < 1.25, 1.75, 2.5 > translate <
 MyWidth-0.3, 0.0, MyZ+0.90 > texture { TextureHullWindowsFewSide scale
1/450.0 translate < 0.0, 0.0, (-250.0-0.0)/450.0 > } }
 sphere { < 0.0, 0.0, 0.0 > 0.5, 1 scale < 1.25, 1.75, 2.5 > translate <
-MyWidth+0.3, 0.0, MyZ+0.90 > texture { TextureHullWindowsFewSide scale
1/450.0 translate < 0.0, 0.0, (-250.0-0.0)/450.0 > } }

 sphere { < 0.0, 0.0, 1.5 > 0.5, -4 texture { TextureHullWindowsFewSide
rotate < 0.0, 90.0, 0.0 > scale 1/450.0 translate < 0.0, 0.0, 0.0 > } }
// Heckeinschnitt
 sphere { <  0.35,  0.25, MyZ+0.08 > 0.275, -1.50 texture {
TextureHullFront rotate < 90.0, 0.0, 0.0 > scale 1/450.0 translate <
0.0, 0.0, MyZ+0.00 > } }
 sphere { <  0.35, -0.25, MyZ+0.08 > 0.275, -1.50 texture {
TextureHullFront rotate < 90.0, 0.0, 0.0 > scale 1/450.0 translate <
0.0, 0.0, MyZ+0.00 > } }
 sphere { < -0.35,  0.25, MyZ+0.08 > 0.275, -1.50 texture {
TextureHullFront rotate < 90.0, 0.0, 0.0 > scale 1/450.0 translate <
0.0, 0.0, MyZ+0.00 > } }
 sphere { < -0.35, -0.25, MyZ+0.08 > 0.275, -1.50 texture {
TextureHullFront rotate < 90.0, 0.0, 0.0 > scale 1/450.0 translate <
0.0, 0.0, MyZ+0.00 > } }
 sphere { <  0.85,  0.25, MyZ+0.06 > 0.225, -1.75 texture {
TextureHullFront rotate < 90.0, 0.0, 0.0 > scale 1/450.0 translate <
0.0, 0.0, MyZ+0.00 > } }
 sphere { <  0.85, -0.25, MyZ+0.06 > 0.225, -1.75 texture {
TextureHullFront rotate < 90.0, 0.0, 0.0 > scale 1/450.0 translate <
0.0, 0.0, MyZ+0.00 > } }
 sphere { < -0.85,  0.25, MyZ+0.06 > 0.225, -1.75 texture {
TextureHullFront rotate < 90.0, 0.0, 0.0 > scale 1/450.0 translate <
0.0, 0.0, MyZ+0.00 > } }
 sphere { < -0.85, -0.25, MyZ+0.06 > 0.225, -1.75 texture {
TextureHullFront rotate < 90.0, 0.0, 0.0 > scale 1/450.0 translate <
0.0, 0.0, MyZ+0.00 > } }
 sphere { <  1.10,  0.23, MyZ-0.04 > 0.175, -1.50 texture {
TextureHullFront rotate < 90.0, 0.0, 0.0 > scale 1/450.0 translate <
0.0, 0.0, MyZ+0.00 > } }
 sphere { <  1.10, -0.23, MyZ-0.04 > 0.175, -1.50 texture {
TextureHullFront rotate < 90.0, 0.0, 0.0 > scale 1/450.0 translate <
0.0, 0.0, MyZ+0.00 > } }
 sphere { < -1.10,  0.23, MyZ-0.04 > 0.175, -1.50 texture {
TextureHullFront rotate < 90.0, 0.0, 0.0 > scale 1/450.0 translate <
0.0, 0.0, MyZ+0.00 > } }
 sphere { < -1.10, -0.23, MyZ-0.04 > 0.175, -1.50 texture {
TextureHullFront rotate < 90.0, 0.0, 0.0 > scale 1/450.0 translate <
0.0, 0.0, MyZ+0.00 > } }

 scale 450.0
 translate < 0.0, 0.0, 250.0 >
}


Post a reply to this message


Attachments:
Download 'untitled-3.jpg' (305 KB)

Preview of image 'untitled-3.jpg'
untitled-3.jpg


 

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