[Pbrt-discuss] access violation with photon mapping scenes
Slavomir Kaslev
slavomir.kaslev at gmail.com
Tue Mar 11 06:33:04 EDT 2008
Hey,
The problem is actually in core/kdtree.h. Change line 96 from
std::nth_element(&buildNodes[start], &buildNodes[splitPos],
&buildNodes[end], CompareNode<NodeData>(splitAxis));
to
std::nth_element(buildNodes.begin() + start, buildNodes.begin() + splitPos,
buildNodes.begin() + end, CompareNode<NodeData>(splitAxis));
Cheers!
On Tue, Mar 11, 2008 at 2:32 AM, Bill Conan <billconan at gmail.com> wrote:
> hi there,
>
> i got access violation errors when rendering scenes requiring photon
> mapping. i'm wondering if this is a known bug and if there is any
> solution.
> i tried the binary on the CD, it works fine. but the one i compiled
> from the source code posted on the web page is always problematic.
>
> i'm using visual studio 2005 under windows xp.
>
> thank you.
>
> --
> Dept. of Computer Science
> University of California, Davis
> Homepage:http://wwwcsif.cs.ucdavis.edu/~yans/
> _______________________________________________
> pbrt-discuss mailing list
> pbrt-discuss at pbrt.org
> http://six.pairlist.net/mailman/listinfo/pbrt-discuss
>
--
Slavomir Kaslev
More information about the pbrt-discuss
mailing list