POV-Ray : Newsgroups : povray.newusers : Transparent Round_Box has many artifacts : Transparent Round_Box has many artifacts Server Time
15 Apr 2024 11:42:14 EDT (-0400)
  Transparent Round_Box has many artifacts  
From: ceving
Date: 23 Feb 2024 04:40:00
Message: <web.65d86792b02b090b9901d2cada2676d5@news.povray.org>
I tried to create a transparent cylinder with spherical ends. I used Round_Box,
but I get many strange artifacts. I am not sure why. Can anybody explain why or
how I can produce this object in another way?

This is what I have done:

#version 3.7;
#include "colors.inc"
#include "shapes.inc"
global_settings {
 assumed_gamma 0.4
}
background { colour srgbt <0.0, 0.0, 0.0, 1.0> }
camera {
  location <0, 5, 0>
  look_at  <0, -1, 0>
}

#declare pA = <-1.5,  0, -0.5>;  // A corner
#declare pB = <+1.5, -1, +0.5>;  // The opposite corner
#declare EdgeAndcornerRadius = 0.5;
#declare UseMerge = false;

object {
  Round_Box(pA, pB, EdgeAndcornerRadius, UseMerge)
  texture {
    pigment { color srgbt <0.0, 0.0, 0.0, 0.5> }
  }
  finish {
    ambient .1
    diffuse .3
    specular 1
    roughness .01
    metallic
    reflection {
      .75
      metallic
    }
  }
}

light_source { <-2, 4, 4> color White}


Post a reply to this message


Attachments:
Download 'player.png' (15 KB)

Preview of image 'player.png'
player.png


 

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