Page 1 of 1

reload texture

Posted: Wed Apr 27, 2016 3:51 pm
by WhyGee
Hi,
I have many objects using a common material with a texture's reload flag enabled. It would seem to reload the texture for every instance of the geometry even though it's the same texture in the same material. Is this normal behavior?
The texture is quite large so the load time is significant for each geometry to reload.

Thanks
Yaniv

Re: reload texture

Posted: Wed Apr 27, 2016 4:55 pm
by juanjgon
Weird, if the objects share the same material, the material should be loaded only once, so the texture node should be evaluated only once (and therefore the texture reloaded only once).

Are you sure that Octane is reloading several times the same texture in the same texture node? If you can share a scene with this behavior I could test it here.

-Juanjo

Re: reload texture

Posted: Thu Apr 28, 2016 7:09 am
by WhyGee
I will try to recreate something simple.

Re: reload texture

Posted: Thu Apr 28, 2016 7:24 am
by WhyGee
attached is a simple scene with 10 objects referencing the same material (at sop level, haven't checked if that is the reason or not). To make the attachment small I've removed the texture but simply plug something high res, i've tested with a 150mb HDR texture just so it will have some noticeable load time. when reload is enabled it stalls on each object for what appears to be the same load time. Without reload, only the first object is slow to load, and then the scene starts rendering quickly.

Thanks
Yaniv

Re: reload texture

Posted: Thu Apr 28, 2016 10:56 am
by juanjgon
Sorry, yes, you are right. The material is shared among all the objects (there is only one Octane image texture node for the whole scene), but it is evaluated for each OBJ node at loading time, so as you say if the reload texture option is enabled, the texture is reloaded for each OBJ.

I will try to fix this issue for the next build. Meanwhile I suppose that a workaround can be have two cloned materials, one with the reload texture option enabled and other with it disabled, and use the material with the option enabled only in one object. This should be enough to reload the texture map for all the objects, loading it only once.

Thanks for reporting this issue!
-Juanjo

Re: reload texture

Posted: Thu Apr 28, 2016 11:45 am
by WhyGee
Great thanks alot!

Yaniv

Re: reload texture

Posted: Fri May 13, 2016 12:46 pm
by WhyGee
Hi,
I don't know if you've managed to get around to this issue by the latest release, it appears to still be happening in the last build.

Thanks

Re: reload texture

Posted: Fri May 13, 2016 12:55 pm
by juanjgon
Nope, sorry, not yet. I need to modify some things in the plugin architecture to make it possible, but I hope to have it ready as soon as possible.

Is the workaround using two materials working for you?

-Juanjo

Re: reload texture

Posted: Fri May 13, 2016 1:24 pm
by WhyGee
I can work with it, not urgent. Thanks!