So when is fog getting added?
So when is fog getting added?
Just wondering.
Re: So when is fog getting added?
I had some code a while ago, but it's not optimized and it needs some more changes to other parts of the renderer to really handle things correctly. It's hard even finding a lot of parts in games that use it, and it can be pretty subtle. For example, Luigi's Mansion in Mario Kart uses it to fade the background towards a dark blue.
What are you thinking of that uses it? It's possible that it actually doesn't, and missing/bad graphics could be due to some other bug.
What are you thinking of that uses it? It's possible that it actually doesn't, and missing/bad graphics could be due to some other bug.
Re: So when is fog getting added?
Well I know in Pokemon Platinum and Pokemon Black 2 there are Gyms that have a pitch black effect (one of them you're given a flashlight, the other one has lights that turn on when you approach their platforms) but instead everything is revealed so there's nothing hidden.
Re: So when is fog getting added?
Forgot to add it also affects areas that require the moves "Flash" and "Defog"
Re: So when is fog getting added?
If you don't mind uploading savestates for some or all of these things I can check if they're really impacted by fog or if there's something else wrong.
Re: So when is fog getting added?
I have an ingame save for pokemon soul silver here that is at the place that demonstrates this fog error. I would add a screenshot too but its too big for the file size limit.
- Attachments
-
- Pokemon Soulsilver.dsv.zip
- (34.66 KiB) Downloaded 778 times
Devices running Android:
- Samsung Galaxy Note 4 (CM12.1, overclocked, undervolted)
- Asus Nexus 7 2013 (Stock Marshmallow...to play Pokemon GO on...)
- Tenfifteen QW09 SmartWatch (Kitkat)
- Fujitsu Lifebook T4410 Touchscreen Laptop (Remix OS 3.0)
- Samsung Galaxy Note 4 (CM12.1, overclocked, undervolted)
- Asus Nexus 7 2013 (Stock Marshmallow...to play Pokemon GO on...)
- Tenfifteen QW09 SmartWatch (Kitkat)
- Fujitsu Lifebook T4410 Touchscreen Laptop (Remix OS 3.0)
Re: So when is fog getting added?
Note the black circles on the ground. These are the areas that should be lit up, while everywhere else should be dark.
Re: So when is fog getting added?
Thanks, both of you.Intymyt wrote:Note the black circles on the ground. These are the areas that should be lit up, while everywhere else should be dark.
I've looked into this and confirmed that the visible areas are indeed missing due to unemulated fog. If I disable fogging in desmume I get the same artifact. However, it's not using the actual fogging process that's used here, but the DS's fog masking ability. The game is probably initializing the depth buffer with the fog bit in a way that disables some of the rendering. Unfortunately, right now even my slow code doesn't actually emulate the per-pixel fog enable bit, so I have to work that in somehow before I can get this functionality.
I'll try to get to this in the near future.