ufoz
Joined: 10 Nov 2005 Posts: 86 Location: Tokyo
|
Posted: Sun Sep 30, 2007 2:02 pm Post subject: Found a bug in the GU samples |
|
|
...stemming from the confusion of which loop index belongs to which kind of subdivision when generating vertices for a torus mesh.
In psp/sdk/samples/gu/common/geometry.c, lines 14 and 15 are
| Code: | float s = i + 0.5f;
float t = j; |
but i and j should be switched to
| Code: | float s = j + 0.5f;
float t = i; |
plus the same in most samples that have their own copy of the torus code: beginobject.c, celshading.c, rendertarget.c, and the cylinder gen code in morphskin.c and skinning.c.
(seems to be fixed already in timing.c, sprite.c and signals.c)
The problem isn't actually visible in any of the current samples, though, because none of them use different values for the number of slices and rows... But still... :) |
|