annotate TaskManager/Test/test_render/ChangeLog @ 177:e742053c4c87

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