|
|
I ran into this when writing the particle system patch. The vector
parameter V1 is modified by the function, which normalizes it for
internal use. The function starts off like this:
void Compute_Axis_Rotation_Transform (TRANSFORM *transform, VECTOR V1,
DBL angle)
{
DBL l, cosx, sinx;
VLength(l, V1);
VInverseScaleEq(V1, l);
....
The fix:
I replaced the VLength and VInverseScaleEq with VNormalize, and added a
local vector for the normalized version.
void Compute_Axis_Rotation_Transform (TRANSFORM *transform, VECTOR
AxisVect, DBL angle)
{
DBL cosx, sinx;
VECTOR V1;
VNormalize(V1, AxisVect);
....
--
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
|