POV-Ray : Newsgroups : povray.general : object oriented features : Re: object oriented features Server Time
28 Jul 2024 14:28:34 EDT (-0400)
  Re: object oriented features  
From: Chris Huff
Date: 23 Aug 2000 10:13:53
Message: <chrishuff-1182CE.09151623082000@news.povray.org>
In article <39A2F9B6.8292AE67@erols.com>, John VanSickle 
<van### [at] erolscom> wrote:

> AKA the AxisRotate() macro in the Thoroughly Useful Macros;

Correct...


> AKA the Stretch() macro in the Throughly Useful Macros;

Didn't know about this one, I salvaged the code from the Liquid Spray 
include when I needed it...


> AKA the Matrix() macro in the Thoroughly Useful Macros.

Correct. Maybe a call it "matrix2"?


> However, the current situation (a few language features, plus a few
> augmenting macros) seems to be getting everyone's scenes together.

Yes...but unless these macros are included with the standard includes, 
people have to copy them into their scene files, which wastes space and 
is not as clear as a new transform would be. Also, think of the use of 
scale, rotate, etc. in little code snippets...missing macros have caused 
people trouble already. And these transforms seem pretty basic...as 
basic as scale, translate, and rotate, at least, and there is already a 
vector function for the axis-rotation...
At the least, I am going to add functions to the source to do these 
transforms(the ones not already implemented, that is)...I have found 
some of them useful in my patches.


> Adding the above features will make things parse slightly faster,

Probably not even enough to notice unless you have a loop that does them 
thousands of times.


> but will have zero impact on rendering speed (because internally 
> everything is boiled down to one matrix).

Yep.

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

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