POV-Ray : Newsgroups : povray.binaries.images : US Brig Niagara WIP (215k) : Re: US Brig Niagara WIP (215k) Server Time
9 Aug 2024 01:23:42 EDT (-0400)
  Re: US Brig Niagara WIP (215k)  
From: Bill Hails
Date: 1 Apr 2005 18:30:49
Message: <424dd9a9@news.povray.org>
Tim McMurdo wrote:

> The rigging macro changes I made are really speeding things up now. I
> think I will add one more feature. I think I need to add the ability to
> undefine all of the variables and reset their values to the default values
> at the end of the macro.
> 

I'm not an expert, but It appears to be the case that all macro arguments
are call-by-reference (it would make sense for large complex arguments)
so you need to ensure that all of the arguments are not lvalues
(couldn't appear on the left hand side of an '=' assignment)
so if you do things like
MyMacro(INTEGER_VALUE + 0, transform { MyTransform }, object { MyObject })
rather than just
MyMacro(INTEGER_VALUE, MyTransform, MyObject)
then copies are taken and the arguments aren't directly assigned to.

I reserve the right to be wrong, so someone may correct me.

> As far as this image, I think as allways, the textures need improvement.
> Please excuse the low radiosity settings.
> 
> I think I would trip over all these ropes.
> 
> Tim

I greatly admire your enormous persistance with this project, and it looks
fantastic, I just hope you back up your code :-)

-- 
Bill Hails
http://thyme.homelinux.net/


Post a reply to this message

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