annotate TaskManager/Test/test_render/ChangeLog @ 176:08e2bb36639b

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