POV-Ray : Newsgroups : povray.general : no_image behaviour : Re: no_image behaviour Server Time
23 Apr 2024 15:06:21 EDT (-0400)
  Re: no_image behaviour  
From: jr
Date: 17 Jun 2018 11:25:01
Message: <web.5b267c626d52b562635cc5ad0@news.povray.org>
hi again,

Le_Forgeron <jgr### [at] freefr> wrote:
> > the question then is how can I have an media filled container "out of view" but
> > still interact with another, intersecting media filled container?
> >
> what about having a rgbft/srgbtf texture/pigment of the object such as
> <1, 1, 1, 1, 1> ?
> With finish to avoid reflection too.

all examples I've seen used {rgbt 1}, so had not tried with the filter
component.  made no difference though.  :-(

I've included the test scene I used, and, below that code, one of the
materials included from a separate file (which I can post if needed); all
materials are the same, bar colour (the verticals are also scaled down, ie
emission c * .35).

/* cf 'no_image' */

#version 3.7;

global_settings {
  assumed_gamma 1.0
  charset utf8
}

#include "d2mat.inc"

camera {
  orthographic
  location <5,4,-20>
  look_at <5,4,0>
  right x*(image_width/image_height)
  up <0,1,0>
  angle 90
}

#declare Oline1 = box {
  <0,1,0>, <20,2,20>
  hollow
  material {Mline1}
//  no_image
  no_reflection
  no_shadow
};

#declare Oline2 = box {
  <0,4,0>, <20,5,20>
  hollow
  material {Mline2}
//  no_image
  no_reflection
  no_shadow
};

#declare Oline3 = box {
  <0,7,0>, <20,8,20>
  hollow
  material {Mline3}
//  no_image
  no_reflection
  no_shadow
};

#declare Obox1 = box {
  <1,0,4>, <2,15,5>
  hollow
  material {Mbox1}
  no_reflection
  no_shadow
};

#declare Obox2 = box {
  <4,0,4>, <5,15,5>
  hollow
  material {Mbox2}
  no_reflection
  no_shadow
};

#declare Obox3 = box {
  <7,0,7>, <8,15,8>
  hollow
  material {Mbox3}
  no_reflection
  no_shadow
};

union {
  object {Oline1}
  object {Oline2}
  object {Oline3}
  object {Obox1}
  object {Obox2}
  object {Obox3}
}

/* this is not scaled */

#declare Mline1 = material {
  texture {
    pigment {srgbft <1,1,1,1,1>}
    finish {
      ambient     0
      brilliance  1
      crand       0
      diffuse     0
      metallic    0
      phong       0
      phong_size  40
      specular    0
      roughness   0.05
    }
  }
  interior {
    ior                 1.1
    caustics            0
    dispersion          1
    dispersion_samples  7
    fade_power          0
    fade_distance       0
    fade_color          rgb <0,0,0>
    media {
      method        2
      intervals     1
      samples       1, 1
      confidence    0.9
      variance      0.005
      ratio         0.9
      absorption    0
      emission      rgb <1,0,0>
      aa_threshold  0.1
      aa_level      4
    }
  }
};



regards, jr.


Post a reply to this message

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