POV-Ray : Newsgroups : povray.text.scene-files : Red is Black Server Time
22 Dec 2024 18:24:29 EST (-0500)
  Red is Black (Message 1 to 5 of 5)  
From: Dick Conley
Subject: Red is Black
Date: 10 Apr 2003 18:53:24
Message: <3e95f5e4@news.povray.org>
I am running PovRay v3.5, Windows 98 with an Athlon 1GHz processor and 256Mb
of memory.

When rendering a transparent object using the following:
rgbf<1.0, 0.0, 0.0, 1.0>
 reflection { 0.17, 1.0 fresnel on  }
conserve_energy
with NO dispersion, I get a black image.
Change the color to rgbf<0.0, 1.0, 0.0, 1.0> and I get a bright green image.
Change the color to rgbf<0.0, 0.0, 1.0, 1.0> and I get a bright blue image.
Any value of red only produces a black image.
A red value with a green and/or blue value seems to work fine.
Is this part of the problem I reported on Jan. 19, 2003 or is this something
different?

Here is my scene file:

#version 3.5;

global_settings { assumed_gamma 2.2 }

#include "colors.inc"

#declare CrnTan = tan(radians(34.0));

#declare PavTan = tan(radians(42.5));

#declare Color = rgbf<1.0, 0.0, 0.0, 1.0>;

#declare MaxY = 0.42786;
#declare MinY = -0.941979;

#declare CrnY = 0.037679;
#declare Y0 = (0.037679 - CrnY) * CrnTan + CrnY;
#declare Y1 = (0.313579 - CrnY) * CrnTan + CrnY;
#declare Y2 = (0.42786 - CrnY) * CrnTan + CrnY;

#declare PavY = 0;
#declare Y3 = (0 - PavY) * PavTan + PavY;
#declare Y4 = (-0.627986 - PavY) * PavTan + PavY;
#declare Y5 = (-0.941979 - PavY) * PavTan + PavY;

