Daily Archives: November 11, 2006

How to live a Happy and Rewarding Life(ZZ)

 
 
Watch Butterflies or Birds.
Be grateful for good health.
Don’t interrupt.
Take a nap on Sunday afternoon.
Never deprive someone of hope.
Be thankful for every meal.
Never be afraid to say, "I’m Sorry."
Improve your performance by improving your attitude.
Wave at children on the school bus.
Leave everything a little better than when you found it.
Leave the toilet seat in the down position.
Take time to smell the roses.
Don’t tailgate.
Keep it simple.
Enjoy good company.
Keep your promises.
Listen to your children.
Be kinder than necessary.
Wear outrageous underwear on a job interview, or to work!
Take good care of those you love.
Make it a habit to do nice things for people who never find out.
Judge your success by the degree that you enjoy peace and good health.
Be a good loser.
Be a better winner.
Be romantic.
Live so that when your children think of fairness, caring and integrity, they think of you.
Enjoy real maple syrup.
Never refuse homemade brownies.
Remember other people’s birthdays.
Sing in the shower.
Resist gossip.
Don’t nag.
Don’t expect that money will bring you happiness.
Say "THANK YOU" a lot.
Take care of your reputation; it is your most valuable asset.
Take your dog to obedience school.
Slow dance.
Don’t rain on other people’s parade.
Don’t postpone joy.
Whistle.
Call your mother.
Do more than what is expected of you.
Be someone’s hero.
Count your blessings…daily.
Enjoy a sunrise, sunset.  
Author Unknown

第一个Cg程序写好了

vertex shader和fragment shader其实基本上是用网上现成的代码,只是修改了fragment shader的部分代码。但debug这个程序时碰到好多问题,可能是因为用到了好多Cg Runtime的函数,最开始时没有显示输出,现在都应该调试好了。
 
简单总结一下:
  1. 下载的shader代码有些问题,后来通过添加error callback函数查到了错误;
  2. Cg toolkit document可能有些问题,arbvp1部分写了glstate.matrix.mvp,而实际用的时候应该是state.matrix.mvp。就这个问题让我荒废了10个小时以上,最后找到了其他人的代码才知道是这个错误了。这个document真是害死人了。(难道是我没有领会document的精神?)
  3. 单独运行编译好的prog3.exe(debug)时,出现莫名其妙的问题。在不同的机子上显示不同的颜色,发现原来是读数据出错了,但是在VS的IDE里debug运行却没有问题,不知道怎么回事?最后编译release version的代码,在各个机子上运行就正常了,无语。。。
  4. 编译时出现link error,选择multi-threaded就好了
  5. 在我的nvidia 7900GTX运行很慢,慢的难以理解;但在我的laptop的ati x1300上却运行的没一点问题,怀疑是驱动问题,明天到lab去升级一下驱动试试。。