POV-Ray : Newsgroups : povray.general : Macro Help Server Time
6 Aug 2024 10:20:00 EDT (-0400)
  Macro Help (Message 1 to 5 of 5)  
From: Corey Woodworth
Subject: Macro Help
Date: 20 Mar 2002 00:15:32
Message: <3c981af4$1@news.povray.org>
I'm making a scene just to learn macros and I've already run into some
trouble. Here is my code:

  object {Cheerio
  translate VRand_In_Object(area, RdmA);
  }

I get an undeclared identifier at VRand_In_Object. Why? I have rand.inc
included. How come VRand_In_Object doesn't work?

Corey


Post a reply to this message

From: John VanSickle
Subject: Re: Macro Help
Date: 20 Mar 2002 14:28:30
Message: <3C98E3C0.D4816E66@topsurf.com>
Corey Woodworth wrote:
> 
> I'm making a scene just to learn macros and I've already run into some
> trouble. Here is my code:
> 
>   object {Cheerio
>   translate VRand_In_Object(area, RdmA);
>   }
> 
> I get an undeclared identifier at VRand_In_Object. Why? I have
> rand.inc included. How come VRand_In_Object doesn't work?

The macro is named VRand_In_Obj in the .INC file.

You also don't need the semicolon where you have it.

Regards,
John
-- 
Rusty is rendering!


Post a reply to this message

From: Corey Woodworth
Subject: Re: Macro Help
Date: 20 Mar 2002 14:49:16
Message: <3c98e7bc@news.povray.org>
"John VanSickle" <van### [at] topsurfcom> wrote in message
news:3C98E3C0.D4816E66@topsurf.com...
> Corey Woodworth wrote:
> >
> > I'm making a scene just to learn macros and I've already run into some
> > trouble. Here is my code:
> >
> >   object {Cheerio
> >   translate VRand_In_Object(area, RdmA);
> >   }
> >
> > I get an undeclared identifier at VRand_In_Object. Why? I have
> > rand.inc included. How come VRand_In_Object doesn't work?
>
> The macro is named VRand_In_Obj in the .INC file.

Thanks! In 7.12.1 it is listed as VRand_In_Object! Where should I report
this?

> You also don't need the semicolon where you have it.

woops :)

Corey


Post a reply to this message

From: Corey Woodworth
Subject: Re: Macro Help
Date: 20 Mar 2002 15:01:57
Message: <3c98eab5$1@news.povray.org>
I posted my fool code in p.t.s-f  I'm making this scene just so I can learn
about macros. I have a few questions. How come the cheerios are alwawys
contained within what looks like a square even though I'm useing a disc in
VRand_In_Obj? Also how can I
get the look to make sure the ceerios don't overlap?

Thanks,
Corey


Post a reply to this message

From: Christopher James Huff
Subject: Re: Macro Help
Date: 20 Mar 2002 19:10:34
Message: <chrishuff-DE532F.19104320032002@netplex.aussie.org>
In article <3c98eab5$1@news.povray.org>,
 "Corey Woodworth" <cdw### [at] mpinetnet> wrote:

> I posted my fool code in p.t.s-f  I'm making this scene just so I can 
> learn about macros. I have a few questions. How come the cheerios are 
> alwawys contained within what looks like a square even though I'm 
> useing a disc in VRand_In_Obj? Also how can I get the look to make 
> sure the ceerios don't overlap?

It's because you are using a disc. VRand_In_Obj() returns points 
*inside* the object, discs don't have an inside (they are infinitely 
thin) so it makes several attempts (specifically, 1000 attempts) before 
eventually giving up and generating a point inside the bounding box of 
the disc. The documentation specifically mentions that this macro only 
works on solid objects. If you use a short cylinder, it will work.

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

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