POV-Ray : Newsgroups : povray.unofficial.patches : strange wind effect : strange wind effect Server Time
6 Oct 2024 11:11:49 EDT (-0400)
  strange wind effect  
From: Wlodzimierz ABX Skiba
Date: 26 Jul 2001 09:00:33
Message: <3b601471@news.povray.org>
I found some strange effect. It looks like the same problem as artefacts noticed
in isowooden throne (image on p.b.i) but much more dense. Below is source code
and image with the same title will be in p.b.i after moment. I have not yet
experimented with it but perhaps anybody can suggest solution ?

// BEGIN

#version unofficial MegaPov 0.6;

#include "modeler/modeling.inc"

global_settings
{
  assumed_gamma 1.0
  ini_option "Antialias=on"
  ini_option "Jitter=off"
  ini_option "Antialias_Threshold=0.3"
}

#local Model=union{
  #local P00=<-1,-1,-1>;
  #local P01=<-1,1,-1>;
  #local P02=<1,1,-1>;
  #local P03=<1,-1,-1>;
  #local P10=<-1,-1,1>;
  #local P11=<-1,1,1>;
  #local P12=<1,1,1>;
  #local P13=<1,-1,1>;
  #local R=0.01;
  cylinder{P00 P01 R}cylinder{P01 P02 R}
  cylinder{P02 P03 R}cylinder{P03 P00 R}
  cylinder{P10 P11 R}cylinder{P11 P12 R}
  cylinder{P12 P13 R}cylinder{P13 P10 R}
  cylinder{P00 P10 R}cylinder{P01 P11 R}
  cylinder{P02 P12 R}cylinder{P03 P13 R}
  sphere{P00 R}sphere{P01 R}sphere{P02 R}sphere{P03 R}
  sphere{P10 R}sphere{P11 R}sphere{P12 R}sphere{P13 R}
  #macro Cyl(R)
    #local R2=R*R;
    function{(x^2)+(y^2)-R2}
  #end
  isosurface{
    #local R0=0.3;
    #local R1=R0*1.2;
    #local H1=R1*sqrt(3);
    #local H2=H1/3;
    #local R2=0.9*H2;
    #local Cyl0=Cyl(R0)
    #local Cyl2=Cyl(R2)
    #local Thr=1/10^8;
    #local Shape=function{
      ( 1+Thr )
      -Thr^Cyl0(x+R1,y,z)
      -Thr^Cyl0(x-R1,y,z)
      -Thr^Cyl0(x,y-H1,z)
      -Thr^Cyl2(x,y-H2,z)
    }
    function{Shape(x,y,z)&(-z)}
    contained_by{box{P00,P12}}
    eval
    pigment{color rgb 0.5}
  }
  pigment{color rgb 1}
}

display_project(Model,0,0,0,color rgb 0)

// END

--
#macro Sig(A,B,X)_(A,B)_(B,X)_(X,A)#end#macro _(A,B)cylinder{<A.x,A.y,3>,<B.u,
B.v,3>.1,9}#end global_settings{max_trace_level 9}light_source{0 1}camera{up y
*4right-3*x}blob{_(<3,1>,<1,-5>)_(<2,-2>,<4,-2>)Sig(x,<-1,1.5>,<1,3>)_(z-1,z-4
)pigment{rgb 1}}box{-3 3pigment{rgb 0}finish{reflection 1}hollow} // POV-Ray31


Post a reply to this message

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