﻿<?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_4</id>
	<title>利用者:Sebbas/GSoC 2016/Reports/Week 4 - 版の履歴</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_4"/>
	<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_4&amp;action=history"/>
	<updated>2026-11-23T15:42:01Z</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_4&amp;diff=151771&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_4&amp;diff=151771&amp;oldid=prev"/>
		<updated>2018-06-28T21:17:31Z</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_4&amp;diff=151770&amp;oldid=prev</id>
		<title>2016年6月19日 (日) 08:29にwiki&gt;Sebbasによる</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_4&amp;diff=151770&amp;oldid=prev"/>
		<updated>2016-06-19T08:29:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Week 4 =&lt;br /&gt;
&lt;br /&gt;
=== What&amp;#039;s been done ===&lt;br /&gt;
&lt;br /&gt;
* I finished the cache reading mechanism. The &amp;lt;tt&amp;gt;.bobj.gz&amp;lt;/tt&amp;gt; that Mantaflow creates are now loaded, a mesh is constructed and then shown in the viewport. The whole process works similarly to the smoke pointcache, where the &amp;lt;tt&amp;gt;.bphys&amp;lt;/tt&amp;gt; are read on the fly.&lt;br /&gt;
&lt;br /&gt;
* I tried out various approaches for the reading mechanism but in the end settled with the following (which in my view is quite neat):&lt;br /&gt;
** The &amp;#039;&amp;#039;&amp;#039;fluid wrapper object&amp;#039;&amp;#039;&amp;#039; is responsible for reading the &amp;lt;tt&amp;gt;.bobj.gz&amp;lt;/tt&amp;gt; data. For every frame, it loads its own fields with data from those files. ({{GitCommit|rBc933f959af9d}}, {{GitCommit|rB6a288555ebf0}}, {{GitCommit|rBd67e7284b908}})&lt;br /&gt;
** The &amp;#039;&amp;#039;&amp;#039;pointcache&amp;#039;&amp;#039;&amp;#039; triggers the fluid objects functions. It basically tells it when and which &amp;lt;tt&amp;gt;.bobj.gz&amp;lt;/tt&amp;gt; file to read. ({{GitCommit|rB6dd1cf2a3e95}})&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;Blender C code&amp;#039;&amp;#039;&amp;#039; only knows about the fluid object (and nothing about &amp;lt;tt&amp;gt;.bobj.gz&amp;lt;/tt&amp;gt; files). To construct a mesh it first queries the fluid object via the getters from the CPP API ({{GitCommit|rB6a288555ebf0}}) for mesh data. Once obtained it uses that information (information = everything that&amp;#039;s necessary to build a mesh: numvertices, numnormals, numfaces, vertice coords, normals, face coords) to then build a Blendermesh (DerivedMesh). ({{GitCommit|rB3b521e701287}})&lt;br /&gt;
&lt;br /&gt;
[[File:Mantaflow_mesh_from_cache.gif|thumb|center|500px|Oversized mesh in viewport. Mesh was read from .bobj.gz files.]]&lt;br /&gt;
&lt;br /&gt;
* After another consultation with my mentor Nils Thuerey I implemented a new version for the liquid inflow. Instead of using just two raycasts to figure out which points lie inside the mesh, the new approach is using six raycasts. ({{GitCommit|rB0972761bf0fa}}) &lt;br /&gt;
&lt;br /&gt;
=== Next up ===&lt;br /&gt;
&lt;br /&gt;
* There are still some issues with the meshes in the viewport that need to be fixed: scaling does not work correctly and faces are not drawn (mesh only visible as wireframe - see image above). &lt;br /&gt;
&lt;br /&gt;
* Caching for the phi grid is missing. With all the reading and writing of &amp;lt;tt&amp;gt;.bobj.gz&amp;lt;/tt&amp;gt; files I overlooked that one needs to cache the inflow grid as well. It shouldn&amp;#039;t be too difficult to implement though as the phi grid can be cached in the same fashion as the smoke grids.&lt;br /&gt;
&lt;br /&gt;
* My new liquid inflow is currently not in use (is commented out). I had some inaccuracies and therefore kept my old code. Next week I&amp;#039;ll review the code (this one: {{GitCommit|rB0972761bf0fa}}) and hopefully be able to figure out what&amp;#039;s wrong.&lt;br /&gt;
&lt;br /&gt;
=== Questions ===&lt;br /&gt;
&lt;br /&gt;
* In the readBobjFile() from Mantaflow there is a conversion to grid space for all the vertices. How would that map to the Blender world? I think I am currently missing something, but getting this right should fix the mesh scaling issue.&lt;/div&gt;</summary>
		<author><name>wiki&gt;Sebbas</name></author>
		
	</entry>
</feed>