POV-Ray : Newsgroups : povray.binaries.animations : Fixed train Server Time
19 Jul 2024 07:24:53 EDT (-0400)
  Fixed train (Message 1 to 3 of 3)  
From: Greg M  Johnson
Subject: Fixed train
Date: 7 Feb 2003 21:57:35
Message: <3e44721f$1@news.povray.org>
I fixed several of the problems in my train algorithm. Now I can actually
make a working story around a train ride....


Post a reply to this message

From: Apache
Subject: Re: Fixed train
Date: 8 Feb 2003 04:12:33
Message: <3e44ca01$1@news.povray.org>
somehow the wagons (especially the last one) seem to shear.


Post a reply to this message

From: Greg M  Johnson
Subject: Re: Fixed train
Date: 8 Feb 2003 17:20:20
Message: <3e4582a4@news.povray.org>
dang!

I thought I noticed this before, but you're right.

I find four new corners for the cars based on the rails and then use this
reorient macro:

#macro AlignToRect2(pAb, pAf, pBf, pBb)  // by  Charles Fusner and Slime
     #local newz = vnormalize(pAf-pAb);
     #local newx = vnormalize(pBb-pAb);
     #local newy = vcross(newx,newz);
     #local avey=(pAb+pAf+pBf+pBb)/4;

     matrix <
         newx.x,newx.y,newx.z,
         newy.x,newy.y,newy.z,
         newz.x,newz.y,newz.z,
         avey.x, avey.y, avey.z
     >
#end


Post a reply to this message

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