Новости > Показать отдельно
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 :)
Dynamite Duke
Игры Sega Mega Drive / Genesis
» Picostation PS1 01:39
» Раздача игр, обмен и просто халява 01:35
» Во что сейчас играем? 01:22
» [Продано] геймпады Logitech F310 01:05
» Проблемы с Twin Sharp Famicom 00:50
» RGB_amp mod 00:35
» Счетчик FPS в эмуляторах 00:29
» Кино 23:26
» Эмуляция "Тетриса" 22:48
» NESRGB AV Famicom - цифровой шум 22:41
» Совместное прохождение игр c участием Ниндзя 22:17
» PCem, 86box и другие эмуляторы старого PC-железа 21:51
» Первая игра, приставка 21:04
