精華區beta Flash 關於我們 聯絡資訊
最近在開發兩款用scene graph結構管理場景的framework 以前在寫ZedBox用的方法只能作到scene tree scene tree是比較特殊的scene graph 一個child只能有一個parent 之前跟Minko的作者Jean-Marc Le Roux聊過 他提到Minko裡面的scene graph是用Visitor Pattern實作的 這時我才恍然大悟 於是我接下來開發scene graph的時候也用Visitor Pattern 並且搭配matrix stack來計算每個node的global transformation 以下是我的心得(含詳細講解與code範例) http://blog.cjcat.net/2011/02/matrix-stack-and-the-visitor-pattern/ -- Blog http://blog.cjcat.net Gallery http://cjcat2266.deviantart.com ptt2 Board CJWorkshop -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.168.24.217
etrexetrex:有神快推 02/11 21:30