Sphere-Rect
There are two steps to detect the collision of sphere and rectangle:
1. Find the point within rectangle which is the nearest point to sphere
2. Check the nearest point is in sphere or not. If it is in sphere, they collide each other.
To find the nearest point:

lijy 發表在 痞客邦 留言(0) 人氣()

將soft particle的功能加入原有的系統之後,所做出來的煙霧效果


 

lijy 發表在 痞客邦 留言(0) 人氣()

最近,用particle system 做出了煙霧的效果,請大家多指教


 

lijy 發表在 痞客邦 留言(0) 人氣()

First, We define a nested property class, which is named "Location". And it contains two properties: x, y   ref class Location
{
public:
    float       fX;
    float       fY;

lijy 發表在 痞客邦 留言(0) 人氣()

Model Space x, y, z R To next space: Transformation Matrix World Space

lijy 發表在 痞客邦 留言(0) 人氣()

http://www.vterrain.org/Atmosphere/Clouds/
http://ofb.net/~niniane/clouds/
http://www.markmark.net/clouds/

lijy 發表在 痞客邦 留言(0) 人氣()

This system consists of 7 functions:
  • BeginSave(int iVersion);
  • // Saves current version
  • EndSave(void);
  • // End of a saving process
  • Save(Value);
  • // Save one value
  • BeginLoad(void);
  • // Loads file version
  • EndLoad(void);
  • // End of a loading process
  • Load(int iVersion, Value);
  • // Compares the versions in file and code, then loads value
  • Skip(int iStartVer, int iEndVer, Value);
  • // Skips one value in file

    lijy 發表在 痞客邦 留言(0) 人氣()

     
    What is Quaternion

    Invented by Sir William Rowan Hamilton as an extension to the complex numbers in 1843
    Introduced to the field of computer graphics by Shoemake in 1985
    q = (x, y, z, w)

    lijy 發表在 痞客邦 留言(0) 人氣()

    最近想用window form替之前的寫好的一些library寫個漂亮的工具介面,沒想到專案剛建起來一compile就出現了大問題:_CrtIsValidHeapPointer assert fail,
    原以為是之前的lib沒考慮周全,所以花了一些時間從頭到尾檢查一遍,並嘗試其他方式實作,結果還是出現這個assert!!
    最後求助G大神之後才知道這又是M$在背後胡搞之後,卻沒有盡到告知大眾的義務,使得程式大眾白白浪費許多的時間在解決這些鳥問題!Damn it!
    Form Application內定的程式進入點(Entry Point)並沒有包含CRT(C Run Time)Startup Routine
    所以global objects(variables), static objects(variables), class static objects(variables)的初始化都沒有被正確執行

    lijy 發表在 痞客邦 留言(0) 人氣()

    1
    Blog Stats
    ⚠️

    成人內容提醒

    本部落格內容僅限年滿十八歲者瀏覽。
    若您未滿十八歲,請立即離開。

    已滿十八歲者,亦請勿將內容提供給未成年人士。