POV-Ray : Newsgroups : povray.advanced-users : Bug in POV3.5???? : Bug in POV3.5???? Server Time
29 Jul 2024 10:21:14 EDT (-0400)
  Bug in POV3.5????  
From: Jaap Frank
Date: 25 Jul 2002 12:35:52
Message: <3d4028e8$1@news.povray.org>
Hi,

I'm designing a system to make a controlled landscape
with a height_field when I stumbled over this strange
behaviour.
I use the Gaussian formula ( exp((-x/sigma)^2) ) to generate
the crude mountain shape and add a fine structure with
'f_hetero_mf()' to get the real mountain view.
In the example (see povray.text.scene-files) I have
removed the fine structure and everything that don't
contribute to the problem.
The problem appears when I rotate the mountain.
The sigma values for the length and width of the mountain
in the X- and Z-direction (translated in the formula to Y)
have to be combined with cos(Rot) and sin(Rot) for the
rotation (see the #switch-section).
When I do that, things go wrong. You can see for yourself
if you change the 'Test-value' in the beginning of the file.
I have checked all the '()' over and over, but that is allwright.
Somehow a multiplication factor is added and I can't
figure out where it is coming from.

Anyone who sees what is going on??

Jaap Frank


Post a reply to this message

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