<div dir="ltr">Great to see a first working version!<div><br><div>For threshold, there exists a <font face="monospace, monospace">mesh->volume_isovalue</font> that should be reused. In the UI it's in the Smoke panel for the domain, as Empty Space Clipping.</div><div><br></div><div>I would expect some performance impact from using tiles, it's more expensive to do a tiled lookup. Depending on how big the impact is we can think of some optimizations later.</div><div><br></div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 1, 2018 at 6:17 PM, Geraldine Chua <span dir="ltr"><<a href="mailto:chua.gsk@gmail.com" target="_blank">chua.gsk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Wiki link: <a href="https://wiki.blender.org/index.php/User:Geraldine/GSoC_2018/Reports#Week_3" target="_blank">https://wiki.blender.org/<wbr>index.php/User:Geraldine/GSoC_<wbr>2018/Reports#Week_3</a></div><div></div><div><br></div><div>While progress is slower than I'd like, I have added a working implementation of the tiling algorithm and some examples here (<a href="https://developer.blender.org/T55264" target="_blank">https://developer.blender.<wbr>org/T55264</a>) (there are actually 2 very obvious typos in <i>render/image.cpp</i> that I accidentally committed, will fix them in the next commit).</div><br>As in the task comments, memory usage savings depend on the threshold, though even with the lowest possible threshold value, the sample image's memory usage was already reduced by ~33%. Later on it may be possible to make this value user changeable.<br><br><b>To-do next week</b><br><br><div>* Modify sparse tiles to support generic types (currently only supports float4, should be fine as long they have a > operator overloaded).</div><div><br></div><div>* Add support for all Volume attributes (currently only supports color).</div><div><br></div><div>* Change detection method for calling sparse grid creation (currently, a new ImageDataType was created, but will probably change this to a bool member of Image).</div><div><br></div><div>* Make this compatible with the Mesh Volume speedup (<a href="https://developer.blender.org/D3038" target="_blank">https://developer.blender.<wbr>org/D3038</a>). Because of they are currently mutually exclusive, using this implemntation will actually slow down rendering.</div><div><br></div><div>* Implement lookup for tricubic interpolation (currently just throws an assert if a compressed texture tries to call it).</div><div><br></div>* Add support for CUDA and OpenCL (this may actually not be tested soon since I won't have access to a PC with a compatible GPU for another couple of weeks).<br><br>All of these should be completed by the end of week 4.<br><br><b>Potential to-dos</b><br><br><div>* Create a wrapper class for device_memory's of SparseTiles.</div><div><br></div><div>* Support 2D tiling.</div><div><br></div><div>* Make threshold value a user-inputted value.</div><div><br></div><div>* Remove the SparseTile struct altogether and just treat tiles abstractly.</div><div><br></div></div>
<br>-- <br>
Soc-2018-dev mailing list<br>
<a href="mailto:Soc-2018-dev@blender.org">Soc-2018-dev@blender.org</a><br>
<a href="https://lists.blender.org/mailman/listinfo/soc-2018-dev" rel="noreferrer" target="_blank">https://lists.blender.org/<wbr>mailman/listinfo/soc-2018-dev</a><br>
<br></blockquote></div><br></div>