Новости > Показать отдельно
DeSmuME WIP
Ice, 10:44, 19-11-2006
Сообщается о прогрессе эмулятора DeSmuME:
- November 17, 2006 - Texture coordinate generation and flickering
I fixed quite a large amount of bugs, but the 2 most important ones, would be the ones from topic: texture coordinate generation and flickering.
The first one is quite simple, as most PC hardware, the DS supports texture coordinate generation. This is used, for example, if you want to have a pool with water, the water being a texture mapped plane, and want it to seem to wave: instead of having a large amount of geometry, just generate the texture coordinates varying to get the visual effect of waving. I had made an implemention long ago, but I always found samples which rendered wrong, and then when I fixed one of them, another was broken. The bug was rather stupid: as openGL and DS texcoord generation doesn't map 1:1, I just pre-transformed them, and then sent them to openGL. The problem, was that I was not resetting the texture matrix, and as a such, at last they got pre-transformed by me, and then transformed by openGL. Stupid bug of the year, for sure.
Flickering was a damn annoying bug, which I never got enough motivation to fix, it "just" involved retrieving the openGL framebuffer, then copying it to BG0, and send it to the layering pipeline that desmume uses. Sounds simple, in fact it's simple to implement, but the code is ugly, probably slower than it should be, and, by the fact it has to be transformed from 24bit to 16bit, it looks a bit uglier (as in the DS, :P)
And more, or less, that's all for today, let's just put the usual screenshot:

For further references on texcoords, here you can find a nice explanation.
Have fun :)
Cloud 9 (prototype)
Игры MAME
» Picostation PS1 23:20
» [GCN] GameCube — тест не- и малопопулярных игр 22:12
» [SNES] Super Mario World - нужна помощь с графикой 22:10
» Angry Video Game Nerd и другие 21:55
» Картридж PS1 для PIO порта 21:24
» Эротизм в играх 21:16
» RTHextion: новый hex-редактор для ромхакинга и переводов 21:11
» [SMD] Создание собственной многоигровки на одном чипе 20:59
» Playstation 1 без звука с Audio CD 20:11
» [3DO] Mortal Kombat II: 3DO Edition 20:04
» Пройденные игры 19:45
» Не пройденные (заброшенные) игры 18:56
» [GBA] Sigma Star Saga 17:01
» Balloon Fight - 4 players hack 14:39
