annotate Renderer/Engine/TODO @ 1226:636dfdc30176 draft

new API for SceneGraph
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 31 Jul 2011 10:20:46 +0900
parents 2f4d45cc4aff
children 5b024efa2429
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1225
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
1 Sat Jul 30 15:57:25 JST 2011
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
2
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
3 SceneGraph
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
4
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
5 Node の angle/scale はアホなので廃止
1226
636dfdc30176 new API for SceneGraph
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1225
diff changeset
6 matrix <- transpose matrix
636dfdc30176 new API for SceneGraph
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1225
diff changeset
7 real_matrix <- transpose matrix for normal vector
636dfdc30176 new API for SceneGraph
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1225
diff changeset
8
636dfdc30176 new API for SceneGraph
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1225
diff changeset
9 両方同じじゃないの? 片方は不要
1225
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
11 angle/scale は matrix への操作として実装する
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
12
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
13 flip
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
14
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
15 droot->sgroot->flip(); // 前フレームで描画した SceneGraph は削除
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
16 // 前フレームに作られた SceneGraph は描画用に移行
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
17 // 現フレームで新しく SceneGraph がコピーされるので初期化
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
18 camera = droot->sgroot->getCamera();
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
19 droot->sgroot->lightCalc();
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
20 root = droot->createSceneGraph();
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
21 set_cameraMan();
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
22 root->addChild(camera);
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
23 droot->setSceneData(root);
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
24
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
25 get_matrix は user 側では呼ばない
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
26
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
27 object->scale()
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
28 object->angle()
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
29 object->set_matrix()
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
30
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
31 あたり。放置してたのがいけなかったが...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
32
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
33 Sprite
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
34
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
35 Camera に固定した sprite
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
36
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
37 defSprite
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
38 putSprite
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
39
1226
636dfdc30176 new API for SceneGraph
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1225
diff changeset
40 createPolygonFromSceneGraph
636dfdc30176 new API for SceneGraph
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1225
diff changeset
41
636dfdc30176 new API for SceneGraph
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1225
diff changeset
42 親の行列から計算してない
636dfdc30176 new API for SceneGraph
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1225
diff changeset
43 既に行列は計算されている前提
636dfdc30176 new API for SceneGraph
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1225
diff changeset
44
636dfdc30176 new API for SceneGraph
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1225
diff changeset
45 ここで親子の行列のかけ算を行うべき
636dfdc30176 new API for SceneGraph
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1225
diff changeset
46
636dfdc30176 new API for SceneGraph
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1225
diff changeset
47 なんだけど、互換性はどーする? (そんなのいるの?)
636dfdc30176 new API for SceneGraph
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1225
diff changeset
48
636dfdc30176 new API for SceneGraph
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1225
diff changeset
49 SceneGraphRoot::setSceneData(SceneGraphPtr sg)
636dfdc30176 new API for SceneGraph
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1225
diff changeset
50
636dfdc30176 new API for SceneGraph
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1225
diff changeset
51 で計算するか。いや、計算 method を別に用意するか。
1225
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 966
diff changeset
52
539
3bc98f6d31ff Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
53 Tue Sep 22 21:32:17 JST 2009
3bc98f6d31ff Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
54
3bc98f6d31ff Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
55 * SceneGraph の中の Property をlenear array する :Done
3bc98f6d31ff Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
56 * ユーザ入力を spe の global allocate に書く (SWITCHで) :hiroki
3bc98f6d31ff Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
57 * spe 側で lenear array を move_task で update する :kazz
3bc98f6d31ff Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
58 * option (spe 側で衝突判定するデータを gloval alloc する) :TODO
3bc98f6d31ff Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
59 * spe 側で lenear array を collision 側で update する :TODO
965
e0427cdee770 removing user task from Renderer Engine
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 539
diff changeset
60 * linear array から SceneGraph を再構築する :yutaka
539
3bc98f6d31ff Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
61 * rendering_task と task_next で待ち合わせる :kaito
3bc98f6d31ff Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
62 * ダブルバッファリングされている Property、SceneGraph を入れ替える :kaito
965
e0427cdee770 removing user task from Renderer Engine
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 539
diff changeset
63 * rendering_task と move_task の起動 :kaito