<?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>Wed, 15 Feb 2012 15:23:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<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 --退出 随机文章: 写了个比较满意的程序 一去不返 [转载]冬天，我是不会唱歌的孩子–3 Pan's Labyrinth 十月]]></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/245.html" rel="bookmark" title="十一月 12, 2006">再看《孽子》</a></li>
<li><a href="http://nonleaf.net/35.html" rel="bookmark" title="三月 28, 2006">谁说情似烟火 岁月像河流</a></li>
<li><a href="http://nonleaf.net/465.html" rel="bookmark" title="八月 7, 2008">大连行</a></li>
<li><a href="http://nonleaf.net/156.html" rel="bookmark" title="七月 23, 2006">正则表达式没有AND逻辑</a></li>
<li><a href="http://nonleaf.net/403.html" rel="bookmark" title="一月 14, 2008">考试结束</a></li>
</ul>
<p><!-- Random Posts took 17.833 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 --退出 随机文章: 期末加油 Calm down 915T出分 我恨微软！ 回家]]></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/142.html" rel="bookmark" title="七月 11, 2006">menztalk的进版文字</a></li>
<li><a href="http://nonleaf.net/321.html" rel="bookmark" title="四月 30, 2007">[转载]忘川河上的怨与恋</a></li>
<li><a href="http://nonleaf.net/146.html" rel="bookmark" title="七月 14, 2006">调查浏览器</a></li>
<li><a href="http://nonleaf.net/94.html" rel="bookmark" title="五月 22, 2006">蜡烛、浪漫及其他</a></li>
<li><a href="http://nonleaf.net/180.html" rel="bookmark" title="八月 8, 2006">回家了</a></li>
</ul>
<p><!-- Random Posts took 12.654 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[逐一揭露一下电脑生成的图像的“破绽”... 上面这张是电脑生成的。仔细看，烟雾缺乏细节和层次，和黑色背静边缘模糊，想象一下烟雾虽然混乱但应该是局部浓淡分明的（就象下图）。 上面这张是真实照片。 上面这张是电脑生成的。云和海面的衔接不自然暴露了身份，但是注意左侧的金色反射阳光，非常逼真。 上面这张是真实照片，远近形状有别的云是较难形成的，何况光线透过云层的丁达尔效应如此自然。 上面这张是电脑生成的。其实，从水的效果来看堪称完美，破绽在于玻璃杯和背景过于干净了。 上面这张是真实照片，不过我也觉得拍得很假... 随机文章: 看了asaa的blog Calm down Never Ever 归来 旅游]]></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/84.html" rel="bookmark" title="五月 17, 2006">[转载]冬天，我是不会唱歌的孩子–2</a></li>
<li><a href="http://nonleaf.net/721.html" rel="bookmark" title="十一月 4, 2009">[转载]对央视经济半小时关于北大医院新闻的感想</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/382.html" rel="bookmark" title="十一月 23, 2007">Feeling of preparing materials</a></li>
<li><a href="http://nonleaf.net/68.html" rel="bookmark" title="五月 9, 2006">爸爸妈妈</a></li>
</ul>
<p><!-- Random Posts took 15.357 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[下面哪些是真实照片，哪些完全由计算机生成？猜猜吧~ 随机文章: 父亲 选择 motss的歌 The Godfather 去陪姥姥]]></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/97.html" rel="bookmark" title="五月 24, 2006">看帖，胡感乱慨</a></li>
<li><a href="http://nonleaf.net/69.html" rel="bookmark" title="五月 9, 2006">感受身边的逝去</a></li>
<li><a href="http://nonleaf.net/352.html" rel="bookmark" title="七月 30, 2007">流水</a></li>
<li><a href="http://nonleaf.net/110.html" rel="bookmark" title="六月 10, 2006">后天考数理统计</a></li>
<li><a href="http://nonleaf.net/317.html" rel="bookmark" title="四月 18, 2007">平铺直叙也可以很美</a></li>
</ul>
<p><!-- Random Posts took 12.429 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退出。 随机文章: 昨天去听十佳了 小便曲线公式 AMD+ATi=? 终于搞定机票 突破封锁的Torpark]]></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/442.html" rel="bookmark" title="四月 11, 2008">变</a></li>
<li><a href="http://nonleaf.net/420.html" rel="bookmark" title="二月 21, 2008">blog搬家</a></li>
<li><a href="http://nonleaf.net/478.html" rel="bookmark" title="八月 7, 2008">当我们长大，又老去</a></li>
<li><a href="http://nonleaf.net/373.html" rel="bookmark" title="十月 16, 2007">First En-Post</a></li>
<li><a href="http://nonleaf.net/369.html" rel="bookmark" title="九月 25, 2007">中秋</a></li>
</ul>
<p><!-- Random Posts took 14.672 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退出即可。 随机文章: [转载]拆除三角地 gmail缩略图变色初步调查 [转载]张看：我不看这个世界已12年 父亲 一天]]></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/461.html" rel="bookmark" title="七月 13, 2008">7-11</a></li>
<li><a href="http://nonleaf.net/262.html" rel="bookmark" title="十二月 15, 2006">[转载]北医的两件事</a></li>
<li><a href="http://nonleaf.net/465.html" rel="bookmark" title="八月 7, 2008">大连行</a></li>
<li><a href="http://nonleaf.net/437.html" rel="bookmark" title="三月 17, 2008">Never Ever</a></li>
<li><a href="http://nonleaf.net/875.html" rel="bookmark" title="四月 8, 2010">[转载]散文一篇</a></li>
</ul>
<p><!-- Random Posts took 14.898 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。运行后的窗口有分辨率选择和提示说明。 随机文章: How a dream came true 花开花落 云卷云舒 Fade To Black 7-11 第一面]]></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/39.html" rel="bookmark" title="四月 3, 2006">我不知道怎么回答</a></li>
<li><a href="http://nonleaf.net/119.html" rel="bookmark" title="六月 15, 2006">小裤裤调查~</a></li>
<li><a href="http://nonleaf.net/374.html" rel="bookmark" title="十月 24, 2007">BT Porposal</a></li>
<li><a href="http://nonleaf.net/465.html" rel="bookmark" title="八月 7, 2008">大连行</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 17.250 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着色法，效果还算满意。 随机文章: 生活在那端 完全而快乐的“掉入”这个圈子 21岁 没人气... [转载]想起那些往事]]></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/36.html" rel="bookmark" title="三月 28, 2006">距离不是爱的阻力</a></li>
<li><a href="http://nonleaf.net/356.html" rel="bookmark" title="八月 3, 2007">Coolnicsky&#038;无叶--朋友</a></li>
<li><a href="http://nonleaf.net/180.html" rel="bookmark" title="八月 8, 2006">回家了</a></li>
<li><a href="http://nonleaf.net/32.html" rel="bookmark" title="三月 24, 2006">for the one you love</a></li>
<li><a href="http://nonleaf.net/382.html" rel="bookmark" title="十一月 23, 2007">Feeling of preparing materials</a></li>
</ul>
<p><!-- Random Posts took 14.614 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); &#8230; <a href="http://nonleaf.net/166.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></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/130.html" rel="bookmark" title="六月 27, 2006">解冻王菲</a></li>
<li><a href="http://nonleaf.net/63.html" rel="bookmark" title="四月 28, 2006">偶尔的休息</a></li>
<li><a href="http://nonleaf.net/928.html" rel="bookmark" title="九月 1, 2010">怎样的承诺和责任</a></li>
<li><a href="http://nonleaf.net/406.html" rel="bookmark" title="一月 27, 2008">Where's the destination?</a></li>
<li><a href="http://nonleaf.net/392.html" rel="bookmark" title="十二月 29, 2007">游泳</a></li>
</ul>
<p><!-- Random Posts took 13.675 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数组引用这些让人头大的麻烦事。 随机文章: 看超人归来 First En-Post Calm down Busy 笑话一则]]></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/302.html" rel="bookmark" title="二月 23, 2007">The Godfather</a></li>
<li><a href="http://nonleaf.net/350.html" rel="bookmark" title="七月 18, 2007">Smoke3D 1.0 released</a></li>
<li><a href="http://nonleaf.net/436.html" rel="bookmark" title="三月 15, 2008">[转载]理想主义者林毅夫的四次抉择</a></li>
<li><a href="http://nonleaf.net/376.html" rel="bookmark" title="十一月 2, 2007">[转载]拆除三角地</a></li>
<li><a href="http://nonleaf.net/459.html" rel="bookmark" title="七月 9, 2008">[转载]我的爱就是一片云</a></li>
</ul>
<p><!-- Random Posts took 14.137 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://nonleaf.net/145.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

