|
|
Hi,
i'm trying to place objects on a heightfield. The height is not a problem
with trace, but i want the objects to be rotated according to the surface
normal. I read in this NG that the Reorient_Trans-Macro could help, but i'm
not able to use it right, cause i'm not good at maths The objects are placed
all over the scene. So the question is:
How do i calculate the rotation?
Thank you for your help!
Daniel
Post a reply to this message
|
|
|
|
Daniel Prien <wil### [at] gmxnet> wrote:
> i'm trying to place objects on a heightfield. The height is not a problem
> with trace, but i want the objects to be rotated according to the surface
> normal. I read in this NG that the Reorient_Trans-Macro could help, but i'm
> not able to use it right, cause i'm not good at maths The objects are placed
> all over the scene. So the question is:
> How do i calculate the rotation?
The Reorient_Trans macro is there specifically to help you avoiding the
math. That is, you don't need any math in order to use it.
Simply read carefully the documentation.
--
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -
Post a reply to this message
|
|
|
|
"Warp" <war### [at] tagpovrayorg> schrieb im Newsbeitrag
news:3daea0df@news.povray.org...
>
> The Reorient_Trans macro is there specifically to help you avoiding the
> math. That is, you don't need any math in order to use it.
> Simply read carefully the documentation.
>
Got it!
As i say: You don't need someone to give you answers, just someone to show
you where to find them ; )
Thank you
Daniel
Post a reply to this message
|
|