#declare Gem =
union
{
// Crown Triangles
 triangle {
  <0.36048, Y0, 0.870275>,
  <0, Y0, 0.941979>,
  <0.275899, Y1, 0.66608> }
 triangle {
  <0.66608, Y0, 0.66608>,
  <0.36048, Y0, 0.870275>,
  <0.275899, Y1, 0.66608> }
 triangle {
  <0.870275, Y0, 0.36048>,
  <0.66608, Y0, 0.66608>,
  <0.66608, Y1, 0.275899> }
 triangle {
  <0.941979, Y0, 0>,
  <0.870275, Y0, 0.36048>,
  <0.66608, Y1, 0.275899> }
 triangle {
  <0.870275, Y0, -0.36048>,
  <0.941979, Y0, 0>,
  <0.66608, Y1, -0.275899> }
 triangle {
  <0.66608, Y0, -0.66608>,
  <0.870275, Y0, -0.36048>,
  <0.66608, Y1, -0.275899> }
 triangle {
  <0.36048, Y0, -0.870275>,
  <0.66608, Y0, -0.66608>,
  <0.275899, Y1, -0.66608> }
 triangle {
  <0, Y0, -0.941979>,
  <0.36048, Y0, -0.870275>,
  <0.275899, Y1, -0.66608> }
 triangle {
  <-0.36048, Y0, -0.870275>,
  <0, Y0, -0.941979>,
  <-0.275899, Y1, -0.66608> }
 triangle {
  <-0.66608, Y0, -0.66608>,
  <-0.36048, Y0, -0.870275>,
  <-0.275899, Y1, -0.66608> }
 triangle {
  <-0.870275, Y0, -0.36048>,
  <-0.66608, Y0, -0.66608>,
  <-0.66608, Y1, -0.275899> }
 triangle {
  <-0.941979, Y0, 0>,
  <-0.870275, Y0, -0.36048>,
  <-0.66608, Y1, -0.275899> }
 triangle {
  <-0.870275, Y0, 0.36048>,
  <-0.941979, Y0, 0>,
  <-0.66608, Y1, 0.275899> }
 triangle {
  <-0.66608, Y0, 0.66608>,
  <-0.870275, Y0, 0.36048>,
  <-0.66608, Y1, 0.275899> }
 triangle {
  <-0.36048, Y0, 0.870275>,
  <-0.66608, Y0, 0.66608>,
  <-0.275899, Y1, 0.66608> }
 triangle {
  <0, Y0, 0.941979>,
  <-0.36048, Y0, 0.870275>,
  <-0.275899, Y1, 0.66608> }
 triangle {
  <0.275899, Y1, 0.66608>,
  <0, Y0, 0.941979>,
  <-0.275899, Y1, 0.66608> }
 triangle {
  <0.275899, Y1, 0.66608>,
  <-0.275899, Y1, 0.66608>,
  <0, Y2, 0.551799> }
 triangle {
  <0.66608, Y0, 0.66608>,
  <0.275899, Y1, 0.66608>,
  <0.390181, Y2, 0.390181> }
 triangle {
  <0.66608, Y0, 0.66608>,
  <0.390181, Y2, 0.390181>,
  <0.66608, Y1, 0.275899> }
 triangle {
  <0.941979, Y0, 0>,
  <0.66608, Y1, 0.275899>,
  <0.551799, Y2, 0> }
 triangle {
  <0.941979, Y0, 0>,
  <0.551799, Y2, 0>,
  <0.66608, Y1, -0.275899> }
 triangle {
  <0.66608, Y0, -0.66608>,
  <0.66608, Y1, -0.275899>,
  <0.390181, Y2, -0.390181> }
 triangle {
  <0.66608, Y0, -0.66608>,
  <0.390181, Y2, -0.390181>,
  <0.275899, Y1, -0.66608> }
 triangle {
  <0, Y0, -0.941979>,
  <0.275899, Y1, -0.66608>,
  <0, Y2, -0.551799> }
 triangle {
  <0, Y0, -0.941979>,
  <0, Y2, -0.551799>,
  <-0.275899, Y1, -0.66608> }
 triangle {
  <-0.66608, Y0, -0.66608>,
  <-0.275899, Y1, -0.66608>,
  <-0.390181, Y2, -0.390181> }
 triangle {
  <-0.66608, Y0, -0.66608>,
  <-0.390181, Y2, -0.390181>,
  <-0.66608, Y1, -0.275899> }
 triangle {
  <-0.941979, Y0, 0>,
  <-0.66608, Y1, -0.275899>,
  <-0.551799, Y2, 0> }
 triangle {
  <-0.941979, Y0, 0>,
  <-0.551799, Y2, 0>,
  <-0.66608, Y1, 0.275899> }
 triangle {
  <-0.66608, Y0, 0.66608>,
  <-0.66608, Y1, 0.275899>,
  <-0.390181, Y2, 0.390181> }
 triangle {
  <-0.66608, Y0, 0.66608>,
  <-0.390181, Y2, 0.390181>,
  <-0.275899, Y1, 0.66608> }
 triangle {
  <0, Y2, 0.551799>,
  <-0.275899, Y1, 0.66608>,
  <-0.390181, Y2, 0.390181> }
 triangle {
  <0.275899, Y1, 0.66608>,
  <0, Y2, 0.551799>,
  <0.390181, Y2, 0.390181> }
 triangle {
  <0.66608, Y1, 0.275899>,
  <0.390181, Y2, 0.390181>,
  <0.551799, Y2, 0> }
 triangle {
  <0.66608, Y1, -0.275899>,
  <0.551799, Y2, 0>,
  <0.390181, Y2, -0.390181> }
 triangle {
  <0.275899, Y1, -0.66608>,
  <0.390181, Y2, -0.390181>,
  <0, Y2, -0.551799> }
 triangle {
  <-0.275899, Y1, -0.66608>,
  <0, Y2, -0.551799>,
  <-0.390181, Y2, -0.390181> }
 triangle {
  <-0.66608, Y1, -0.275899>,
  <-0.390181, Y2, -0.390181>,
  <-0.551799, Y2, 0> }
 triangle {
  <-0.66608, Y1, 0.275899>,
  <-0.551799, Y2, 0>,
  <-0.390181, Y2, 0.390181> }
 triangle {
  <0, Y2, 0.551799>,
  <-0.390181, Y2, 0.390181>,
  <-0.551799, Y2, 0>
  pigment { Color }
  finish {
   ambient 0
   diffuse 0
   reflection 0.1
  }
 }
 triangle {
  <0, Y2, 0.551799>,
  <-0.551799, Y2, 0>,
  <-0.390181, Y2, -0.390181>
  pigment { Color }
  finish {
   ambient 0
   diffuse 0
   reflection 0.1
  }
 }
 triangle {
  <0, Y2, 0.551799>,
  <-0.390181, Y2, -0.390181>,
  <0, Y2, -0.551799>
  pigment { Color }
  finish {
   ambient 0
   diffuse 0
   reflection 0.1
  }
 }
 triangle {
  <0, Y2, 0.551799>,
  <0, Y2, -0.551799>,
  <0.390181, Y2, -0.390181>
  pigment { Color }
  finish {
   ambient 0
   diffuse 0
   reflection 0.1
  }
 }
 triangle {
  <0, Y2, 0.551799>,
  <0.390181, Y2, -0.390181>,
  <0.551799, Y2, 0>
  pigment { Color }
  finish {
   ambient 0
   diffuse 0
   reflection 0.1
  }
 }
 triangle {
  <0, Y2, 0.551799>,
  <0.551799, Y2, 0>,
  <0.390181, Y2, 0.390181>
  pigment { Color }
  finish {
   ambient 0
   diffuse 0
   reflection 0.1
  }
 }
// Girdle Triangles
 triangle {
  <-0.36048, Y3, 0.870275>,
  <-0.36048, Y0, 0.870275>,
  <0, Y0, 0.941979> }
 triangle {
  <-0.36048, Y3, 0.870275>,
  <0, Y0, 0.941979>,
  <0, Y3, 0.941979> }
 triangle {
  <-0.36048, Y0, 0.870275>,
  <-0.36048, Y3, 0.870275>,
  <-0.66608, Y3, 0.66608> }
 triangle {
  <-0.36048, Y0, 0.870275>,
  <-0.66608, Y3, 0.66608>,
  <-0.66608, Y0, 0.66608> }
 triangle {
  <-0.66608, Y0, 0.66608>,
  <-0.66608, Y3, 0.66608>,
  <-0.870275, Y3, 0.36048> }
 triangle {
  <-0.66608, Y0, 0.66608>,
  <-0.870275, Y3, 0.36048>,
  <-0.870275, Y0, 0.36048> }
 triangle {
  <-0.870275, Y0, 0.36048>,
  <-0.870275, Y3, 0.36048>,
  <-0.941979, Y3, 0> }
 triangle {
  <-0.870275, Y0, 0.36048>,
  <-0.941979, Y3, 0>,
  <-0.941979, Y0, 0> }
 triangle {
  <-0.941979, Y0, 0>,
  <-0.941979, Y3, 0>,
  <-0.870275, Y3, -0.36048> }
 triangle {
  <-0.941979, Y0, 0>,
  <-0.870275, Y3, -0.36048>,
  <-0.870275, Y0, -0.36048> }
 triangle {
  <-0.870275, Y0, -0.36048>,
  <-0.870275, Y3, -0.36048>,
  <-0.66608, Y3, -0.66608> }
 triangle {
  <-0.870275, Y0, -0.36048>,
  <-0.66608, Y3, -0.66608>,
  <-0.66608, Y0, -0.66608> }
 triangle {
  <-0.66608, Y0, -0.66608>,
  <-0.66608, Y3, -0.66608>,
  <-0.36048, Y3, -0.870275> }
 triangle {
  <-0.66608, Y0, -0.66608>,
  <-0.36048, Y3, -0.870275>,
  <-0.36048, Y0, -0.870275> }
 triangle {
  <-0.36048, Y0, -0.870275>,
  <-0.36048, Y3, -0.870275>,
  <0, Y3, -0.941979> }
 triangle {
  <-0.36048, Y0, -0.870275>,
  <0, Y3, -0.941979>,
  <0, Y0, -0.941979> }
 triangle {
  <0, Y0, -0.941979>,
  <0, Y3, -0.941979>,
  <0.36048, Y3, -0.870275> }
 triangle {
  <0, Y0, -0.941979>,
  <0.36048, Y3, -0.870275>,
  <0.36048, Y0, -0.870275> }
 triangle {
  <0.36048, Y0, -0.870275>,
  <0.36048, Y3, -0.870275>,
  <0.66608, Y3, -0.66608> }
 triangle {
  <0.36048, Y0, -0.870275>,
  <0.66608, Y3, -0.66608>,
  <0.66608, Y0, -0.66608> }
 triangle {
  <0.66608, Y0, -0.66608>,
  <0.66608, Y3, -0.66608>,
  <0.870275, Y3, -0.36048> }
 triangle {
  <0.66608, Y0, -0.66608>,
  <0.870275, Y3, -0.36048>,
  <0.870275, Y0, -0.36048> }
 triangle {
  <0.870275, Y0, -0.36048>,
  <0.870275, Y3, -0.36048>,
  <0.941979, Y3, 0> }
 triangle {
  <0.870275, Y0, -0.36048>,
  <0.941979, Y3, 0>,
  <0.941979, Y0, 0> }
 triangle {
  <0.941979, Y0, 0>,
  <0.941979, Y3, 0>,
  <0.870275, Y3, 0.36048> }
 triangle {
  <0.941979, Y0, 0>,
  <0.870275, Y3, 0.36048>,
  <0.870275, Y0, 0.36048> }
 triangle {
  <0.870275, Y0, 0.36048>,
  <0.870275, Y3, 0.36048>,
  <0.66608, Y3, 0.66608> }
 triangle {
  <0.870275, Y0, 0.36048>,
  <0.66608, Y3, 0.66608>,
  <0.66608, Y0, 0.66608> }
 triangle {
  <0.66608, Y0, 0.66608>,
  <0.66608, Y3, 0.66608>,
  <0.36048, Y3, 0.870275> }
 triangle {
  <0.66608, Y0, 0.66608>,
  <0.36048, Y3, 0.870275>,
  <0.36048, Y0, 0.870275> }
 triangle {
  <0, Y3, 0.941979>,
  <0, Y0, 0.941979>,
  <0.36048, Y0, 0.870275> }
 triangle {
  <0, Y3, 0.941979>,
  <0.36048, Y0, 0.870275>,
  <0.36048, Y3, 0.870275> }
// Pavilion Triangles
 triangle {
  <-0.36048, Y3, 0.870275>,
  <0, Y3, 0.941979>,
  <-0.13006, Y4, 0.313993> }
 triangle {
  <-0.66608, Y3, 0.66608>,
  <-0.36048, Y3, 0.870275>,
  <-0.13006, Y4, 0.313993> }
 triangle {
  <-0.870275, Y3, 0.36048>,
  <-0.66608, Y3, 0.66608>,
  <-0.313993, Y4, 0.13006> }
 triangle {
  <-0.941979, Y3, 0>,
  <-0.870275, Y3, 0.36048>,
  <-0.313993, Y4, 0.13006> }
 triangle {
  <-0.870275, Y3, -0.36048>,
  <-0.941979, Y3, 0>,
  <-0.313993, Y4, -0.13006> }
 triangle {
  <-0.66608, Y3, -0.66608>,
  <-0.870275, Y3, -0.36048>,
  <-0.313993, Y4, -0.13006> }
 triangle {
  <-0.36048, Y3, -0.870275>,
  <-0.66608, Y3, -0.66608>,
  <-0.13006, Y4, -0.313993> }
 triangle {
  <0, Y3, -0.941979>,
  <-0.36048, Y3, -0.870275>,
  <-0.13006, Y4, -0.313993> }
 triangle {
  <0.36048, Y3, -0.870275>,
  <0, Y3, -0.941979>,
  <0.13006, Y4, -0.313993> }
 triangle {
  <0.66608, Y3, -0.66608>,
  <0.36048, Y3, -0.870275>,
  <0.13006, Y4, -0.313993> }
 triangle {
  <0.870275, Y3, -0.36048>,
  <0.66608, Y3, -0.66608>,
  <0.313993, Y4, -0.13006> }
 triangle {
  <0.941979, Y3, 0>,
  <0.870275, Y3, -0.36048>,
  <0.313993, Y4, -0.13006> }
 triangle {
  <0.870275, Y3, 0.36048>,
  <0.941979, Y3, 0>,
  <0.313993, Y4, 0.13006> }
 triangle {
  <0.66608, Y3, 0.66608>,
  <0.870275, Y3, 0.36048>,
  <0.313993, Y4, 0.13006> }
 triangle {
  <0.36048, Y3, 0.870275>,
  <0.66608, Y3, 0.66608>,
  <0.13006, Y4, 0.313993> }
 triangle {
  <0, Y3, 0.941979>,
  <0.36048, Y3, 0.870275>,
  <0.13006, Y4, 0.313993> }
 triangle {
  <-0.13006, Y4, 0.313993>,
  <0, Y3, 0.941979>,
  <0.13006, Y4, 0.313993> }
 triangle {
  <-0.13006, Y4, 0.313993>,
  <0.13006, Y4, 0.313993>,
  <0, Y5, 0> }
 triangle {
  <-0.66608, Y3, 0.66608>,
  <-0.13006, Y4, 0.313993>,
  <0, Y5, 0> }
 triangle {
  <-0.66608, Y3, 0.66608>,
  <0, Y5, 0>,
  <-0.313993, Y4, 0.13006> }
 triangle {
  <-0.941979, Y3, 0>,
  <-0.313993, Y4, 0.13006>,
  <0, Y5, 0> }
 triangle {
  <-0.941979, Y3, 0>,
  <0, Y5, 0>,
  <-0.313993, Y4, -0.13006> }
 triangle {
  <-0.66608, Y3, -0.66608>,
  <-0.313993, Y4, -0.13006>,
  <0, Y5, 0> }
 triangle {
  <-0.66608, Y3, -0.66608>,
  <0, Y5, 0>,
  <-0.13006, Y4, -0.313993> }
 triangle {
  <0, Y3, -0.941979>,
  <-0.13006, Y4, -0.313993>,
  <0, Y5, 0> }
 triangle {
  <0, Y3, -0.941979>,
  <0, Y5, 0>,
  <0.13006, Y4, -0.313993> }
 triangle {
  <0.66608, Y3, -0.66608>,
  <0.13006, Y4, -0.313993>,
  <0, Y5, 0> }
 triangle {
  <0.66608, Y3, -0.66608>,
  <0, Y5, 0>,
  <0.313993, Y4, -0.13006> }
 triangle {
  <0.941979, Y3, 0>,
  <0.313993, Y4, -0.13006>,
  <0, Y5, 0> }
 triangle {
  <0.941979, Y3, 0>,
  <0, Y5, 0>,
  <0.313993, Y4, 0.13006> }
 triangle {
  <0.66608, Y3, 0.66608>,
  <0.313993, Y4, 0.13006>,
  <0, Y5, 0> }
 triangle {
  <0.66608, Y3, 0.66608>,
  <0, Y5, 0>,
  <0.13006, Y4, 0.313993> }
}

