Hey,
I'm continuing my terrain research with 3D noise with PolyVox, but I have come to a point, where I cannot get any result as I constantly get the following error:
Quote:
PolyVox Assertion Failed!
=========================
Condition: m_tElements[ct] == m_tElements[ct]
Message: Obtained NAN during vector normalisation. Perhaps the input vector was too short?
Location: Line 652 of ../../external_projects/built/win/polyvox/release/PolyVoxCore/include/PolyVoxCore/Vector.inl
I am using the latest code from the development branch.
One problem is that this error crashes the application. This obviously means I cannot see my noise results and therefore have no clue where that might cause the problem.
The other problem is that I have no clue why some noise results work and some don't. When I only slightly change the noise generation parameters, it might work perfectly or result in the quoted error.
What could be the problem here?
If you want, I could send you my project sources (it is a NetBeans project using Ogre & Accidental Noise Library).