<?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>Sun, 19 Jun 2011 14:24:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</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 --退出 随机文章: Sleepless in Seattle 记得那天 答narkau关于锯齿效应 谁说情似烟火 岁月像河流 [转载]北医的两件事]]></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/899.html" rel="bookmark" title="五月 28, 2010">旅游</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/333.html" rel="bookmark" title="五月 26, 2007">考眼力</a></li>
<li><a href="http://nonleaf.net/416.html" rel="bookmark" title="二月 7, 2008">第一缕光</a></li>
<li><a href="http://nonleaf.net/45.html" rel="bookmark" title="四月 5, 2006">看了asaa的blog</a></li>
</ul>
<p><!-- Random Posts took 15.254 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 --退出 随机文章: 闭关了几天 再见时光 Would you die, for the one you love 概率问题 第一缕光]]></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/365.html" rel="bookmark" title="九月 1, 2007">How a dream came true</a></li>
<li><a href="http://nonleaf.net/909.html" rel="bookmark" title="七月 11, 2010">看图说话</a></li>
<li><a href="http://nonleaf.net/443.html" rel="bookmark" title="四月 11, 2008">概率问题</a></li>
<li><a href="http://nonleaf.net/389.html" rel="bookmark" title="十二月 23, 2007">爱情</a></li>
<li><a href="http://nonleaf.net/384.html" rel="bookmark" title="十二月 11, 2007">Busy</a></li>
</ul>
<p><!-- Random Posts took 18.144 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[逐一揭露一下电脑生成的图像的“破绽”... 上面这张是电脑生成的。仔细看，烟雾缺乏细节和层次，和黑色背静边缘模糊，想象一下烟雾虽然混乱但应该是局部浓淡分明的（就象下图）。 上面这张是真实照片。 上面这张是电脑生成的。云和海面的衔接不自然暴露了身份，但是注意左侧的金色反射阳光，非常逼真。 上面这张是真实照片，远近形状有别的云是较难形成的，何况光线透过云层的丁达尔效应如此自然。 上面这张是电脑生成的。其实，从水的效果来看堪称完美，破绽在于玻璃杯和背景过于干净了。 上面这张是真实照片，不过我也觉得拍得很假... 随机文章: 归来 没人气... MANMAnMaNManmANmAnmaNman 虎年 圣诞]]></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/702.html" rel="bookmark" title="十月 15, 2009">Gotland</a></li>
<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/442.html" rel="bookmark" title="四月 11, 2008">变</a></li>
<li><a href="http://nonleaf.net/358.html" rel="bookmark" title="八月 6, 2007">长大</a></li>
<li><a href="http://nonleaf.net/436.html" rel="bookmark" title="三月 15, 2008">[转载]理想主义者林毅夫的四次抉择</a></li>
</ul>
<p><!-- Random Posts took 20.555 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[下面哪些是真实照片，哪些完全由计算机生成？猜猜吧~ 随机文章: 感受身边的逝去 苍梧谣 购物一天 流水 再见时光]]></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/465.html" rel="bookmark" title="八月 7, 2008">大连行</a></li>
<li><a href="http://nonleaf.net/672.html" rel="bookmark" title="六月 22, 2009">北京北京</a></li>
<li><a href="http://nonleaf.net/16.html" rel="bookmark" title="三月 10, 2006">完全而快乐的“掉入”这个圈子</a></li>
<li><a href="http://nonleaf.net/233.html" rel="bookmark" title="十一月 3, 2006">3D桌面</a></li>
<li><a href="http://nonleaf.net/138.html" rel="bookmark" title="七月 9, 2006">归来</a></li>
</ul>
<p><!-- Random Posts took 17.321 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退出。 随机文章: 小便曲线公式 [转载]理想主义者林毅夫的四次抉择 也说改变 Valentine--写给他 第一面]]></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/281.html" rel="bookmark" title="二月 6, 2007">[转载]我的北京故事</a></li>
<li><a href="http://nonleaf.net/685.html" rel="bookmark" title="七月 16, 2009">他们</a></li>
<li><a href="http://nonleaf.net/210.html" rel="bookmark" title="九月 4, 2006">gmail缩略图变色初步调查</a></li>
<li><a href="http://nonleaf.net/440.html" rel="bookmark" title="四月 1, 2008">小便曲线公式</a></li>
<li><a href="http://nonleaf.net/812.html" rel="bookmark" title="一月 25, 2010">[转载]那些北大教我的事</a></li>
</ul>
<p><!-- Random Posts took 17.367 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退出即可。 随机文章: World Coded Fade To Black [转载]爱情刚才来过 [转载]新浪网友 [转载]冬天，我是不会唱歌的孩子--1]]></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/298.html" rel="bookmark" title="二月 16, 2007">也说股市</a></li>
<li><a href="http://nonleaf.net/531.html" rel="bookmark" title="八月 19, 2008">别了，北京</a></li>
<li><a href="http://nonleaf.net/335.html" rel="bookmark" title="六月 6, 2007">[转载]我们千疮百孔的爱情</a></li>
<li><a href="http://nonleaf.net/92.html" rel="bookmark" title="五月 21, 2006">Te quiero</a></li>
<li><a href="http://nonleaf.net/63.html" rel="bookmark" title="四月 28, 2006">偶尔的休息</a></li>
</ul>
<p><!-- Random Posts took 20.136 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。运行后的窗口有分辨率选择和提示说明。 随机文章: 蜡烛、浪漫及其他 motss的歌 [转载]我们千疮百孔的爱情 Merry Christmas Mr.Lawrence - FYI 父亲节]]></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/259.html" rel="bookmark" title="十二月 3, 2006">SVM及其他</a></li>
<li><a href="http://nonleaf.net/248.html" rel="bookmark" title="十一月 18, 2006">《慕霆》</a></li>
<li><a href="http://nonleaf.net/293.html" rel="bookmark" title="二月 14, 2007">Valentine--写给他</a></li>
<li><a href="http://nonleaf.net/269.html" rel="bookmark" title="一月 13, 2007">考试结束</a></li>
<li><a href="http://nonleaf.net/319.html" rel="bookmark" title="四月 25, 2007">WaterSurface v1.5 released</a></li>
</ul>
<p><!-- Random Posts took 18.628 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着色法，效果还算满意。 随机文章: 在哪里 爸爸妈妈 Vienna 距离不是爱的阻力 HKUST's interview]]></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/348.html" rel="bookmark" title="七月 18, 2007">WaterSurface 2.0 released</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/146.html" rel="bookmark" title="七月 14, 2006">调查浏览器</a></li>
<li><a href="http://nonleaf.net/967.html" rel="bookmark" title="一月 9, 2011">无题</a></li>
<li><a href="http://nonleaf.net/333.html" rel="bookmark" title="五月 26, 2007">考眼力</a></li>
</ul>
<p><!-- Random Posts took 18.473 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推出都多少年了？ 一个下午就这么过了，我恨微软！！！ 随机文章: 十月 我恨微软！ 回家 有时候 继续忙碌中]]></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/154.html" rel="bookmark" title="七月 22, 2006">突破封锁的Torpark</a></li>
<li><a href="http://nonleaf.net/672.html" rel="bookmark" title="六月 22, 2009">北京北京</a></li>
<li><a href="http://nonleaf.net/249.html" rel="bookmark" title="十一月 20, 2006">会见师傅</a></li>
<li><a href="http://nonleaf.net/989.html" rel="bookmark" title="六月 19, 2011">父亲节</a></li>
<li><a href="http://nonleaf.net/336.html" rel="bookmark" title="六月 17, 2007">两件事</a></li>
</ul>
<p><!-- Random Posts took 16.076 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数组引用这些让人头大的麻烦事。 随机文章: Photos at KTH &#038; Kista 一个DoubleNode的爱情 New Host [转载]冬天，我是不会唱歌的孩子–3 我不是天使]]></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/358.html" rel="bookmark" title="八月 6, 2007">长大</a></li>
<li><a href="http://nonleaf.net/141.html" rel="bookmark" title="七月 9, 2006">blog故障日志</a></li>
<li><a href="http://nonleaf.net/609.html" rel="bookmark" title="二月 14, 2009">网站开始测试</a></li>
<li><a href="http://nonleaf.net/240.html" rel="bookmark" title="十一月 4, 2006">西门 夕阳</a></li>
<li><a href="http://nonleaf.net/151.html" rel="bookmark" title="七月 21, 2006">blog隐私保护</a></li>
</ul>
<p><!-- Random Posts took 20.468 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://nonleaf.net/145.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

