POV-Ray : Newsgroups : povray.unofficial.patches : will not work Server Time
2 Sep 2024 12:14:46 EDT (-0400)
  will not work (Message 1 to 8 of 8)  
From: Brian & Lois Bivolcic
Subject: will not work
Date: 4 Feb 2000 22:55:37
Message: <389B9EE5.5104B762@popampa.com>
Hi all,

For some reason I can't this scene to work.
using win95

thanks Brian

#version unofficial MegaPOV 0.4;

#macro center(obj)
 translate -(min_extent(obj)+max_extent(obj))/2
#end

#macro over(obj)
 translate -y*min_extent(obj).y
#end

#include "colors.inc"
#include "skies.inc"
#include "checkers.inc"

sky_sphere {S_Cloud4}

$phd = 1;
$Cam = vnormalize(<2,1.75,-2.75>);
$R = 5;
$T = 9.125;
$I = 0;
$S = function {sqrt(x^2+y^2+z^2)-1}
$Trunk = function {S(x,noise3d(x,y,z),z)}
$Bush = function
{noise3d(x*10,y*10,z*10)+noise3d(x/2.5,y/2.5,z/2.5)+(sqrt((x/1.125)^2+(y)^2+(z/1.125)^2)-3.9)}

global_settings {ambient_light 2/9 max_trace_level 10 photons {gather
20,100 radius phd*20,3,phd*5 jitter 1/3}}
camera {location Cam*35 look_at <0,0,0>}
light_source {Cam*7 .5 shadowless groups "Tree"}
light_source {y*10 1 area_light x*4,z*4 3,3 adaptive 0 circular
fade_distance 50 fade_power 3 groups "Tree"}
light_source {y*5 .8 area_light x*4,z*4 7,7 jitter adaptive 0 circular
fade_distance 50 fade_power 3 groups "Tree,Plane,Blob" photons
{area_light}}
//light_source {<1,3,-1>*30 1 area_light x*10,z*10 8,8 adaptive 0
spotlight point_at 0 radius 10 falloff 20 tightness 50}

plane {y,0 pigment {spherical scale 18 pigment_map {[0 rgb 1][1 snC22
scale 1/3]}} finish {ambient 1/8 diffuse 2/8} light_group "Plane"}

blob
{
 threshold .5

 #while (I<8)
  $_ZY_ = vrotate(z*T,y*360*I/8);
  $_YX_ = vrotate(y*T,x*360*I/8);
  $_YZ_ = vrotate(y*T,z*360*I/8);
  sphere {0,R,1 translate _ZY_}
  #if (!(_YX_.y=0))
   sphere {0,R,1 translate _YX_}
   #if (!(_YZ_.x=0))
    sphere {0,R,1 translate _YZ_}
   #end
  #end
  $I = I + 1;
 #end

 sturm

 pigment {rgb <1,2,3>/3 filter .75}
 finish {ambient 0 diffuse 0 reflection 2/3 specular 1 roughness 1/256
blinn 1 facets 1/3}
 interior {ior 10/9}
 photons {separation phd refraction on reflection on ignore_photons}
 light_group "Blob"
}


$Tree = union {
isosurface
{
 function Bush(x,y,z)%noise3d(x,y,z)
 accuracy 0.01 //method 2 eval
 threshold 0 sign 1
 bounded_by {sphere {0,4.5}}
 pigment
 {
  function Bush(x,y,z)
  color_map
  {
   [0.10 rgb <3,2,1>/7]
   [0.10 rgb <1,0,0>]
   [0.25 rgb <0.94118,.55686,0>]
   [0.50 rgb <0.94118,.55686,0>]
   [1.00 rgb <0,.55686,0>]
  }
  turbulence 1
 }
 finish {ambient 1/5 diffuse 2/5}
 translate y*2
}

isosurface
{
 function Trunk(x,y,z)
 accuracy 0.01 //method 2 eval
 threshold .1 sign 1
 bounded_by {sphere {0,5}}
 pigment {wood turbulence <.1,.5,1> octaves 5 lambda 3.25 scale
<.15,.5,1> rotate <1,2,1>*2 translate -x*2 color_map {[0 rgb
<4,3,2>/7][1 rgb <3,2,1>/7]}}
 finish {ambient 1/4 diffuse 2/4}
 scale <5,9,5>/9
 translate -y*2
} scale .4}

object {Tree over(Tree) rotate y*45 light_group "Tree"}


Post a reply to this message

From: TonyB
Subject: Re: will not work
Date: 4 Feb 2000 23:19:57
Message: <389ba4ed@news.povray.org>
>For some reason I can't this scene to work.


Hmmmm... looks familiar... :)


Post a reply to this message

From: Steve
Subject: Re: will not work
Date: 7 Feb 2000 20:02:47
Message: <slrn89ua4i.203.sjlen@zero-pps.localdomain>
I'm not an expert by any stretch of the imagination,
but certainly in the unix version you can't have a variable
called 'r' one of your variables is called 'R' and this may
be causing the same problem eventhough you're not getting 
the message that I got.  

