annotate TaskManager/Test/test_render/ChangeLog @ 178:4efb799779d7 draft

add makeTapestry in SceneGraph.cpp
author gongo@localhost.localdomain
date Tue, 16 Dec 2008 17:45:28 +0900
parents deb02b0e6291
children 6e62f8cfbfe3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
176
gongo@localhost.localdomain
parents: 175
diff changeset
1 2008-12-16 Wataru MIYAGUNI <gongo@cr.ie.u-ryukyu.ac.jp>
gongo@localhost.localdomain
parents: 175
diff changeset
2
178
4efb799779d7 add makeTapestry in SceneGraph.cpp
gongo@localhost.localdomain
parents: 177
diff changeset
3 * SceneGraph.cpp (makeTapestry): add
4efb799779d7 add makeTapestry in SceneGraph.cpp
gongo@localhost.localdomain
parents: 177
diff changeset
4 SceneGraph::get_data にあったけど、ごちゃごちゃしてたので
4efb799779d7 add makeTapestry in SceneGraph.cpp
gongo@localhost.localdomain
parents: 177
diff changeset
5 関数として生成
4efb799779d7 add makeTapestry in SceneGraph.cpp
gongo@localhost.localdomain
parents: 177
diff changeset
6
177
deb02b0e6291 zRow の生成、初期化の変更
gongo@localhost.localdomain
parents: 176
diff changeset
7 * viewer.cpp (Viewer::run_init, Viewer::run_draw): fix
deb02b0e6291 zRow の生成、初期化の変更
gongo@localhost.localdomain
parents: 176
diff changeset
8 * spe/DrawSpan.cpp (DrawSpan::zRow_init): delete
deb02b0e6291 zRow の生成、初期化の変更
gongo@localhost.localdomain
parents: 176
diff changeset
9
deb02b0e6291 zRow の生成、初期化の変更
gongo@localhost.localdomain
parents: 176
diff changeset
10 Z Buffering に使う zRow は DrawSpan で毎回生成、初期化するのではなく、
deb02b0e6291 zRow の生成、初期化の変更
gongo@localhost.localdomain
parents: 176
diff changeset
11 PPE で生成、初期化を行っておき、DrawSpan に add_inData で
deb02b0e6291 zRow の生成、初期化の変更
gongo@localhost.localdomain
parents: 176
diff changeset
12 DMA で渡すという方法に変更。速度的にはほんのちょっとしか(ry
deb02b0e6291 zRow の生成、初期化の変更
gongo@localhost.localdomain
parents: 176
diff changeset
13
176
gongo@localhost.localdomain
parents: 175
diff changeset
14 * spe/CreateSpan.cpp (CreateSpan::half_triangle): fix
gongo@localhost.localdomain
parents: 175
diff changeset
15 getScale に渡す tex_width,tex_height を修正。
gongo@localhost.localdomain
parents: 175
diff changeset
16 比較にそのまま tex_width, tex_height を使うと、
gongo@localhost.localdomain
parents: 175
diff changeset
17 Span が持つテクスチャが全体の一部分だったとしても
gongo@localhost.localdomain
parents: 175
diff changeset
18 比較結果で縮小が行われてしまうため。
gongo@localhost.localdomain
parents: 175
diff changeset
19
gongo@localhost.localdomain
parents: 175
diff changeset
20 - 例
gongo@localhost.localdomain
parents: 175
diff changeset
21 span->length_x = 32;
gongo@localhost.localdomain
parents: 175
diff changeset
22 tex_width = 128;
gongo@localhost.localdomain
parents: 175
diff changeset
23 tex_x_len = (span->tex_x2 - span->tex_x1) = (0.5 - 0.3) = 0.2;
gongo@localhost.localdomain
parents: 175
diff changeset
24
gongo@localhost.localdomain
parents: 175
diff changeset
25 今までの処理だと、span->length_x < tex_width の結果により
gongo@localhost.localdomain
parents: 175
diff changeset
26 縮小されたテクスチャを使うことになる。
gongo@localhost.localdomain
parents: 175
diff changeset
27 しかし、実際に Span が使う Texture の長さは
gongo@localhost.localdomain
parents: 175
diff changeset
28
gongo@localhost.localdomain
parents: 175
diff changeset
29 tex_width*tex_x_len = 24
gongo@localhost.localdomain
parents: 175
diff changeset
30
gongo@localhost.localdomain
parents: 175
diff changeset
31 なので、縮小を行う必要は無い
gongo@localhost.localdomain
parents: 175
diff changeset
32
gongo@localhost.localdomain
parents: 175
diff changeset
33
175
1268e1a9a7db add file "ChangeLog"
gongo@localhost.localdomain
parents:
diff changeset
34 2008-12-12 Wataru MIYAGUNI <gongo@cr.ie.u-ryukyu.ac.jp>
1268e1a9a7db add file "ChangeLog"
gongo@localhost.localdomain
parents:
diff changeset
35
176
gongo@localhost.localdomain
parents: 175
diff changeset
36 * SceneGraph.cpp (SceneGraph::get_data): Todo
gongo@localhost.localdomain
parents: 175
diff changeset
37 テクスチャの縦横が 8 の倍数でなければ弾く処理を入れる。
gongo@localhost.localdomain
parents: 175
diff changeset
38
175
1268e1a9a7db add file "ChangeLog"
gongo@localhost.localdomain
parents:
diff changeset
39 * spe/DrawSpan.cpp (DrawSpan::run): Todo
1268e1a9a7db add file "ChangeLog"
gongo@localhost.localdomain
parents:
diff changeset
40 テクスチャの座標計算と、そこから取得できる Tile の DMA を
1268e1a9a7db add file "ChangeLog"
gongo@localhost.localdomain
parents:
diff changeset
41 一スレッドで処理しているのでそれを分けないといけない
1268e1a9a7db add file "ChangeLog"
gongo@localhost.localdomain
parents:
diff changeset
42
1268e1a9a7db add file "ChangeLog"
gongo@localhost.localdomain
parents:
diff changeset
43 * spe/CreateSpan.cpp (getTapestry): Add
1268e1a9a7db add file "ChangeLog"
gongo@localhost.localdomain
parents:
diff changeset
44 (getScale): Add
1268e1a9a7db add file "ChangeLog"
gongo@localhost.localdomain
parents:
diff changeset
45
1268e1a9a7db add file "ChangeLog"
gongo@localhost.localdomain
parents:
diff changeset
46 * memo: 雑記
1268e1a9a7db add file "ChangeLog"
gongo@localhost.localdomain
parents:
diff changeset
47 ようやくこいつに ChangeLog を加えました。
1268e1a9a7db add file "ChangeLog"
gongo@localhost.localdomain
parents:
diff changeset
48 なんか emacs で「C-x 4 a」とかすると、ChangeLog の entry が
1268e1a9a7db add file "ChangeLog"
gongo@localhost.localdomain
parents:
diff changeset
49 加えれられるんだけど、上の階層のを探しにいくので、TaskManager/ のに
1268e1a9a7db add file "ChangeLog"
gongo@localhost.localdomain
parents:
diff changeset
50 加えようとしてたわけさ。まあそういう仕様なんだけど。
1268e1a9a7db add file "ChangeLog"
gongo@localhost.localdomain
parents:
diff changeset
51 で、だからといって不可能ってわけじゃないから書けばよかったんだが。
1268e1a9a7db add file "ChangeLog"
gongo@localhost.localdomain
parents:
diff changeset
52
1268e1a9a7db add file "ChangeLog"
gongo@localhost.localdomain
parents:
diff changeset
53 要するに、これからはちゃんと書いていこうと思います。