POV-Ray : Newsgroups : povray.advanced-users : Strange (undesireable) effect Server Time
1 Nov 2024 19:16:26 EDT (-0400)
  Strange (undesireable) effect (Message 1 to 4 of 4)  
From: Michael Sobers
Subject: Strange (undesireable) effect
Date: 20 Jan 2001 15:33:31
Message: <3a69f61b@news.povray.org>
Can anyone tell me what's causing the transparent cylinders containing the
media to show up black when viewed through the semi-transparent spheres?  I
couldn't get the bug worked out prior to entering it into the IRTC animation
contest.  By the way, some of the entries are really good this round -
they're worth checking out!  I put the code at the end in case that helps.

Thanks for the help!
- Mike Sobers

"Here's your problem - your Kalman filter's all gunked up.  We'll have to
replace it with a clean one." - me, after my linear control systems final


Here's the code for the media:

#declare laser2 = media {
  emission 1.5
  intervals 5
  samples 1, 10
  confidence 0.9999
  variance 1/1000
  density {
    cylindrical
    ramp_wave
    turbulence 0.3
    color_map {
      [0.0 color rgb <0, 0, 0>]
      [0.05 color rgb <0.3, 0.0, 0>]
      [0.8 color rgb <1, 0.1, 0.1>]
      [1.0 color rgb <1, 0.2, 0.2>]
    } scale 0.35
  } rotate 90*x
}

And here's the code for the shields.

#declare SHIELD_GLOW = texture {
   pigment {
     wrinkles
     turbulence .6
     octaves 3
     lambda 3
     omega 0.4
     color_map {
      [0 color rgbt <1, 0.6, 1, 1>]
      [0.56 color rgbt <1, 0.5, 1, .9>]
      [0.56 color rgbt <1, 0.5, 1, 0.7>]
      [0.60 color rgbt <0.5, 0.5, 1, 0.7>]
      [0.64 color rgbt <1, 0.5, 1, 0.7>]
      [0.64 color rgbt <1, 0.5, 1, 0.9>]
      [1 color rgbt <1, 0.6, 1, 1>]
     }
     scale 10 translate <0,0,10*My_Clock>
   }
   finish { diffuse 0 ambient 1 }
}

#declare shield1 = difference {
    sphere { 0 12 scale <1,0.5,1.5> translate <0,1,-1> texture
{ SHIELD_GLOW }}
    sphere { 0 12 scale 0.97*<1,0.5,1.5> translate <0,1,-1> texture
 SHIELD_GLOW }}
    box {<-12.01,-5.01,17.01-36.02*shield_coverage> <12.01,7.01,-19.01>
      texture

        pigment { color rgbt <0.7,0.7,1,0.4> }
        finish { ambient 1 diffuse 0 }
      }
    }
    hollow on
    no_shadow
}


Post a reply to this message


Attachments:
Download 'Pursu331.jpg' (13 KB)

Preview of image 'Pursu331.jpg'
Pursu331.jpg


 

From: Chris Huff
Subject: Re: Strange (undesireable) effect
Date: 20 Jan 2001 15:46:15
Message: <chrishuff-9A8CC4.15472220012001@news.povray.org>
In article <3a69f61b@news.povray.org>, "Michael Sobers" 
<mic### [at] mindspringcom> wrote:

> Can anyone tell me what's causing the transparent cylinders 
> containing the media to show up black when viewed through the 
> semi-transparent spheres?  I couldn't get the bug worked out prior to 
> entering it into the IRTC animation contest.  By the way, some of the 
> entries are really good this round - they're worth checking out!  I 
> put the code at the end in case that helps.

Most likely you haven't specified a high enough max_trace_level. See:
http://www.students.tut.fi/~warp/povVFAQ/languageVFAQ.html#maxtracelevel

Also read the manual, section 4.10.6 titled "Max_Trace_Level".

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

From: Ken
Subject: Re: Strange (undesireable) effect
Date: 20 Jan 2001 22:56:43
Message: <3A6A5E5F.BCF05563@pacbell.net>
Chris Huff wrote:

> Most likely you haven't specified a high enough max_trace_level. See:
> http://www.students.tut.fi/~warp/povVFAQ/languageVFAQ.html#maxtracelevel
> 
> Also read the manual, section 4.10.6 titled "Max_Trace_Level".

I agree with your assessment. I also would like to remind Michael
that we do not allow binary attachements in this group. The example
image should have been posted in povray.binaries.images.

-- 
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Michael Sobers
Subject: Re: Strange (undesireable) effect
Date: 22 Jan 2001 18:52:07
Message: <3a6cc7a7@news.povray.org>
Thanks for the tip!  I should have figured it out if I'd noticed that
problem only occurs when looking through two layers of transparency, but not
one.  I've never had to change the gobal setting before, so I didn't think
about it.

Sorry about the binary . . .

"Ken" <tyl### [at] pacbellnet> wrote in message
news:3A6A5E5F.BCF05563@pacbell.net...
>
>
> Chris Huff wrote:
>
> > Most likely you haven't specified a high enough max_trace_level. See:
> > http://www.students.tut.fi/~warp/povVFAQ/languageVFAQ.html#maxtracelevel
> >
> > Also read the manual, section 4.10.6 titled "Max_Trace_Level".
>
> I agree with your assessment. I also would like to remind Michael
> that we do not allow binary attachements in this group. The example
> image should have been posted in povray.binaries.images.
>
> --
> Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
> http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

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