Are you getting any error messages?  If so please post the 
error message and someone will be able to give you more help.

-- 
Cheers
Steve              email mailto:sjl### [at] ndirectcouk

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.ndirect.co.uk/~sjlen/

or  http://start.at/zero-pps

  8:13pm  up 1 day,  4:51,  6 users,  load average: 1.26, 1.09, 1.03


Post a reply to this message

From: Nathan Kopp
Subject: Re: will not work
Date: 7 Feb 2000 21:49:46
Message: <389f844a@news.povray.org>
Brian & Lois Bivolcic <biv### [at] popampacom> wrote...
> Hi all,
> 
> For some reason I can't this scene to work.
> using win95

Please explain.

-Nathan


Post a reply to this message

From: Brian & Lois Bivolcic
Subject: Re: will not work
Date: 7 Feb 2000 23:35:06
Message: <389F9CA3.CE73FBC8@popampa.com>
Hi, Nathan,

Well the first error is
error "radius phd*20,  <---ERROR
                                                      error: No matching

} in photons , , found instead."

 so I removed radius a together
them in the line
    photons {separation phd reflection on etc.
      basically got the same error
removed the line
then when i tried to render the program crashed.
any thoughts
Thanks Brian
--
Southern Cross Akitas (SCA)
Lois & Brian Bivolcic
Pampa, Tx
http://www.centramedia.com/bivolcic


Post a reply to this message

From: Bob Hughes
Subject: Re: will not work
Date: 8 Feb 2000 07:06:27
Message: <38a006c3@news.povray.org>
Seems you are trying to use a vector for the 'radius', I think it can only use a
single float there.
The 'separation' keyword has been replaced by 'target' now.
I tried to run this file and it still only crashes MegPov with some sort of
memory error I guess, so whatever fixes I'm trying are doing no good.  Must be
more to it than those things.

Bob

"Brian & Lois Bivolcic" <biv### [at] popampacom> wrote in message
news:389F9CA3.CE73FBC8@popampa.com...
| Hi, Nathan,
|
| Well the first error is
| error "radius phd*20,  <---ERROR
|                                                       error: No matching
|
| } in photons , , found instead."
|
|  so I removed radius a together
| them in the line
|     photons {separation phd reflection on etc.
|       basically got the same error
| removed the line
| then when i tried to render the program crashed.
| any thoughts
| Thanks Brian
| --
| Southern Cross Akitas (SCA)
| Lois & Brian Bivolcic
| Pampa, Tx
| http://www.centramedia.com/bivolcic
|
|


Post a reply to this message

From: Nathan Kopp
Subject: Re: will not work
Date: 8 Feb 2000 08:24:09
Message: <38a018f9@news.povray.org>
Brian & Lois Bivolcic <biv### [at] popampacom> wrote...
> Hi all,
>
> For some reason I can't this scene to work.
> using win95

A few things:

First, your syntax is all the 0.3 syntax, which needs to be changed.

"separation" has been replaced with "target"
"radius" only takes one parameter after it (which is why it complained about
finding a comma).
"bounded_by" in isosurfaces must be changed to "contained_by"

That should take care of it.  I've gotten it to run on my machine after
making those changes.

However.... the first time I tried it, I got those same syntax errors, and
after I corrected it MegaPov crashed with a "fatal exception" blue screen,
which later led to a "waiting for the close dialog box to appear" blue
screen of death in Windows.

Since then, I've implemented another fail-safe on the memory init/deinit
routine so that it hopefully handles errors more smoothly.  I tried the same
process that caused the crash the first time and now it doesn't crash.

I think the problem was that when it hit a syntax error in the POV file,
under certain conditions MegaPov would try to free memory that was never
allocated, and therefore would crash.

-Nathan


Post a reply to this message

From: Bob Hughes
Subject: Re: will not work
Date: 8 Feb 2000 09:41:07
Message: <38a02b03@news.povray.org>
Checks out here too.  Now I know what Tony meant by "familiar".  Seems I have
gotten his scene file in a round-about way.

Bob

"Nathan Kopp" <Nat### [at] Koppcom> wrote in message
news:38a018f9@news.povray.org...
| A few things:
|
| First, your syntax is all the 0.3 syntax, which needs to be changed.
|
| "separation" has been replaced with "target"
| "radius" only takes one parameter after it (which is why it complained about
| finding a comma).
| "bounded_by" in isosurfaces must be changed to "contained_by"
|
| That should take care of it.  I've gotten it to run on my machine after
| making those changes.
|
| However.... the first time I tried it, I got those same syntax errors, and
| after I corrected it MegaPov crashed with a "fatal exception" blue screen,
| which later led to a "waiting for the close dialog box to appear" blue
| screen of death in Windows.
|
| Since then, I've implemented another fail-safe on the memory init/deinit
| routine so that it hopefully handles errors more smoothly.  I tried the same
| process that caused the crash the first time and now it doesn't crash.
|
| I think the problem was that when it hit a syntax error in the POV file,
| under certain conditions MegaPov would try to free memory that was never
| allocated, and therefore would crash.
|
| -Nathan
|
|


Post a reply to this message

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