|
|
First off, I really like your web pages. Secondly, I'm just trying to do
something like you have shown here. Hopefully I can use your helpful
script to my benefit; that will of course depend on my ability to
understand it.
Nils Steinkamp wrote:
>
> Hi there !
>
> I fixed the problem by using
>
> #declare NX = vnormalize( Punkt_naechster - Punkt_vorher ); // last
> and next point
> #declare NZ = vnormalize(vcross(NX,y));
> #declare NY = vcross(NZ,NX);
>
> object { Test2 // has to declared before
> matrix < NX.x , NX.y , NX.z,
> NY.x , NY.y , NY.z,
> NZ.x , NZ.y , NZ.z,
> Punkt_aktuell.x , Punkt_aktuell.y , Punkt_aktuell.z > //
> the actuell translation
> }
>
> where the basic object is orientated from -x to +x
>
> In this case the x-axis is orientated to the right, y-axis to the top and
> z-axis from camera away to the depth of the room. The full code is
> downloadable on my site, see adress at the end of the mail.
>
> It works fine, when putting the object on a spline, it is rotated to follow
> the spline.
>
> Next step is the proclivity of the object to rotate it in x-axis left when
> "flying" a left turn or right when "driving" a left turn.
> Not as easy as it seems, but I'm on my way ;-)
>
> Nils
>
> http://www.steini.de
--
omniVERSE: beyond the universe
http://members.aol.com/inversez/homepage.htm
mailto://inversez@aol.com?Subject=PoV-News
Post a reply to this message
|
|