[Bf-cycles] Cycles tables
Mohamed Sakr
3dsakr at gmail.com
Wed Apr 13 04:57:48 CEST 2016
Hi,
I'm implementing an exporter similar to Cycles standalone.
got a little problem,
first render call runs fine "simply an empty scene"
second render call (should be with a non-empty scene" fails, it always
crashes inside tables "many times inside sobol table, once inside film
offset"
template<typename T> struct texture {
ccl_always_inline T fetch(int index)
{
kernel_assert(index >= 0 && index < width);
return data[index];
}
#ifdef __KERNEL_SSE2__
ccl_always_inline ssef fetch_ssef(int index)
{
kernel_assert(index >= 0 && index < width);
return ((ssef*)data)[index];
}
ccl_always_inline ssei fetch_ssei(int index)
{
kernel_assert(index >= 0 && index < width);
return ((ssei*)data)[index];
}
#endif
T *data;
int width;
};
data is nullptr, sometimes width is wrong, etc..
what does reset these values? "or where/when are they deleted/initialized,
with scene or session"
thanks.
cheers,
Mohamed Sakr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-cycles/attachments/20160413/5f5b4517/attachment.htm
More information about the Bf-cycles
mailing list