[Bf-cycles] Cycles tables

Sergey Sharybin sergey.vfx at gmail.com
Wed Apr 13 08:54:38 CEST 2016


It depends on what texture it's failing to sample.

Most likely you either not calling `device_update()` somewhere or you don't
call kernel_tex_copy().

On Wed, Apr 13, 2016 at 4:57 AM, Mohamed Sakr <3dsakr at gmail.com> wrote:

> 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
>
>
> _______________________________________________
> Bf-cycles mailing list
> Bf-cycles at blender.org
> https://lists.blender.org/mailman/listinfo/bf-cycles
>
>


-- 
With best regards, Sergey Sharybin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-cycles/attachments/20160413/37b33dc5/attachment.htm 


More information about the Bf-cycles mailing list