POV-Ray : Newsgroups : povray.beta-test : crash with parametric object Server Time
29 Jul 2024 16:29:42 EDT (-0400)
  crash with parametric object (Message 1 to 2 of 2)  
From:
Subject: crash with parametric object
Date: 26 Mar 2002 10:17:53
Message: <cu31auko3a0g3gnqgjb5t8uog4tj8id65q@4ax.com>
POV 3.5 b 14 icl on WinNT Sp 6 PII 233 with 128 MB

Below code causes violation exception. It works fine when Center_Object macro
isn't used. Any confirmation ?

#include "shapes"

#local Surface=parametric{
  function{u}
  function{(sin(u*v))^2}
  function{v}
  <0,0>,<2*pi,2*pi>
  contained_by{box{<0,0,0><2*pi,1,2*pi>}}
  max_gradient 2
  pigment {rgb 1}
};

Center_Object(Surface,1)

camera {
  location <0.0,0.5,-4.0>
  direction 1.5*z
  right     x*image_width/image_height
  look_at   <0.0, 0.0,  0.0>
}

light_source{100*y,1}

ABX


Post a reply to this message

From: Chris Becker
Subject: Re: crash with parametric object
Date: 26 Mar 2002 20:38:31
Message: <3ca12297$1@news.povray.org>
I copied the code and POV-Ray comes back with an access violation right
before it starts to render. Whether it's your code or POV-Ray is beyond me
though.


news:cu31auko3a0g3gnqgjb5t8uog4tj8id65q@4ax.com...
> POV 3.5 b 14 icl on WinNT Sp 6 PII 233 with 128 MB
>
> Below code causes violation exception. It works fine when Center_Object
macro
> isn't used. Any confirmation ?
>
> #include "shapes"
>
> #local Surface=parametric{
>   function{u}
>   function{(sin(u*v))^2}
>   function{v}
>   <0,0>,<2*pi,2*pi>
>   contained_by{box{<0,0,0><2*pi,1,2*pi>}}
>   max_gradient 2
>   pigment {rgb 1}
> };
>
> Center_Object(Surface,1)
>
> camera {
>   location <0.0,0.5,-4.0>
>   direction 1.5*z
>   right     x*image_width/image_height
>   look_at   <0.0, 0.0,  0.0>
> }
>
> light_source{100*y,1}
>
> ABX


Post a reply to this message

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