I'm not really sure what the arguments mean but since their size were both reduced I thought it would not make any difference as to which was used, but I tried your suggestion and it still crashes -
Code:
LowPassFilter<SimpleVolume, SimpleVolume, Density8> pass1(&volData, fullRegion2, &resultVolume, fullRegion2, 5);
it specifically crashes in simplevolumesampler.inl @
Code:
template <typename VoxelType>
VoxelType SimpleVolume<VoxelType>::Sampler::peekVoxel1nx1py1nz(void) const
{
if( BORDER_LOW(this->mXPosInVolume) && BORDER_HIGH(this->mYPosInVolume) && BORDER_LOW(this->mYPosInVolume) )
{
return *(mCurrentVoxel - 1 + this->mVolume->m_uBlockSideLength - this->mVolume->m_uBlockSideLength*this->mVolume->m_uBlockSideLength); // crash line here
}
return this->mVolume->getVoxelAt(this->mXPosInVolume-1,this->mYPosInVolume+1,this->mZPosInVolume-1);
}
and the error is -
Unhandled exception at 0x0097cc05 in WorldCraft.exe: 0xC0000005: Access violation reading location 0x088efcc8.