﻿<?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%2FDocumentation</id>
	<title>利用者:Sebbas/GSoC 2016/Documentation - 版の履歴</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%2FDocumentation"/>
	<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/Documentation&amp;action=history"/>
	<updated>2026-04-20T04:49:53Z</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/Documentation&amp;diff=151575&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/Documentation&amp;diff=151575&amp;oldid=prev"/>
		<updated>2018-06-28T21:17:13Z</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/Documentation&amp;diff=151574&amp;oldid=prev</id>
		<title>wiki&gt;Sebbas: /* Getting started */</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/Documentation&amp;diff=151574&amp;oldid=prev"/>
		<updated>2016-11-06T14:48:20Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Getting started&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Documentation (GSoC 2016 - Blender Mantaflow Integration) =&lt;br /&gt;
&lt;br /&gt;
Main idea of this GSoC project was to integrate Mantaflow liquid effects into Blender. The exisiting Mantaflow smoke integration, which builds on top of the smoke modifier, was therefore taken as a basis and extended to handle Mantaflows FLIP based liquid effects as well.&lt;br /&gt;
&lt;br /&gt;
This way the smoke modifier can be seen as a general fluid modifier, handling both fluid types smoke and liquid. The current liquid modifer (Elbeem &amp;quot;fluid&amp;quot; modifier), which was left untouched anyways, is not needed in this setup.&lt;br /&gt;
&lt;br /&gt;
=== Getting started ===&lt;br /&gt;
&lt;br /&gt;
The code for this project is in the branch [https://developer.blender.org/diffusion/B/browse/fluid-mantaflow/ fluid-mantaflow]. You can build it under Linux and Mac - Windows is unfortunately ''not'' supported (see [[User:Sebbas/GSoC_2016/Documentation#Future_Improvements|Future Improvements]]).&lt;br /&gt;
&lt;br /&gt;
==== Building ====&lt;br /&gt;
&lt;br /&gt;
When building it is important that CMake flags ''WITH_MANTA'', ''WITH_SMOKE'' and ''WITH_OPENMP'' are all set.&lt;br /&gt;
&lt;br /&gt;
; Linux: Follow [[Dev:Doc/Building_Blender/Linux|the official build instructions ]] and everything should work fine.&lt;br /&gt;
; Mac: Since Mac does not use an OpenMP enabled compiler by default, one has to explicitly set one. You can use the ''Clang'' compiler from the ''lib'' folder for that:&lt;br /&gt;
    cd blender-git/build&lt;br /&gt;
    cmake ../blender/ -DCMAKE_C_COMPILER=&amp;lt;your_path&amp;gt;/blender-git/lib/darwin-9.x.universal/clang-omp-3.5/bin/clang &lt;br /&gt;
        -DCMAKE_CXX_COMPILER=&amp;lt;your_path&amp;gt;/blender-git/lib/darwin-9.x.universal/clang-omp-3.5/bin/clang++&lt;br /&gt;
&lt;br /&gt;
Another problem on Mac seems to be &amp;lt;tt&amp;gt;MacOSX10.11.sdk&amp;lt;/tt&amp;gt;. I was only able to compile using &amp;lt;tt&amp;gt;MacOSX10.10.sdk&amp;lt;/tt&amp;gt; and explicitly setting that.&lt;br /&gt;
&lt;br /&gt;
; Windows:  Currently not supported&lt;br /&gt;
&lt;br /&gt;
==== Quick Liquid ====&lt;br /&gt;
&lt;br /&gt;
The easiest way to setup a liquid simulation and to try out Mantflow liquids inside Blender is to use the new quick effect ''Quick Liquid''. Just as ''Quick Smoke'' and ''Quick Fluid'', it is accessible from the Spacebar Menu.&lt;br /&gt;
&lt;br /&gt;
[[File:Quick_liquid.gif|center|thumb|6400px|Setting up a liquid simulation using ''Quick Liquid'']]&lt;br /&gt;
&lt;br /&gt;
==== Sample scenes ====&lt;br /&gt;
&lt;br /&gt;
Another good starting point are the Blender Mantaflow sample scenes for smoke and liquids. They should give you an idea which values to use for the new liquid settings.&lt;br /&gt;
&lt;br /&gt;
https://github.com/sebbas/BlenderMantaflowSampleFiles&lt;br /&gt;
&lt;br /&gt;
{{NiceTip|Loading Elbeem liquid scenes|The Mantaflow integration is fundamentally different from the current liquid solver Elbeem. There are new settings to control the liquid behaviour, smoke and liquid cache are unified and baking results appear directly in the viewport for instant replay. For now, it is therefore recommended to start fresh and build new liquid Blender scenes instead of loading old ones.}}&lt;br /&gt;
&lt;br /&gt;
=== Overview Fluid UI ===&lt;br /&gt;
&lt;br /&gt;
Getting liquids into the smoke modifier required bigger changes in the UI. Smoke settings had to be reorded and liquid settings had to be added. If you are familiar with the current smoke UI though, this layout should not take you long to get used to.&lt;br /&gt;
&lt;br /&gt;
==== Fluid Domain ====&lt;br /&gt;
&lt;br /&gt;
[[File:Mantaflow_ui_liquid_domain.png|thumb|right|368px|Fluid tab settings for a liquid domain object]]&lt;br /&gt;
&lt;br /&gt;
The most notable change for domain objects is that a domain type needs to be chosen. Right now, you can choose between either liquid or gas domains. Depending on what you choose you will be presented with settings matching your domain type in addition to the general domain settings (e.g. gravity, border collisions, time scale).&lt;br /&gt;
&lt;br /&gt;
Gas settings are the same as in the current master (2.77) - they just have been reordered a bit.&lt;br /&gt;
&lt;br /&gt;
For liquids there are two new parameters:&lt;br /&gt;
&lt;br /&gt;
; Randomness: This factor controls how particles are sampled. A higher value results in more randomness. For the mesh surface this means that it will become rougher the higher you set the value.&lt;br /&gt;
&lt;br /&gt;
; Discretization: Controls how many particles are sampled. A higher value results in more particles.&lt;br /&gt;
&lt;br /&gt;
==== Fluid Flow Objects ====&lt;br /&gt;
&lt;br /&gt;
[[File:Mantaflow_ui_liquid_flow.png|thumb|right|368px|Fluid tab settings for a liquid flow object]]&lt;br /&gt;
&lt;br /&gt;
With the additional flow type liquid it made sense to clean up terminology a bit. When setting up a flow object you now not only choose the type but also its flow behavior. Options are for this setting are:&lt;br /&gt;
&lt;br /&gt;
; Inflow: Constantly add fluid to the simulation. Up until now we always used this flow behavior for smoke, for liquids you can consider this as being your tap.&lt;br /&gt;
&lt;br /&gt;
; Outflow: Removes fluid from the simulation. It is essentially your drain for the fluid domain and prevents it from filling up completely.&lt;br /&gt;
&lt;br /&gt;
; Geometry: Only the given geometry is used for inflow. Think of this as type &amp;quot;inflow&amp;quot; but only for one frame.&lt;br /&gt;
&lt;br /&gt;
For flow behavior types ''Inflow'' and ''Geometry'' it is also worth noting that there is an animatable property to enable / disable the flow. Elbeem provided this feature as well.&lt;br /&gt;
&lt;br /&gt;
[[File:Mantaflow_border_collision.gif|thumb|center|720px|Liquid inflow with different border collisions: vertically open, horizontally open, collide all]]&lt;br /&gt;
&lt;br /&gt;
==== Fluid Quality ====&lt;br /&gt;
&lt;br /&gt;
Grouping settings that control the fluid quality was part of the UI cleanup. The ''Fluid Quality'' panel was therefore introduced. It contains a lot of settings that already existed, only the viewport display switch was added. However, it should give an idea of how high resolution settings for smoke and liquids can be combined.&lt;br /&gt;
&lt;br /&gt;
==== Fluid Cache ====&lt;br /&gt;
&lt;br /&gt;
Caching under Elbeem works by writing out a sequence of &amp;lt;tt&amp;gt;bobj.gz&amp;lt;/tt&amp;gt; files. The Mantaflow integration does the same, the only thing that changed is that those liquid mesh files are accessed like the pointcache files. &lt;br /&gt;
&lt;br /&gt;
That is, you can access cache settings for liquids through the same UI known from the smoke. Only the file format needs to be set differently (for liquids you would set it to ''Object'' file format).&lt;br /&gt;
&lt;br /&gt;
There are multiple advantages to this approach: All cached fluid files are now stored in one central location, changing file names is much easier and, most importantly, baked scenes can be replayed instantly in the viewport (no more waiting for the cache to finish baking to see first results).&lt;br /&gt;
&lt;br /&gt;
=== Future Improvements ===&lt;br /&gt;
&lt;br /&gt;
There is still room for improvement. Here are some things to keep in mind and watch out for:&lt;br /&gt;
&lt;br /&gt;
==== Features ====&lt;br /&gt;
; High resolution option for liquids: Similarly to the smoke high resolution option, it should be possible to improve liquid simulations with an upres factor.&lt;br /&gt;
&lt;br /&gt;
; Liquid obstacles: In my view, this is one of the features with higher priority. Static smoke obstacles already work. Animated ones and the all liquid obstacles, however, don't work yet.&lt;br /&gt;
&lt;br /&gt;
; Backwards compatibilty to older liquids simulations: A lot of people will want to use older liquid scenes. This has to be taken care of (probably in versioning files).&lt;br /&gt;
&lt;br /&gt;
; Windows support: During this GSoC it turned out that there is a linker issue with the Blender Mantaflow integration on Windows. The issue has to be fixed in Mantaflow itself, then Windows builds will work as well.&lt;br /&gt;
&lt;br /&gt;
; Mixed domain setups: &amp;quot;Smoke on the water&amp;quot; pretty much says it all. Now that we're using a single fluid solver it should (finally) be possible to create nice interactions between liquid and smoke (or even fire :).&lt;br /&gt;
&lt;br /&gt;
==== Bugs ====&lt;br /&gt;
A list of current bugs, todo's and possible smaller features can be found over here:&lt;br /&gt;
https://trello.com/b/EmyScKlZ &lt;br /&gt;
&lt;br /&gt;
[[File:Mantaflow_liquid_splash_blue.png|thumb|center|640px|Liquid splash at 512 divisions. Simulated with the Mantaflow integration and rendered with Cycles]]&lt;br /&gt;
&lt;br /&gt;
=== Acknowledgements ===&lt;br /&gt;
&lt;br /&gt;
A very big thank you goes to Nils Thuerey for mentoring this project and for helping me with Mantaflow! Thanks, I learned whole lot about liquid simulations!  &lt;br /&gt;
&lt;br /&gt;
I would also like to thank Ronan Ducluzeau (zeauro) for helping with the new Fluid UI (and for taking the time to create some cool videos, check out the [[User:Sebbas/GSoC_2016/Videos|video page]]!) and Gottfried Hofmann for testing the branch. &lt;br /&gt;
&lt;br /&gt;
Thanks again to everyone who helped with the project, the Mantaflow integration has become a lot better!&lt;/div&gt;</summary>
		<author><name>wiki&gt;Sebbas</name></author>
		
	</entry>
</feed>