POV-Ray : Newsgroups : povray.general : lining up an object with a vector : lining up an object with a vector Server Time
5 Aug 2024 10:23:51 EDT (-0400)
  lining up an object with a vector  
From: Jan Maarten van der Valk
Date: 3 Oct 2002 04:45:58
Message: <3d9c03c6@news.povray.org>
Hi all.
How can I rotate an object so that it's up-coordination <0,1,0> lines up with a
given vector?

JM

--
#macro J(M)V()<V(),V(),V()>#if(M)J(M)#end#end#local _=20;#macro V()asc(substr
("IIMYKIIYMMKQOIMYQEEYSCEYUEGQWEHYYIGQ[HEY]IGY_JGQaJEYcKGYeKGQgLEYiMKIs#K ",
73-M,1))/2-36.5#declare M=M-1;#end#local a=spline{cubic_spline J(72)}#while
(_)sphere{a(_).1pigment{rgb(a(_)+(x+y)*3.5)}}#local _=_-.02;#end//JM


Post a reply to this message


Attachments:
Download 'Jan Maarten van der Valk.vcf.txt' (1 KB)

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