This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9380 - spacerocks shows funny rocks
Attached to Project:
Rockbox
Opened by Frank Gevaerts (fg) - Monday, 08 September 2008, 21:46 GMT+2
Last edited by Teruaki Kawashima (teru) - Saturday, 12 December 2009, 15:11 GMT+2
Opened by Frank Gevaerts (fg) - Monday, 08 September 2008, 21:46 GMT+2
Last edited by Teruaki Kawashima (teru) - Saturday, 12 December 2009, 15:11 GMT+2
|
DetailsSometimes the rocks shown have wrong edges (see screenshots). The lines jump between different points while rotating.
I've seen this on H100, H300 and X5 |
This task depends upon
Closed by Teruaki Kawashima (teru)
Saturday, 12 December 2009, 15:11 GMT+2
Reason for closing: Fixed
Additional comments about closing: Fixed in r23944.
Saturday, 12 December 2009, 15:11 GMT+2
Reason for closing: Fixed
Additional comments about closing: Fixed in r23944.
I tried letting it run in the h300 sim for a long while too and observed an interesting effect, some of the rocks keep increasing in size and get so big they are mostly outside the display all the time.
This happens due to the way the rock's vertices are being rotated. There is an accumulating error which affects the shape of the rocks.
The reason is due to the way the vertices are being sined and cosined, by being multiplied with a constant of a four digits accuracy.
The error is not being reset at all, even if the asteroid completes a full round...
See code at:
http://svn.rockbox.org/viewvc.cgi/trunk/apps/plugins/spacerocks.c?view=markup
I'm developing a new game, partly based on spacerocks, and I fixed this error in my code. When I find the time, I'll fix spacerocks either.
If anyone is interesting, I can attach my draft code here.
Btw I reproduced this on my Gigabeast so the title was incorrect, and will be changed soon.
Also I noted that the rocks first got bigger and then turned into funny shapes so it seems related.