Dolphin, the GameCube and Wii emulator - Forums

Full Version: Dolphin Progress Report
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[Image: progressreportheader-sept2017mini.jpg]

https://dolphin-emu.org/blog/2017/10/02/...mber-2017/

The September Dolphin Progress Report is live! Feel free to discuss this month's update below.
RIP Pottergasms
Thanks for the progress report!

Here's hoping that Resident Evil 0 GBZP08 crashes at certain events - https://bugs.dolphin-emu.org/issues/10129 will be fixed soon!
Way back in the January 2017 progress report a fix for the last two games of the "Disney Trio of Destruction" was touched on. It was promised back then that "We'll have more information on the Disney Trio of Destruction in an upcoming Feature article."

...It's now been about 10 months since the progress report was written and that feature article still hasn't shown up. The way Cars 2 and Disney Infinity specifically target Dolphin's style of emulating the Wii CPU has always intrigued me whenever I read the progress report again and I've been waiting for the article to come out.

Please let me know if there's any intention of the more thorough article being written in the future. Smile
I really would like two write an article about it, but I'm not technically at that level to be able to do it. We'd need the help of some hardcore devs (not even regular devs!) to do an article on it.

There are two ways to get a full article on it. Support without a hack, or a dev takes some time to help write up a full fledged article. Or, a third way - if this doesn't give enough content, we could do an article on anti-piracy in Wii games.

SoraHjort

So I have a general idea as to why there is a outline still going on with the shadows in Star Fox Adventures. While I don't have programming knowledge on the issue, this is extremely similar to something I run into when I use a art program like GIMP, and it involves Anti-Aliasing and Masking.


So here is what I think is going on. It's masking out the unused shadows with a exact copy of those shadows, subtracting the correct shadow from the mask. Let me help you visualize it.

Here are three overlapped shapes, a Triangle, a Square and a Hexagon. While with shadows they are black, I color coded them to be easily visualized.

[Image: 12uf5HQ.png]

For the masking it selects the combined shape, and then subtracts the shape it wants, in this case the Hexagon. It then creates a mask (black and white) of the shape.

[Image: yFyItPv.png]

It then applies this mask image to the mass to remove everything but the hexagon.

[Image: 7IAIbK8.png]

However when you look closely, you can see the outline where the cutout shapes were

And this works no matter which shape we want to visual

[Image: vyMG4fV.png]

The solution I use for this is when I'm doing art is to have the mask be several pixels larger than the original. This prevents the outline issue.

The reason this occurs is simple. Let's say we have a square that is pure solid black, except along it's edge is one pixel wide border where it's 50% opacity. When you copy and apply itself as a mask on the original, the square that was solid black (100% opacity) is completely gone. However with the 50% opacity border, it gets applied with a 50% opacity mask, making the border still visible, but only at 25% opacity.

This is why in the example image above I gave the outline for the bottom of the triangle is not there, because it was at 100% since it didn't have any Anti-aliasing.

Honestly I don't think there is a problem with how the emulator is handling the shadows. This is a problem with the game itself. At lower resolutions, and without AA, this issue was not a visible issue for the developers.

The only solution for this would be if someone came up with a game specific gamehack for it to have masking be larger. Or probably more simple, have masking be a rectangle/square that excludes the wanted shadow. That way it doesn't have to take in account of the other shadows, and only focuses on the needed one. I am curious as to why that isn't what is happening. Is it something to do with LogicOp? A case where the devs over thought a solution? I don't know, since as previously stated I don't have the programming knowledge to know for sure, so I could be wrong in what's actually going on. But this is how it happens in the various art programs out there.

Though I do find it odd that when you compare the two Star Fox Adventure images, the shadow where Fox's head is is messed up in the 'before fix' image. Maybe caused by layering multiple masks being applied to each other instead of the shadow. Like if you used a free select tool, and had it cross over itself multiple times, creating negative spots within a positive area.

Billy Dior

Congrats on all the hard work paying off! Hope you folks can add this project to your résumés as it's top-notch splendor at it's finest!

masdeeper

Hello,

Wii shop is closing soon, and there are still undumped games :/ Anyone have successfully dumped a good release from Dolphin emulator?

Also, would it be possible to buy JAP games if I have a American Wii?

Cheers
[Image: dolphinprogressreportheader-oct2017mini.jpg]

https://dolphin-emu.org/blog/2017/11/03/...ober-2017/

The October Dolphin Progress Report is live! Feel free to discuss this month's update below.
Great job, JMC47 and MayImilae, as usual. Thank you for keeping these coming. Your blog posts are extremely helpful and nicely written.
I constantly refer back to old posts for information.