POV-Ray : Newsgroups : povray.newusers : Blob mastering : Re: Blob mastering Server Time
4 Nov 2024 23:16:35 EST (-0500)
  Re: Blob mastering  
From: george ferguson
Date: 3 Jun 2001 08:34:28
Message: <3b1a2ed4@news.povray.org>
Rune wrote:
> > ...except that his home made macro doesn't work ;-)
>
> It works for me. What is the problem you're experiencing?
> (Or maybe there was something in that smiley I didn't get?)
>
> Rune

the thing is that when i try to put in a sphere for example it says "no
matching } in sphere , found instead...its the one after actual_radius,
before strength...this was my code

#include "colors.inc"

camera {location <0,0,-10>
}

// create a point "spotlight" (cylindrical directed) light source
light_source
{
  0*x                     // light's position (translated below)
  color rgb <1,1,1>       // light's color
  spotlight               // this kind of light source
  cylinder                // this variation
  translate <40, 80, -40> // <x y z> position of light
  point_at <0, 0, 0>      // direction of spotlight
  radius 5                // hotspot (inner, in degrees)
  tightness 50            // tightness of falloff (1...100) lower is softer,
higher is tighter
  falloff 8               // intensity falloff radius (outer, in degrees)
}



#macro easyblob (_threshold,_visibleradius,_blobbiness)
   #local _strength = (1+1/_blobbiness)*_threshold;
   #local _actualradius =
   _visibleradius/sqrt(1-sqrt(_threshold/_strength));
   _actualradius, _strength
#end

sphere {
   <0,0,0>,
   easyblob (0.65, 2, 2)
}

tell me what im doing wrong...please!!!

Marc


Post a reply to this message

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