camera {
 perspective
 location <0, 8, 0>
 right <4/3, 0, 0>
 up <0, 1, 0>
 direction <0, 0, 1>
 look_at <0, 0, 0>
 angle 20
}

light_source { <0, 1000, 0> color White parallel point_at <0, 0, 0> }

sky_sphere {
    pigment {
        gradient y
        color_map {
            [(1-cos(radians(110)))/2 color Gray80]
            [(1-cos(radians(140)))/2 color Gray50]
        }
        scale 2
        translate -1
    }
}

object {Gem
 pigment { Color }
 finish {
        ambient 0
        diffuse 0
        specular 0.8
        roughness 0.005
     reflection { 0.17, 1.0 fresnel on }
     conserve_energy
    }
 interior {
  ior 2.417
 }
}


Dick Conley
dic### [at] localaccesscom


Post a reply to this message

From: Warp
Subject: Re: Red is Black
Date: 11 Apr 2003 06:24:35
Message: <3e9697e3@news.povray.org>
I could start another flamewar about minimizing scenes for bug reports,
but I'm tired right now...

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Dick Conley
Subject: Re: Red is Black
Date: 11 Apr 2003 11:09:44
Message: <3e96dab8$1@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message
news:3e9697e3@news.povray.org...
>   I could start another flamewar about minimizing scenes for bug reports,
> but I'm tired right now...
>

