[Pbrt-discuss] help! plugin problem.
Daniel Neilson
dneilson at cs.ualberta.ca
Mon Jan 28 22:03:48 EST 2008
This may seem like an odd question but, did you try inserting the same
printf()'s into grid.cpp to see whether they return the same results if
you use a grid rather than your own plugin? It's been forever since I
tried to do any pbrt coding so, I don't remember whether what you're
seeing is "normal".
-Daniel
Bill Conan wrote:
> hello guys,
>
> i wrote a accelerator plugin for pbrt. the code was modified directly
> from grid.cpp, however weird problem happened when i tried to run it.
>
> this is the problematic part:
>
> extern "C" DLLEXPORT Primitive *CreateAccelerator(const
> vector<Reference<Primitive> > &prims,const ParamSet &ps)
> {
> printf("%d",prims.size());
> if(!prims[0]) printf("kkkkk");
> return new GridTreeAccel(prims);
> }
>
> i tried to render areapot.pbrt
> the prims.size() is 105, however prims[0] is NULL, i will get access violation.
>
> why does this happen? i can't see any difference with grid.cpp.
>
> thank you.
> _______________________________________________
> pbrt-discuss mailing list
> pbrt-discuss at pbrt.org
> http://six.pairlist.net/mailman/listinfo/pbrt-discuss
--
Daniel Neilson | "As far as the laws of mathematics refer to
dneilson at cs.ualberta.ca| reality, they are not certain; and as far as
PhD Candidate | they are certain, they do not refer to reality"
M.Sc, B.C.Sc(Hon) | -Albert Einstein
More information about the pbrt-discuss
mailing list