<?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>无叶的天空 &#187; 图形学</title>
	<atom:link href="http://nonleaf.net/tag/graphics/feed" rel="self" type="application/rss+xml" />
	<link>http://nonleaf.net</link>
	<description>[NonLeaf.Net] nothing but life</description>
	<lastBuildDate>Sat, 10 Jul 2010 21:58:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Smoke3D 1.0 released</title>
		<link>http://nonleaf.net/350.html</link>
		<comments>http://nonleaf.net/350.html#comments</comments>
		<pubDate>Wed, 18 Jul 2007 14:58:00 +0000</pubDate>
		<dc:creator>无叶</dc:creator>
				<category><![CDATA[openGL]]></category>
		<category><![CDATA[所谓学术]]></category>
		<category><![CDATA[图形学]]></category>

		<guid isPermaLink="false">http://nonleaf.net/?p=350</guid>
		<description><![CDATA[
图形学作业最终DEMO2，真正的3D烟雾效果(CPU运算)。因为运算量大，所以网格粗糙，视觉上没有2D的细腻。
到此下载：Smoke3D_1.0.rar。
ps.这个DEMO对显卡没什么要求，但要流畅运行你的CPU必须足够快。玩过的别忘留言附上你的CPU型号和程序运行时的FPS(画面左上角)，我的本本P4 1.6G跑15FPS。
操作方法：
方向键		--移动视野
按住鼠标左键拖动	--转动视野
Z		--在立方体中心增加烟雾
W/S/A/D/Q/E	--向各方向“吹”烟雾
R		--清除烟雾
P		--暂停
Esc		--退出
随机文章:

[转载]那些北大教我的事
福娃在天津
莫名
Te quiero
黑客攻击


]]></description>
			<content:encoded><![CDATA[<p align='center'><img src='http://nonleaf.net/wp-content/uploads/smoke3d_10.jpg' alt='smoke3d_10.jpg' /></p>
<p>图形学作业最终DEMO2，真正的3D烟雾效果(CPU运算)。因为运算量大，所以网格粗糙，视觉上没有2D的细腻。<br />
到此下载：<a href="http://nonleaf.net/wp-content/uploads/Smoke3D_1.0.rar">Smoke3D_1.0.rar</a>。</p>
<p>ps.这个DEMO对显卡没什么要求，但要流畅运行你的CPU必须足够快。玩过的别忘留言附上你的CPU型号和程序运行时的FPS(画面左上角)，我的本本P4 1.6G跑15FPS。</p>
<p>操作方法：<br />
方向键		--移动视野<br />
按住鼠标左键拖动	--转动视野<br />
Z		--在立方体中心增加烟雾<br />
W/S/A/D/Q/E	--向各方向“吹”烟雾<br />
R		--清除烟雾<br />
P		--暂停<br />
Esc		--退出
<p><strong>随机文章:</strong>
<ul class="random-posts">
<li><a href="http://nonleaf.net/262.html" rel="bookmark" title="十二月 15, 2006">[转载]北医的两件事</a></li>
<li><a href="http://nonleaf.net/69.html" rel="bookmark" title="五月 9, 2006">感受身边的逝去</a></li>
<li><a href="http://nonleaf.net/395.html" rel="bookmark" title="一月 6, 2008">[转载]新浪网友</a></li>
<li><a href="http://nonleaf.net/461.html" rel="bookmark" title="七月 13, 2008">7-11</a></li>
<li><a href="http://nonleaf.net/305.html" rel="bookmark" title="三月 9, 2007">不过是奥斯卡</a></li>
</ul>
<p><!-- Random Posts took 22.086 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://nonleaf.net/350.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>WaterSurface 2.0 released</title>
		<link>http://nonleaf.net/348.html</link>
		<comments>http://nonleaf.net/348.html#comments</comments>
		<pubDate>Wed, 18 Jul 2007 14:27:58 +0000</pubDate>
		<dc:creator>无叶</dc:creator>
				<category><![CDATA[openGL]]></category>
		<category><![CDATA[所谓学术]]></category>
		<category><![CDATA[图形学]]></category>

		<guid isPermaLink="false">http://nonleaf.net/?p=348</guid>
		<description><![CDATA[
图形学作业最终DEMO1，增加了瓷砖质感的水池、更加逼真的反射折射、二维火球效果。
到此下载：WaterSurface_2.0.rar。
ps.没有独立显卡、显卡超级老的没法玩，请按Esc退出。
操作方法：
方向键或W/S/A/D	--移动视野
按住鼠标左键拖动	--转动视野
R		--激起水波
T		--创建水滴
Y		--创建火球
P		--暂停
0/1		--更换烟雾显示的文字
Esc		--退出
随机文章:

幸福，因为我是会唱歌的孩子
概率问题
[转载]北大医院、穆旦、张伯驹、梁启超
音乐和生活
First Offer


]]></description>
			<content:encoded><![CDATA[<p align='center'><img src='http://nonleaf.net/wp-content/uploads/watersurface_20.jpg' alt='watersurface_20.jpg' /></p>
<p>图形学作业最终DEMO1，增加了瓷砖质感的水池、更加逼真的反射折射、二维火球效果。<br />
到此下载：<a href="http://nonleaf.net/wp-content/uploads/WaterSurface_2.0.rar">WaterSurface_2.0.rar</a>。</p>
<p>ps.没有独立显卡、显卡超级老的没法玩，请按Esc退出。</p>
<p>操作方法：<br />
方向键或W/S/A/D	--移动视野<br />
按住鼠标左键拖动	--转动视野<br />
R		--激起水波<br />
T		--创建水滴<br />
Y		--创建火球<br />
P		--暂停<br />
0/1		--更换烟雾显示的文字<br />
Esc		--退出
<p><strong>随机文章:</strong>
<ul class="random-posts">
<li><a href="http://nonleaf.net/344.html" rel="bookmark" title="六月 28, 2007">我不是天使</a></li>
<li><a href="http://nonleaf.net/89.html" rel="bookmark" title="五月 19, 2006">期末加油</a></li>
<li><a href="http://nonleaf.net/593.html" rel="bookmark" title="十一月 22, 2008">Photos at Helsinki</a></li>
<li><a href="http://nonleaf.net/289.html" rel="bookmark" title="二月 11, 2007">Pan's Labyrinth</a></li>
<li><a href="http://nonleaf.net/413.html" rel="bookmark" title="二月 5, 2008">Fraternity?</a></li>
</ul>
<p><!-- Random Posts took 39.610 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://nonleaf.net/348.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>公布&quot;考眼力&quot;答案</title>
		<link>http://nonleaf.net/334.html</link>
		<comments>http://nonleaf.net/334.html#comments</comments>
		<pubDate>Tue, 05 Jun 2007 11:19:38 +0000</pubDate>
		<dc:creator>无叶</dc:creator>
				<category><![CDATA[openGL]]></category>
		<category><![CDATA[所谓学术]]></category>
		<category><![CDATA[图形学]]></category>
		<category><![CDATA[游戏]]></category>
		<category><![CDATA[照片]]></category>

		<guid isPermaLink="false">http://nonleaf.net/?p=334</guid>
		<description><![CDATA[逐一揭露一下电脑生成的图像的“破绽”...


上面这张是电脑生成的。仔细看，烟雾缺乏细节和层次，和黑色背静边缘模糊，想象一下烟雾虽然混乱但应该是局部浓淡分明的（就象下图）。

上面这张是真实照片。

上面这张是电脑生成的。云和海面的衔接不自然暴露了身份，但是注意左侧的金色反射阳光，非常逼真。

上面这张是真实照片，远近形状有别的云是较难形成的，何况光线透过云层的丁达尔效应如此自然。

上面这张是电脑生成的。其实，从水的效果来看堪称完美，破绽在于玻璃杯和背景过于干净了。

上面这张是真实照片，不过我也觉得拍得很假...
随机文章:

First En-Post
庆祝程序搞定
平铺直叙也可以很美
不过是奥斯卡
看《龙猫》


]]></description>
			<content:encoded><![CDATA[<p>逐一揭露一下电脑生成的图像的“破绽”...</p>
<p><span id="more-334"></span></p>
<p align="center"><img id="image327" alt=smoke_1.jpg src="http://nonleaf.net/wp-content/uploads/smoke_1.jpg" /></p>
<p>上面这张是电脑生成的。仔细看，烟雾缺乏细节和层次，和黑色背静边缘模糊，想象一下烟雾虽然混乱但应该是局部浓淡分明的（就象下图）。</p>
<p align="center"><img id="image328" alt=smoke_2.jpg src="http://nonleaf.net/wp-content/uploads/smoke_2.jpg" /></p>
<p>上面这张是真实照片。</p>
<p align="center"><img id="image329" alt=ocean_1.jpg src="http://nonleaf.net/wp-content/uploads/ocean_1.jpg" /></p>
<p>上面这张是电脑生成的。云和海面的衔接不自然暴露了身份，但是注意左侧的金色反射阳光，非常逼真。</p>
<p align="center"><img id="image330" alt=ocean_2.jpg src="http://nonleaf.net/wp-content/uploads/ocean_2.jpg" /></p>
<p>上面这张是真实照片，远近形状有别的云是较难形成的，何况光线透过云层的丁达尔效应如此自然。</p>
<p align="center"><img id="image331" alt=water_1.jpg src="http://nonleaf.net/wp-content/uploads/water_1.jpg" /></p>
<p>上面这张是电脑生成的。其实，从水的效果来看堪称完美，破绽在于玻璃杯和背景过于干净了。</p>
<p align="center"><img id="image332" alt=water_2.jpg src="http://nonleaf.net/wp-content/uploads/water_2.jpg" /></p>
<p>上面这张是真实照片，不过我也觉得拍得很假...
<p><strong>随机文章:</strong>
<ul class="random-posts">
<li><a href="http://nonleaf.net/348.html" rel="bookmark" title="七月 18, 2007">WaterSurface 2.0 released</a></li>
<li><a href="http://nonleaf.net/432.html" rel="bookmark" title="三月 11, 2008">充数</a></li>
<li><a href="http://nonleaf.net/367.html" rel="bookmark" title="九月 18, 2007">选择</a></li>
<li><a href="http://nonleaf.net/138.html" rel="bookmark" title="七月 9, 2006">归来</a></li>
<li><a href="http://nonleaf.net/560.html" rel="bookmark" title="九月 12, 2008">Photos at KTH &#038; Kista</a></li>
</ul>
<p><!-- Random Posts took 20.276 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://nonleaf.net/334.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>考眼力</title>
		<link>http://nonleaf.net/333.html</link>
		<comments>http://nonleaf.net/333.html#comments</comments>
		<pubDate>Fri, 25 May 2007 17:20:25 +0000</pubDate>
		<dc:creator>无叶</dc:creator>
				<category><![CDATA[openGL]]></category>
		<category><![CDATA[所谓学术]]></category>
		<category><![CDATA[那些日子]]></category>
		<category><![CDATA[图形学]]></category>
		<category><![CDATA[照片]]></category>

		<guid isPermaLink="false">http://nonleaf.net/?p=333</guid>
		<description><![CDATA[下面哪些是真实照片，哪些完全由计算机生成？猜猜吧~







随机文章:

考试结束
[转载]遇见941
The Hitchhiker's Guide to the Galaxy
看了asaa的blog
我不知道怎么回答


]]></description>
			<content:encoded><![CDATA[<p>下面哪些是真实照片，哪些完全由计算机生成？猜猜吧~</p>
<p><span id="more-333"></span></p>
<p align="center"><img id="image327" alt=smoke_1.jpg src="http://nonleaf.net/wp-content/uploads/smoke_1.jpg" /></p>
<p align="center"><img id="image328" alt=smoke_2.jpg src="http://nonleaf.net/wp-content/uploads/smoke_2.jpg" /></p>
<p align="center"><img id="image329" alt=ocean_1.jpg src="http://nonleaf.net/wp-content/uploads/ocean_1.jpg" /></p>
<p align="center"><img id="image330" alt=ocean_2.jpg src="http://nonleaf.net/wp-content/uploads/ocean_2.jpg" /></p>
<p align="center"><img id="image331" alt=water_1.jpg src="http://nonleaf.net/wp-content/uploads/water_1.jpg" /></p>
<p align="center"><img id="image332" alt=water_2.jpg src="http://nonleaf.net/wp-content/uploads/water_2.jpg" /></p>
<p><strong>随机文章:</strong>
<ul class="random-posts">
<li><a href="http://nonleaf.net/805.html" rel="bookmark" title="一月 18, 2010">mumble</a></li>
<li><a href="http://nonleaf.net/317.html" rel="bookmark" title="四月 18, 2007">平铺直叙也可以很美</a></li>
<li><a href="http://nonleaf.net/298.html" rel="bookmark" title="二月 16, 2007">也说股市</a></li>
<li><a href="http://nonleaf.net/222.html" rel="bookmark" title="十月 6, 2006">分手快乐</a></li>
<li><a href="http://nonleaf.net/453.html" rel="bookmark" title="六月 5, 2008">LTNS</a></li>
</ul>
<p><!-- Random Posts took 22.712 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://nonleaf.net/333.html/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>smokeFFT v1.0 released</title>
		<link>http://nonleaf.net/326.html</link>
		<comments>http://nonleaf.net/326.html#comments</comments>
		<pubDate>Fri, 25 May 2007 07:28:42 +0000</pubDate>
		<dc:creator>无叶</dc:creator>
				<category><![CDATA[openGL]]></category>
		<category><![CDATA[所谓学术]]></category>
		<category><![CDATA[图形学]]></category>

		<guid isPermaLink="false">http://nonleaf.net/?p=326</guid>
		<description><![CDATA[数字信号处理的大作业，FFT在流体模拟中的应用。实现方法参考了大牛Stam的论文，据说伊首先在CG领域引入semi-Lagrangian，才有了今天的real-time流体模拟。据说电影《Shrek》里面的烟雾特效就是这个算法，嘿嘿~
这个程序对显卡没什么要求，欢迎大家下载来玩：smoke_fft_v1_0.rar
操作方法：
1.按住鼠标左键拖动可以产生烟雾和流动。
2.按R/T,G/H,B/N键可以调整烟雾颜色（红、绿、蓝色的比例），左上角有提示。
3.按上下翻页键(PageUp/PageDown)可以调整拖动产生的烟雾量。
4.按P键暂停流动，此时仍旧可以“画”烟雾。
5.按0/O键清空屏幕。
6.按Esc退出。


随机文章:

去陪姥姥
看图说话
Should I?
Smoke3D 1.0 released
南柯一梦


]]></description>
			<content:encoded><![CDATA[<p>数字信号处理的大作业，FFT在流体模拟中的应用。实现方法参考了大牛Stam的论文，据说伊首先在CG领域引入semi-Lagrangian，才有了今天的real-time流体模拟。据说电影《Shrek》里面的烟雾特效就是这个算法，嘿嘿~</p>
<p>这个程序对显卡没什么要求，欢迎大家下载来玩：<a href="http://nonleaf.net/wp-content/uploads/smoke_fft_v1_0.rar">smoke_fft_v1_0.rar</a></p>
<p>操作方法：<br />
1.按住鼠标左键拖动可以产生烟雾和流动。<br />
2.按R/T,G/H,B/N键可以调整烟雾颜色（红、绿、蓝色的比例），左上角有提示。<br />
3.按上下翻页键(PageUp/PageDown)可以调整拖动产生的烟雾量。<br />
4.按P键暂停流动，此时仍旧可以“画”烟雾。<br />
5.按0/O键清空屏幕。<br />
6.按Esc退出。</p>
<p align="center"><img id="image324" alt=smokefft_1.jpg src="http://nonleaf.net/wp-content/uploads/smokefft_1.jpg" /></p>
<p align="center"><img id="image324" alt=smokefft_2.jpg src="http://nonleaf.net/wp-content/uploads/smokefft_2.jpg" /></p>
<p><strong>随机文章:</strong>
<ul class="random-posts">
<li><a href="http://nonleaf.net/533.html" rel="bookmark" title="八月 29, 2008">生活在那端</a></li>
<li><a href="http://nonleaf.net/162.html" rel="bookmark" title="七月 30, 2006">to where you are</a></li>
<li><a href="http://nonleaf.net/352.html" rel="bookmark" title="七月 30, 2007">流水</a></li>
<li><a href="http://nonleaf.net/461.html" rel="bookmark" title="七月 13, 2008">7-11</a></li>
<li><a href="http://nonleaf.net/846.html" rel="bookmark" title="三月 1, 2010">Merry Christmas Mr.Lawrence - FYI</a></li>
</ul>
<p><!-- Random Posts took 24.910 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://nonleaf.net/326.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WaterSurface v1.5 released</title>
		<link>http://nonleaf.net/319.html</link>
		<comments>http://nonleaf.net/319.html#comments</comments>
		<pubDate>Wed, 25 Apr 2007 06:09:28 +0000</pubDate>
		<dc:creator>无叶</dc:creator>
				<category><![CDATA[openGL]]></category>
		<category><![CDATA[所谓学术]]></category>
		<category><![CDATA[图形学]]></category>

		<guid isPermaLink="false">http://nonleaf.net/?p=319</guid>
		<description><![CDATA[图形学期中成果，下午要作报告了，我感觉效果还不错~
下载：WaterSurface_v1_5.rar
p.s.没有独立显卡\显卡较老的电脑运行会有问题，如果出现黑屏(鼠标可能已隐藏)，按Esc退出即可。

随机文章:

放假
莫名
放假
Merry Christmas Mr.Lawrence - FYI
看《龙猫》


]]></description>
			<content:encoded><![CDATA[<p>图形学期中成果，下午要作报告了，我感觉效果还不错~</p>
<p>下载：<a href="http://nonleaf.net/wp-content/uploads/WaterSurface_v1_5.rar">WaterSurface_v1_5.rar</a><br />
p.s.没有独立显卡\显卡较老的电脑运行会有问题，如果出现黑屏(鼠标可能已隐藏)，按Esc退出即可。</p>
<p align="center"><img id="image320" alt=water_surface_v1_5.jpg src="http://nonleaf.net/wp-content/uploads/water_surface_v1_5.jpg" /></p>
<p><strong>随机文章:</strong>
<ul class="random-posts">
<li><a href="http://nonleaf.net/309.html" rel="bookmark" title="三月 14, 2007">Would you die, for the one you love</a></li>
<li><a href="http://nonleaf.net/230.html" rel="bookmark" title="十月 30, 2006">World Coded</a></li>
<li><a href="http://nonleaf.net/218.html" rel="bookmark" title="九月 27, 2006">南柯一梦</a></li>
<li><a href="http://nonleaf.net/358.html" rel="bookmark" title="八月 6, 2007">长大</a></li>
<li><a href="http://nonleaf.net/17.html" rel="bookmark" title="三月 12, 2006">买了新本本</a></li>
</ul>
<p><!-- Random Posts took 16.772 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://nonleaf.net/319.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>模拟水面</title>
		<link>http://nonleaf.net/310.html</link>
		<comments>http://nonleaf.net/310.html#comments</comments>
		<pubDate>Sun, 25 Mar 2007 03:06:08 +0000</pubDate>
		<dc:creator>无叶</dc:creator>
				<category><![CDATA[openGL]]></category>
		<category><![CDATA[所谓学术]]></category>
		<category><![CDATA[图形学]]></category>
		<category><![CDATA[考试]]></category>

		<guid isPermaLink="false">http://nonleaf.net/?p=310</guid>
		<description><![CDATA[图形学作业据说做好了可以免期末考试:)
我用openGL做了一个实时水波模拟，基本方法是网格，只有反射和半透明，效果还好，下一步是增加折射、Perlin Noise、溅起水滴、水下观察的效果。
网格法的缺陷就是不能模拟过于激烈的水面运动、海浪等，所以模拟自然运动的水（比如水从水杯中倒出的近距离效果）就要用粒子系统。初步查了一下，可能用到流体力学N-S方程、SPH、隐函数表面抽取。要学的东西太多了......不知道这学期是不是能完成。

有兴趣下载来玩玩：water_surface_1.rar
显卡好的，请在高分辨率下运行，否则水波运动过快效果不好。

update 2007/4/11:
操作说明：请在Windows系统下将压缩包中所有文件解压缩到同一目录，然后执行water_test。运行后的窗口有分辨率选择和提示说明。

随机文章:

K歌
吸取教训
Pan's Labyrinth
考眼力
[转载]凌晨一点的烟


]]></description>
			<content:encoded><![CDATA[<p>图形学作业据说做好了可以免期末考试:)</p>
<p>我用openGL做了一个实时水波模拟，基本方法是网格，只有反射和半透明，效果还好，下一步是增加折射、Perlin Noise、溅起水滴、水下观察的效果。</p>
<p>网格法的缺陷就是不能模拟过于激烈的水面运动、海浪等，所以模拟自然运动的水（比如水从水杯中倒出的近距离效果）就要用粒子系统。初步查了一下，可能用到流体力学N-S方程、SPH、隐函数表面抽取。要学的东西太多了......不知道这学期是不是能完成。</p>
<p align="center"><img id="image311" alt=water_surface_1.jpg src="http://nonleaf.net/wp-content/uploads/water_surface_1.jpg" /></p>
<p>有兴趣下载来玩玩：<a href="http://nonleaf.net/wp-content/uploads/water_surface_1.rar">water_surface_1.rar</a><br />
显卡好的，请在高分辨率下运行，否则水波运动过快效果不好。</p>
<p><font color="orange"><br />
update 2007/4/11:<br />
操作说明：请在Windows系统下将压缩包中所有文件解压缩到同一目录，然后执行water_test。运行后的窗口有分辨率选择和提示说明。<br />
</font>
<p><strong>随机文章:</strong>
<ul class="random-posts">
<li><a href="http://nonleaf.net/185.html" rel="bookmark" title="八月 11, 2006">Wordpress 2.0.4 Upgraded</a></li>
<li><a href="http://nonleaf.net/864.html" rel="bookmark" title="三月 22, 2010">Somewhere I Have Never Travelled</a></li>
<li><a href="http://nonleaf.net/560.html" rel="bookmark" title="九月 12, 2008">Photos at KTH &#038; Kista</a></li>
<li><a href="http://nonleaf.net/233.html" rel="bookmark" title="十一月 3, 2006">3D桌面</a></li>
<li><a href="http://nonleaf.net/65.html" rel="bookmark" title="五月 5, 2006">motss的歌</a></li>
</ul>
<p><!-- Random Posts took 17.753 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://nonleaf.net/310.html/feed</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
		<item>
		<title>回家了</title>
		<link>http://nonleaf.net/180.html</link>
		<comments>http://nonleaf.net/180.html#comments</comments>
		<pubDate>Tue, 08 Aug 2006 11:50:40 +0000</pubDate>
		<dc:creator>无叶</dc:creator>
				<category><![CDATA[openGL]]></category>
		<category><![CDATA[那些日子]]></category>
		<category><![CDATA[图形学]]></category>
		<category><![CDATA[工作]]></category>

		<guid isPermaLink="false">http://nonleaf.net/?p=180</guid>
		<description><![CDATA[暑期课终于结束了，做完了可恶的作业后，我回家了。
虽然说是家住北京，但是平时由于周末有双学位的课程，一个学期都不能回家几次。这次回家陪陪父母、姥姥。
我发现自己有一种癖好，又或者是一种心病。如果一项工作没有完成，我就会不停的想它，无论吃饭甚至睡觉。尤其反映在写程序上，如果晚上写程序到很晚还没有搞定，那么睡觉的时间就不会超过5个小时，因为根本睡不踏实，做梦也在想算法。可能是一种强迫症吧，或者工作狂？
暑期的图形学课作业就折腾了我好久。贴张图，这次的一个程序--模拟光照明方程和的Phong着色法，效果还算满意。

随机文章:

吸取教训
无题
第一缕光
gmail缩略图变色初步调查
欢迎来[积木]


]]></description>
			<content:encoded><![CDATA[<p>暑期课终于结束了，做完了可恶的作业后，我回家了。</p>
<p>虽然说是家住北京，但是平时由于周末有双学位的课程，一个学期都不能回家几次。这次回家陪陪父母、姥姥。</p>
<p>我发现自己有一种癖好，又或者是一种心病。如果一项工作没有完成，我就会不停的想它，无论吃饭甚至睡觉。尤其反映在写程序上，如果晚上写程序到很晚还没有搞定，那么睡觉的时间就不会超过5个小时，因为根本睡不踏实，做梦也在想算法。可能是一种强迫症吧，或者工作狂？</p>
<p>暑期的图形学课作业就折腾了我好久。贴张图，这次的一个程序--模拟光照明方程和的Phong着色法，效果还算满意。</p>
<p align="center"><a href="http://nonleaf.net/wp-content/uploads/Phong.jpg" rel="lightbox" title="Phong着色法"><img src="http://nonleaf.net/wp-content/uploads/Phong.jpg" width="420" alt="Phong着色法" /></a></p>
<p><strong>随机文章:</strong>
<ul class="random-posts">
<li><a href="http://nonleaf.net/224.html" rel="bookmark" title="十月 11, 2006">Mini &#038; T11</a></li>
<li><a href="http://nonleaf.net/77.html" rel="bookmark" title="五月 12, 2006">天津之行</a></li>
<li><a href="http://nonleaf.net/50.html" rel="bookmark" title="四月 10, 2006">院十佳</a></li>
<li><a href="http://nonleaf.net/405.html" rel="bookmark" title="一月 20, 2008">几部电影</a></li>
<li><a href="http://nonleaf.net/198.html" rel="bookmark" title="八月 24, 2006">寻找王菲</a></li>
</ul>
<p><!-- Random Posts took 24.987 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://nonleaf.net/180.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>我恨微软！</title>
		<link>http://nonleaf.net/166.html</link>
		<comments>http://nonleaf.net/166.html#comments</comments>
		<pubDate>Mon, 31 Jul 2006 16:43:11 +0000</pubDate>
		<dc:creator>无叶</dc:creator>
				<category><![CDATA[所谓学术]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[图形学]]></category>

		<guid isPermaLink="false">http://nonleaf.net/?p=166</guid>
		<description><![CDATA[今天花了一下午用VC+openGL写图形学那个扫描线算法，本来想着用STL现成的list的就行了，没想到list.sort()那个函数竟然不能接我写的函数对象，总是说不能把这个对象转换为greater。我调啊调，还是那句话，就晕了，这和greater有什么关系？难道我用错了？去翻Bjarne Stroustrup的蓝宝书TCPL，上面写的自认为和我的做法没区别。
无奈，google一下，N多人在问：how do I use STL's list's sort method (the one that takes a parameter)... 就是没人答得沾边，好不容易看一个人回复了一段可是work around的程序，读了半天发现是他把list倒腾到vector里面排序再倒腾回去。我当时就想抽他~
最终我看到了最让人郁闷的网页，来自可爱的Microsoft...
BUG: The STL list::sort() Function Doesn't Sort a List of Pointers
原来VC6的STL代码里面
template ;
   void sort(Pred pr);
错写成了
void sort(greater pr);
导致无论什么参数传进去，编译器都愣要转成greater。
RESOLUTION里面说的解决办法和没说一样，重载greater...所以我一气之下，干脆把greater直接当小于号用了，微软都这么干，我怕什么啊！
MS写代码的人啊，你rp哪里去了！记得上次就是因为STL库里面的另外一个BUG，让友元都不能访问私有成员，也让我调半天。没想到VC6打了sp6也不管用，还有这么严重的BUG。一看时间——Last Review : July 5, 2005，VC6推出都多少年了？
一个下午就这么过了，我恨微软！！！
随机文章:

无叶的三叶草
Budapest
过年了
充数
2008奥运会体育图标发布


]]></description>
			<content:encoded><![CDATA[<p><img id="image167" height=96 alt=Bill_Gates.jpg src="http://nonleaf.net/wp-content/uploads/Bill_Gates.jpg" align="left" border="1" />今天花了一下午用VC+openGL写图形学那个扫描线算法，本来想着用STL现成的list的就行了，没想到list.sort()那个函数竟然不能接我写的函数对象，总是说不能把这个对象转换为greater<T>。我调啊调，还是那句话，就晕了，这和greater<T>有什么关系？难道我用错了？去翻Bjarne Stroustrup的蓝宝书TCPL，上面写的自认为和我的做法没区别。</p>
<p>无奈，google一下，N多人在问：how do I use STL's list's sort method (the one that takes a parameter)... 就是没人答得沾边，好不容易看一个人回复了一段可是work around的程序，读了半天发现是他把list倒腾到vector里面排序再倒腾回去。我当时就想抽他~</p>
<p>最终我看到了最让人郁闷的网页，来自可爱的Microsoft...<br />
<a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;265109" target="_blank">BUG: The STL list::sort() Function Doesn't Sort a List of Pointers</a></p>
<p>原来VC6的STL代码里面<br />
<code>template <class Pred>;<br />
   void sort(Pred pr);</code><br />
错写成了<br />
<code>void sort(greater<T> pr);</code><br />
导致无论什么参数传进去，编译器都愣要转成greater<T>。<br />
RESOLUTION里面说的解决办法和没说一样，重载greater<T>...所以我一气之下，干脆把greater直接当小于号用了，微软都这么干，我怕什么啊！</p>
<p>MS写代码的人啊，你rp哪里去了！记得上次就是因为STL库里面的另外一个BUG，让友元都不能访问私有成员，也让我调半天。没想到VC6打了sp6也不管用，还有这么严重的BUG。一看时间——Last Review : July 5, 2005，VC6推出都多少年了？</p>
<p>一个下午就这么过了，我恨微软！！！
<p><strong>随机文章:</strong>
<ul class="random-posts">
<li><a href="http://nonleaf.net/247.html" rel="bookmark" title="十一月 14, 2006">庆祝程序搞定</a></li>
<li><a href="http://nonleaf.net/699.html" rel="bookmark" title="九月 16, 2009">Prague</a></li>
<li><a href="http://nonleaf.net/381.html" rel="bookmark" title="十一月 13, 2007">First Offer</a></li>
<li><a href="http://nonleaf.net/123.html" rel="bookmark" title="六月 18, 2006">继续发歌</a></li>
<li><a href="http://nonleaf.net/899.html" rel="bookmark" title="五月 28, 2010">旅游</a></li>
</ul>
<p><!-- Random Posts took 20.534 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://nonleaf.net/166.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>小学期开始</title>
		<link>http://nonleaf.net/145.html</link>
		<comments>http://nonleaf.net/145.html#comments</comments>
		<pubDate>Thu, 13 Jul 2006 15:37:12 +0000</pubDate>
		<dc:creator>无叶</dc:creator>
				<category><![CDATA[那些日子]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[图形学]]></category>

		<guid isPermaLink="false">http://nonleaf.net/?p=145</guid>
		<description><![CDATA[小学期应同学请求，选了一门通选课，有点类似计算机图形学，具体说是做openGL。
老师讲课超无聊，不是念ppt就是小声叨叨，一听还就一下午，我已经准备经常撬课了......
openGL这东西可是从来没搞过啊，估计挺复杂的。这次还要做大作业，先要想个合适的题材和创意才行。
手头还在给导师打工弄实验室的论文检索系统，假期也不清闲啊......
还有就是，我恨Perl，后悔当初了，应该坚定的坚持用php的，现在就不会有module、package、hash数组引用这些让人头大的麻烦事。
随机文章:

四川地震
蜡烛、浪漫及其他
过年了
I'm Back
音乐和生活


]]></description>
			<content:encoded><![CDATA[<p>小学期应同学请求，选了一门通选课，有点类似计算机图形学，具体说是做openGL。</p>
<p>老师讲课超无聊，不是念ppt就是小声叨叨，一听还就一下午，我已经准备经常撬课了......</p>
<p>openGL这东西可是从来没搞过啊，估计挺复杂的。这次还要做大作业，先要想个合适的题材和创意才行。</p>
<p>手头还在给导师打工弄实验室的论文检索系统，假期也不清闲啊......</p>
<p>还有就是，我恨Perl，后悔当初了，应该坚定的坚持用php的，现在就不会有module、package、hash数组引用这些让人头大的麻烦事。
<p><strong>随机文章:</strong>
<ul class="random-posts">
<li><a href="http://nonleaf.net/409.html" rel="bookmark" title="二月 3, 2008">流水帐</a></li>
<li><a href="http://nonleaf.net/20.html" rel="bookmark" title="三月 17, 2006">完美</a></li>
<li><a href="http://nonleaf.net/259.html" rel="bookmark" title="十二月 3, 2006">SVM及其他</a></li>
<li><a href="http://nonleaf.net/418.html" rel="bookmark" title="二月 15, 2008">Sleepless in Seattle</a></li>
<li><a href="http://nonleaf.net/138.html" rel="bookmark" title="七月 9, 2006">归来</a></li>
</ul>
<p><!-- Random Posts took 25.093 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://nonleaf.net/145.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