Sorry about the size of the scene. The Gem object was replaced with a sphere
and a box and the problem seemed to go away so I felt that the Gem and its
multitude of triangles was necessary inorder to demonstrate the problem.

Dick Conley
dic### [at] localaccesscom

> --
> #macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb
x]
> [1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
> -1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// -
Warp -


Post a reply to this message

From: SAS
Subject: Re: Red is Black
Date: 11 Apr 2003 12:04:05
Message: <MPG.1900f7cdc5eb900798968c@news.povray.org>
Dick Conley wrote:

> When rendering a transparent object using the following:
> rgbf<1.0, 0.0, 0.0, 1.0>
>  reflection { 0.17, 1.0 fresnel on  }
> conserve_energy
> with NO dispersion, I get a black image.

As a workaround, add a 0.01 green or blue to the colour.
Then it comes out red.

> Change the color to rgbf<0.0, 1.0, 0.0, 1.0> and I get a bright green image.
> Change the color to rgbf<0.0, 0.0, 1.0, 1.0> and I get a bright blue image.

> Here is my scene file:

For anyone wanting to investigate the bug, here's a shorter 
scene file demonstrating the problem.  This has two copies of an 
object, the one on the right having a small amount of blue added 
(producing a bright red patch that is lacking in the other 
copy).

#version 3.5;
global_settings { assumed_gamma 1 }

#declare Color1 = rgbf<1, 0, 0,    1>;
#declare Color2 = rgbf<1, 0, 0.01, 1>;

#declare It = mesh {
  triangle { <-7, 2, 3>, <-6, 3, 0>, <-4, 3, 4> } 
  triangle { <-9, 0, 0>, <-9, 0, 4>, <-3, -6, 0> } 
  finish {
    specular .8
    reflection { 0.17, 1.0 fresnel on }
    conserve_energy
  }
  interior { ior 2 }
}

camera { location <0, 22, 0> look_at 0 }
light_source { <0, 90, 0> color rgb 1 }

object {
  It
  pigment { Color1 }
  translate <-5,0,0>
}
object {
  It
  pigment { Color2 }
  rotate y*180
  translate <5,0,0>
}


Post a reply to this message

From: Dick Conley
Subject: Re: Red is Black
Date: 12 Apr 2003 11:09:23
Message: <3e982c23@news.povray.org>
"SAS" <sas### [at] thisisinvalid> wrote in message
news:MPG.1900f7cdc5eb900798968c@news.povray.org...
> Dick Conley wrote:
>
> > When rendering a transparent object using the following:
> > rgbf<1.0, 0.0, 0.0, 1.0>
> >  reflection { 0.17, 1.0 fresnel on  }
> > conserve_energy
> > with NO dispersion, I get a black image.
>
> As a workaround, add a 0.01 green or blue to the colour.
> Then it comes out red.
>
I am relieved that it is a program bug and not something I was doing wrong.
I will just work around the problem. Thanks.
Dick Conley
dic### [at] localaccesscom


Post a reply to this message

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