PDA

View Full Version : Shash DeSmuMe WIP - DS Emu for Windows



wraggster
October 9th, 2007, 21:23
Shash has posted some new news about his DS Emulator for Windows:


Today, after reading Martin Korth's recently released (he hadn't updated it since ages ago) explanation on how DS hardware shadow volumes work, I attempted to implement them, as it was easier than I thought: it's not like the stencil shadows implementations that I've seen on PC, were the stencil is used to block lighting, and usually a shadow volume has to be computed per light. On the DS, it's a two step process: first, a mask step, which basically creates a mask to know where the next step should be applied, and a second step, that it's simply drawing a certain (usually black or dark) volume were the mask lets us. Light computation/s is NOT used at all :P

For example, imagine a cylinder intersecting the floor, the first step would create a mask that would resemble a circle on the floor (in fact it doesn't work exactly like that, but for the explanation sake...), and the second would paint a dark colour on that circle (and nowhere else). Why use a cylinder, and not a circle directly? Because we can't be sure of the topology/shape of the floor, neither if it'll be a floor, or animated: using this approach, we can shadow whatever is inside our cylinder, without the need of knowing the rest of the object/s in the scene.

So here's the result, and that fixes one of the last "big" bugs on Mario 64 DS. In the process I also fixed and important blending/transparency bug, which narrows even more the list of graphic bugs: only small ones left, the "waves" background on the save selection screen don't look exactly as on the DS, probably due to the way lights or normals are treated right now and the writing on Daisy's letter don't fade correctly (2D core related).

http://bp2.blogger.com/_7WaI1gEi66M/Rwrci0lv5zI/AAAAAAAAACw/eYqzEp54dFs/s320/MarioDS_shadows.png

http://shashemudev.blogspot.com/

Dragonic
October 10th, 2007, 06:37
Can I download it somewhere?? I can't see any download link.

JKKDARK
October 10th, 2007, 16:27
It's just 'work in progress' news, there's not a new version

Dragonic
October 10th, 2007, 19:21
ok... I thought that you could download it, but well,well. That's ok! BTW it looks really good.

Sonicboy 101
October 10th, 2007, 19:25
Doesn't look bad! Keep up the good work!