POV-Ray : Newsgroups : povray.beta-test : Render Stats, BSP, Sphere negative stat Server Time
24 Dec 2024 12:20:58 EST (-0500)
  Render Stats, BSP, Sphere negative stat (Message 1 to 3 of 3)  
From: StephenS
Subject: Render Stats, BSP, Sphere negative stat
Date: 6 Sep 2009 19:55:00
Message: <web.4aa44b9d1ccaa3dd748e519b0@news.povray.org>
While trying to get the most number of entrys under the render stats, I came
across the following.

Sphere lists a negative succeeded value, when run with Bounding_Method=2
Using the default bounding has no problem.
Commenting out the Parametric object returns the sphere value to positive.

*** ini file Test_messages.ini
Input_File_Name=Test_messages.pov
Output_File_Name=Test_messages
Output_File_Type=N
Width = 512
Height = 384
Bounding_Threshold = 3
Display=On
Verbose=On
Render_Block_Size=32 ;32 default
Work_Threads=3
Bounding_Method=2 ;BSP
File_Gamma=1

//// Test_messages.pov
#version 3.7;
#declare Test_warning_01=false;        // true false
#declare Test_parse_error_01=false;
#declare Test_debug_01=false;
#declare Test_Base_objects_01=true;

background{<1,1,1>}
light_source{<0,10,-10>}
camera {
 perspective
 location <0,2,-5>
 direction <0,-.1,1>
 right 1.33*x
 up y
 sky <0,1,0>
}
#default {
 pigment { rgb <1,0,0> }
}


#if (Test_parse_error_01)
 #version 3.7                       // needs ";" at end
 sor{4,<0,0>,<1,1>,<2,1>,<2.1,0>}   // Incorect point in surface of revolution.
#end

#if (Test_warning_01)
// should have at least 2 objects in csg.
 #union{box{1,1}}
// Linear prism not closed. Closing it.
 prism{linear_spline 0,1,3,<0,0>,<1,0>,<1,1>}
// Degenerate triangle. Please remove.
 triangle{<-1,0,0>,<-1,0,1>,<-1,0,0>}
// Polygon not closed. Closing it.
 polygon{3<-1,0,-1>,<1,0,-1>,<0,0,1>}
// Max gradient... stuff
 isosurface{function{x} contained_by{box{-1,1}}}

#end

#if (Test_debug_01)
 #debug "test debug message"             //
 #debug "\n"
#end

#if (Test_Base_objects_01)    // listed in order of ray->shape intersection
stats

 bicubic_patch{type 1 u_steps 4 v_steps 4 flatness 0
  <-1,0,-1>,<-.3,0,-1>,<.3,0,-1>,<1,0,-1>,
  <-1,0,-.3>,<-.3,0,-.3>,<.3,0,-.3>,<1,0,-.3>,
  <-1,0,.3>,<-.3,0,.3>,<.3,0,.3>,<1,0,.3>,
  <-1,0,1>,<-.3,0,1>,<.3,0,1>,<1,0,1>
 }
 blob{threshold 0.6 sphere{<0,0,0>,.2,1} sphere{<0,0,.2>,.2,1}}
 box{0,1}
 cylinder{0,1,.2}
 disc{0,y,1,0}
 height_field{png"bumpmap_.png"}  // bumpmap_.png from POV-Ray installation
 isosurface{function{x} contained_by{box{-1,1}}max_gradient .23}
 julia_fractal{<-.083,0,-.83,-.025>quaternion sqr max_iteration 8 precision 15}
 lathe{linear_spline 3,<.1, 0>,<.2, 0>,<.1, 1>}
 mesh{triangle{<0,.2,2>,<0,.2,1>,<.2,.2,2>}}
 parametric{function{sin(u)*cos(v)}function{sin(u)*sin(v)}function{cos(u)}<0,0>,<2*pi,pi>contained_by{sphere{0,1.1}}tra
nslate<-2,0,10>}
 plane{y,0 translate<0,-50,0>}
 polygon{4<-1,0,-1>,<1,0,-1>,<0,0,1>,<-1,0,-1>}
 prism{linear_spline 0,1,4,<0,0>,<1,0>,<1,1>,<0,0>}
 quartic{<1,0,0,0,2,0,0,2,0,-10,0,0,0,0,0,0,0,0,0,0,1,0,0,2,0,56,0,0,0,0,1,0,-10,0,78>sturm}
 sphere{0,.2}
 sphere_sweep{linear_spline 2,<0,-1,3>,.5<0,1,3>,.5 tolerance .00001}
 sor{4,<0,0>,<1,1>,<1,1.1>,<1.1,1.5>}
 superellipsoid{<.750,.250>translate<0,2,0>}
 torus{.75,.25}
 triangle{<-.1,0,0>,<-.1,0,1>,<0,0,0>}
 text{ttf "crystal.ttf" "Test" .1, 0}

#end


Post a reply to this message

From: StephenS
Subject: Re: Render Stats, BSP, Sphere negative stat
Date: 6 Sep 2009 20:15:00
Message: <web.4aa44f815c0a917c748e519b0@news.povray.org>
"StephenS" <nomail@nomail> wrote:
> Commenting out the Parametric object returns the sphere value to positive.
Commenting out the julia_fractal also fixes the problem.
//julia_fractal{<-.083,0,-.83,-.025>quaternion sqr max_iteration 8 precision 15}

Stephen S


Post a reply to this message

From: StephenS
Subject: Re: Render Stats, BSP, Sphere negative stat
Date: 6 Sep 2009 20:35:00
Message: <web.4aa4545c5c0a917c748e519b0@news.povray.org>
"StephenS" <nomail@nomail> wrote:
> While trying to get the most number of entrys under the render stats, I came
> across the following.
A shorter version;

Input_File_Name=Test_messages_bsp.pov
Output_File_Name=Test_messages_bsp
Output_File_Type=N
Width = 512
Height = 384
Bounding_Method=2 ;BSP

background{<1,1,1>}
light_source{<0,10,-10>}
camera {
 perspective
 location <0,2,-5>
 direction <0,-.1,1>
 right 1.33*x
 up y
 sky <0,1,0>
 look_at <0,0,0>
}
#default {
 pigment { rgb <1,0,0> }
}
julia_fractal{<-.083,0,-.83,-.025>quaternion sqr max_iteration 8 precision 15}

parametric{function{sin(u)*cos(v)}function{sin(u)*sin(v)}function{cos(u)}<0,0>,<2*pi,pi>contained_by{sphere{0,1.1}}tran
slate<-2,0,10>}

sphere{0,.2}


Post a reply to this message

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