POV-Ray : Newsgroups : povray.general : Tracing Heightfield? Server Time
6 Nov 2024 06:23:30 EST (-0500)
  Tracing Heightfield? (Message 1 to 3 of 3)  
From: Daniel Prien
Subject: Tracing Heightfield?
Date: 17 Oct 2002 06:13:40
Message: <3dae8d54@news.povray.org>
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

From: Warp
Subject: Re: Tracing Heightfield?
Date: 17 Oct 2002 07:37:04
Message: <3daea0df@news.povray.org>
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

From: Daniel Prien
Subject: Re: Tracing Heightfield?
Date: 17 Oct 2002 08:16:45
Message: <3daeaa2d$1@news.povray.org>
"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

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