﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3ASebbas%2FGSoC_2016%2FReports%2FWeek_3</id>
	<title>利用者:Sebbas/GSoC 2016/Reports/Week 3 - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3ASebbas%2FGSoC_2016%2FReports%2FWeek_3"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Sebbas/GSoC_2016/Reports/Week_3&amp;action=history"/>
	<updated>2026-05-15T00:48:09Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Sebbas/GSoC_2016/Reports/Week_3&amp;diff=151707&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Sebbas/GSoC_2016/Reports/Week_3&amp;diff=151707&amp;oldid=prev"/>
		<updated>2018-06-28T21:17:26Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 21:17時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Sebbas/GSoC_2016/Reports/Week_3&amp;diff=151706&amp;oldid=prev</id>
		<title>wiki&gt;Sebbas: Created page with &quot;= Week 3 =  My main task this week was to examine the pointcache which currently only stores and refills smoke grid data. I figured that since smoke and liquids are so similar (l...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Sebbas/GSoC_2016/Reports/Week_3&amp;diff=151706&amp;oldid=prev"/>
		<updated>2016-06-11T17:21:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Week 3 =  My main task this week was to examine the pointcache which currently only stores and refills smoke grid data. I figured that since smoke and liquids are so similar (l...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Week 3 =&lt;br /&gt;
&lt;br /&gt;
My main task this week was to examine the pointcache which currently only stores and refills smoke grid data. I figured that since smoke and liquids are so similar (last week I decided to merge them into one single modifier for that same reason) their cache files should be treated equally.&lt;br /&gt;
&lt;br /&gt;
=== What's been done ===&lt;br /&gt;
&lt;br /&gt;
* Although they're similar, I needed some way to distinguish smoke and liquid setups. This is important for later setting domain parameters but also because of the different file formats: liquid simulations store surface data in &amp;lt;tt&amp;gt;.bobj.gz&amp;lt;/tt&amp;gt; files, smoke volume data is stored in the Blender specific &amp;lt;tt&amp;gt;.bphys&amp;lt;/tt&amp;gt; pointcache file format.&amp;lt;br&amp;gt;So I added some flags to account for liquid setups and made my Mantaflow script setup more modular (e.g. a plain Mantaflow solver object can handle smoke and/or liquids). ({{GitCommit|rBd3c57bc244c0}}, {{GitCommit|rB05c03b652628}}, {{GitCommit|rB836db6c99046}})&lt;br /&gt;
&lt;br /&gt;
* The next step towards liquid caching was to write the liquid surface files to the correct location on disk. Here, I was able to reuse the smoke cache structures. That is, I reused the smoke cache GUI and all the logic behind path parsing and custom file names.&amp;lt;br&amp;gt;All in all, liquid cache writing works now. ({{GitCommit|rB7abab97769c5}}, {{GitCommit|rB5a8340634080}})&lt;br /&gt;
&lt;br /&gt;
* Finally, after writing one needs to be able to read the cache. And this is where I am currently at. So far, I found that I might be able to reuse the Elbeem &amp;lt;tt&amp;gt;.bobj.gz&amp;lt;/tt&amp;gt; read function.&amp;lt;br&amp;gt;(https://developer.blender.org/diffusion/B/browse/master/source/blender/modifiers/intern/MOD_fluidsim_util.c$163)&lt;br /&gt;
&lt;br /&gt;
* Last week I re-enabled the smoke simulation functions. This week I noticed that the high resolution smoke did not work anymore.&amp;lt;br&amp;gt;The problem was a missing liquid inflow grid for high resolution (classic &amp;lt;tt&amp;gt;NULL&amp;lt;/tt&amp;gt; pointer ...). So I added that grid and also think it should come in handy when implementing a high-res liquid option. ({{GitCommit|rBa3c04bdd56c4}})&lt;br /&gt;
&lt;br /&gt;
* I took a closer look at &amp;lt;tt&amp;gt;sampleLevelsetWithParticles()&amp;lt;/tt&amp;gt; from the Mantaflow source code to understand how particles are sampled. While the randomness and discretization factors play a role (see [[User:Sebbas/GSoC_2016/Reports/Week_2|last weeks report]]), the values from the phi grid do as well. So instead of filling the phi grid with -0.5 for every point inside the mesh, one can use the distance to the mesh surface. ({{GitCommit|rBe8863f0be170}})&amp;lt;br&amp;gt; I tried that approach, but found it produced less accurate meshes (see images). Thus, for now I will keep using my old approach. ({{GitCommit|rB0992e7f6861a}}, {{GitCommit|rB6c177d3d3098}})&lt;br /&gt;
&lt;br /&gt;
{|align=center&lt;br /&gt;
| [[Image:Mantatorus_phi_fixed0.5.png|thumb|300px|Old approach - phi using -0.5 for points inside mesh]]&lt;br /&gt;
| [[File:Mantatorus_phi_variable.png|thumb|300px|New approach - phi using distance to mesh surface for points inside mesh]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Next up ===&lt;br /&gt;
&lt;br /&gt;
* Get the liquid cache read mechanism working.&lt;br /&gt;
&lt;br /&gt;
* Finish the video comparision I proposed last week. I need the cache reading to work first so that I can create comparable Mantaflow and Elbeem scenes. In my previous videos I always sideloaded the liquid surface files (don't need to test that again). &lt;br /&gt;
&lt;br /&gt;
=== Questions ===&lt;br /&gt;
&lt;br /&gt;
* Discuss &amp;lt;tt&amp;gt;sampleLevelsetWithParticles()&amp;lt;/tt&amp;gt; with my mentor. Is interpolation the problem for less accurate meshes (especially on low-res grids)?&lt;/div&gt;</summary>
		<author><name>wiki&gt;Sebbas</name></author>
		
	</entry>
</feed>