POV-Ray : Newsgroups : povray.general : no_image behaviour : Re: no_image behaviour Server Time
19 Apr 2024 19:21:23 EDT (-0400)
  Re: no_image behaviour  
From: Bald Eagle
Date: 17 Jun 2018 13:25:01
Message: <web.5b26984a6d52b562458c7afe0@news.povray.org>
Before Alain castigates you:

"For media, the defaults are :
method 3
intervals 1
samples 10

confidence is NOT used
variance is NOT used
Only the first value of samples is ever used if you provide two.
Using intervals >1 greatly impaire your rendering speed.

Using intervals with a value larger than 1 is only adviseable if using
method 1 or 2."

I had to rewrite your code to make use of the texture.  What inc file are you
using?

This is as far as I got so far:



/* cf 'no_image' */

#version 3.7;

global_settings {
  assumed_gamma 1.0
  charset utf8
}

//#include "d2mat.inc"


#declare Mline1 = material {
  texture {
    //pigment {srgbft <1,1,1,1,1>}
    pigment {rgbt 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        3
      intervals     1
      samples       10
      //confidence    0.9
      //variance      0.005
      ratio         0.9
      absorption    0
      emission      rgb <1,0,0>
      aa_threshold  0.1
      aa_level      4
    }
  }
}

#declare Mline2 = Mline1;
#declare Mline3 = Mline1;

#declare Mbox1 = Mline1;
#declare Mbox2 = Mline1;
#declare Mbox3 = Mline1;

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 */


Post a reply to this message

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