<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Programming &#8211; Julia Lou | Virtual Production | VFX</title>
	<atom:link href="https://julialou.com/v2/project-category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>https://julialou.com/v2</link>
	<description>VFX and Virtual Production</description>
	<lastBuildDate>Sun, 15 May 2016 00:59:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://julialou.com/v2/wp-content/uploads/2016/05/cropped-favicon_3_512x512-1-32x32.png</url>
	<title>Programming &#8211; Julia Lou | Virtual Production | VFX</title>
	<link>https://julialou.com/v2</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>SPH Fluid Simulation</title>
		<link>https://julialou.com/v2/project/sph-fluid-simulation/</link>
		
		<dc:creator><![CDATA[Julia]]></dc:creator>
		<pubDate>Sat, 14 May 2016 12:57:10 +0000</pubDate>
				<guid isPermaLink="false">https://julialou.com/v2/?post_type=project&#038;p=499</guid>

					<description><![CDATA[I wrote a basic SPH fluid simulator as part of my Master&#8217;s based on the papers by Muller and Kelager, written in C++, OpenGL, and NGL. The hardest part was finding parameters to balance pressure and viscosity to keep it from exploding. The only optimization is done with premultiplying the kernel coefficients and a uniform...]]></description>
										<content:encoded><![CDATA[<p>I wrote a basic SPH fluid simulator as part of my Master&#8217;s based on the papers by Muller and Kelager, written in C++, OpenGL, and NGL. The hardest part was finding parameters to balance pressure and viscosity to keep it from exploding. The only optimization is done with premultiplying the kernel coefficients and a uniform grid.</p>
<p>After cleaning up and optimizing my SPH fluid simulator a bit, I implemented marching cubes to generate a mesh over the particles. It’s not terribly efficient but it does alright, usually running 7-9 fps for 400 particles without any tricks like threading or GPU acceleration. Much of it is based on the marching cubes definitions by <a href="http://paulbourke.net/geometry/polygonise/" target="_blank">Paul Bourke</a>, the site is extremely useful and gives a great explanation of the algorithm.</p>
<p>I used two different methods to calculate the scalar field, one being the classic Metaballs by Blinn, and the other is the Averaged Center method by Zhu and Bridson (2005). The averaged center method is supposed to be smoother, but maybe I didn’t have enough particles for it to be really smooth or the radius was too small.</p>

<a title="SPH Fluid Simulation - Particles" href='https://julialou.com/v2/wp-content/uploads/2016/05/FluidSim1.jpg'><img fetchpriority="high" decoding="async" width="1200" height="855" src="https://julialou.com/v2/wp-content/uploads/2016/05/FluidSim1.jpg" class="attachment-full size-full" alt="SPH Fluid Simulation" srcset="https://julialou.com/v2/wp-content/uploads/2016/05/FluidSim1.jpg 1200w, https://julialou.com/v2/wp-content/uploads/2016/05/FluidSim1-300x214.jpg 300w, https://julialou.com/v2/wp-content/uploads/2016/05/FluidSim1-768x547.jpg 768w, https://julialou.com/v2/wp-content/uploads/2016/05/FluidSim1-1024x730.jpg 1024w, https://julialou.com/v2/wp-content/uploads/2016/05/FluidSim1-460x328.jpg 460w" sizes="(max-width: 1200px) 100vw, 1200px" /></a>
<a title="SPH Fluid Simulation - Particles" href='https://julialou.com/v2/wp-content/uploads/2016/05/FluidSim2.jpg'><img decoding="async" width="1200" height="855" src="https://julialou.com/v2/wp-content/uploads/2016/05/FluidSim2.jpg" class="attachment-full size-full" alt="SPH Fluid Simulation" srcset="https://julialou.com/v2/wp-content/uploads/2016/05/FluidSim2.jpg 1200w, https://julialou.com/v2/wp-content/uploads/2016/05/FluidSim2-300x214.jpg 300w, https://julialou.com/v2/wp-content/uploads/2016/05/FluidSim2-768x547.jpg 768w, https://julialou.com/v2/wp-content/uploads/2016/05/FluidSim2-1024x730.jpg 1024w, https://julialou.com/v2/wp-content/uploads/2016/05/FluidSim2-460x328.jpg 460w" sizes="(max-width: 1200px) 100vw, 1200px" /></a>
<a title="SPH Fluid Simulation - Marching Cubes Mesh" href='https://julialou.com/v2/wp-content/uploads/2016/05/FluidSim3.jpg'><img decoding="async" width="1200" height="855" src="https://julialou.com/v2/wp-content/uploads/2016/05/FluidSim3.jpg" class="attachment-full size-full" alt="SPH Fluid Simulation" srcset="https://julialou.com/v2/wp-content/uploads/2016/05/FluidSim3.jpg 1200w, https://julialou.com/v2/wp-content/uploads/2016/05/FluidSim3-300x214.jpg 300w, https://julialou.com/v2/wp-content/uploads/2016/05/FluidSim3-768x547.jpg 768w, https://julialou.com/v2/wp-content/uploads/2016/05/FluidSim3-1024x730.jpg 1024w, https://julialou.com/v2/wp-content/uploads/2016/05/FluidSim3-460x328.jpg 460w" sizes="(max-width: 1200px) 100vw, 1200px" /></a>

<p><iframe loading="lazy" src="https://player.vimeo.com/video/65892922" width="640" height="473" frameborder="0" allowfullscreen="allowfullscreen"></iframe></p>
<p><a href="https://vimeo.com/65892922">Marching Cubes on SPH fluid simulation</a> from <a href="https://vimeo.com/user12136782">Julia Lou</a> on <a href="https://vimeo.com">Vimeo</a>.</p>
<p><iframe loading="lazy" src="https://player.vimeo.com/video/64968796" width="640" height="351" frameborder="0" allowfullscreen="allowfullscreen"></iframe></p>
<p><a href="https://vimeo.com/64968796">SPH Fluid Simulation</a> from <a href="https://vimeo.com/user12136782">Julia Lou</a> on <a href="https://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
