|
|
In article <395A2C86.6EDCD317@aol.com>, STB### [at] aolcom wrote:
> Hello. I have a problem regarding the MegaPOV feature, 'trace' and
> surface normals detected by it. I want to rotate objects according to
> the surface normal, to get boxes or other objects to stick out
> perpendicular from slanted surfaces. Here is what I tried, using
> information for the surface normal from trace:
>
> rotate < Norm.z*90, 0, Norm.x*90 >
That code is wrong. The normal values aren't angles, the normal is an
ordinary vector. The usual way of doing it is to use a matrix transform,
try using one of the ReOrient macros drifting around.
--
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
|