-
-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blackened Texture Issues and Documentation #365
Comments
The same issue that affect otogi 1, also affect the first level of Magatama, with the main character and most of the texture being black or really bright yellow depending of the camera angle. It most likely stems from the same issue but I'm not sure. |
After more testing I have follow-up info about these and other possible issues. First off, stage textures. I'm going to go from least broken to most, with relevant screen shots and videos as needed. In stages 2-6, 8-11, and 13-27 I couldn't find any missing/blackened textures. Stage 7 (Fire Mountain) fails to properly load or display some textures but part of the level is legible. To be more specific, the enemies, wooden arches, insides of caves, torch sconces, and some patches of lava are blackened. It should be noted that the flames from the torches work, and that on other levels spider enemies display properly. And here is a video showing how this level should look... Stages 1 and 12 are completely broken, with near everything except flames and some particle effects being blackened. There is a stage 1 (A Peaceful Grave) screen shot in the original documentation above, but here is a video of how the level should look... Stage 12 (Inner Sanctum) is no better and has less torches, making it almost impossible to tell where you are at the beginning of it. And here is a video of the level... In the course of testing the stages I also came upon some other errors, the first of which I think is related to this blackened texture issue. The stage select (not cleared stage select) is almost completely black. The first and third videos above show the proper stage select screen that should be seen at the beginning. The next issue I found was a "see-through" error on some platforms, mostly bridges and the stone platform in stage 22 (The Frozen Lake). Here is a video with the stage 22 platform... Some water textures seem to be reflecting certain lights oddly? Would have to grab a video to show this properly. The lower skybox(?) on stage 20 (The Golden Sea) isn't displaying properly (blackened texture error?). Stage 20 video... And finally, the upper skybox in the final stage (27, Full Moon Rising) is broken. Here's the video... That is everything I've been able to find regarding the missing/blackened textures, as well as other issues. |
Found a stage in Otogi 1 with the same blackened texture issue, stage 10 The Green Cave. |
Stage 19 (Golem's Ravine) of Otogi 1, which reuses the map from stage stage 10 has the blackened textures, as well as stages 22 (Lair of Fire) and 25 (Spirit Tower). On all stages mentioned very little is visible, usually projectiles and particle effects and nothing else. |
Thanks to user JasonJaystar we now know that Galleon AT-004 [41540004] has the blackened textures on some npcs. https://cdn.discordapp.com/attachments/680221390359888154/862136700560867328/unknown.png |
This also affects Trigger man |
Assuming the constant values appearing in CXBXR are correct, the Otogi black character issue appears to be mis-handling of NaN. " if (!(oFog.x < 0 || oFog.x > 0 || oFog.x == 0)) { oFog.x = 1; }" |
If this is fog-component related it might be worth re-testing with PR #677 to see if there's an effect. Testing Otogi 1 on an M1 mac w/ a build at 6f507c8 I can't immediately repro the issue (character model renders fine in the first stage and in the 3rd where I happen to have an old save), so I can't confirm whether 677 does anything or whether this bug is GPUI/driver specific. |
The tests from @NZJenkins show that there are some additional nuances to the way nv2a works as compared to my GTX1070.
Assuming the test is correct, very small +/- fractional values also act like 0 As pointed out in #365 (comment), -NaN and NaN both seem to be converted to 1 anytime they are involved in a calculation, except in cases where they're multiplied by zero or something practically zero. Raw |
There are multiple reasons why textures might appear blackened, and some of them were fixed recently. |
@mborgerson who tested lakemaster and trigger man Johngodgames? Also, I forgot to mention Drake of the 99 Dragons had this issue back in 2020 but it seemly fixed as someone retested it today. |
You also did mention Magatama |
Has this still not been merged? Issue is still present in the latest release? |
I swear I tested Otogi on a previous official release where this issue was fixed, but on the latest version (0.7.71) the issue is preset. |
Yes, as far as I know test branches with a fix for this have been made and tested, but nothing has been merged or added into the master version yet. Nothing to do but wait or grab a test branch for now. |
Hope this gets merged then asap with master, want my perfected otogi2 gameplay |
The enthusiasm is nice, but please keep the discussion technical and substantive. You can show support for something in the form of a thumbs up reaction on a comment, and chat generally on the Discord server. |
I've been tinkering with this - machine details:
My In Otogi 1, the character is all-black in-game. Applying @NZJenkins' NaN check doesn't work on my hardware, but modifying it to the following does: diff --git a/hw/xbox/nv2a/vsh.c b/hw/xbox/nv2a/vsh.c
index 87318419c9..c3ad53411e 100644
--- a/hw/xbox/nv2a/vsh.c
+++ b/hw/xbox/nv2a/vsh.c
@@ -859,6 +859,7 @@ void vsh_translate(uint16_t version,
* can't multiply by W because it could be meaningless here */
" oPos.w = 1.0;\n"
" }\n"
+ " if (oFog.x != oFog.x) { oFog.x = 1; }\n"
);
} This is on the |
Did this fix the texture issues in both O1 and O2? I tried applying this when compiling my own and it didn’t seem to take. Curious if your compiled exe is sharable. |
I don't have a copy of O2 to test with at the moment, but it fixes O1's texture issues on my machine - played up to the last few stages and had no further problems. What OS / GPU / etc are you running? Sharing a binary is likely to confuse the issue unless you're on a comparable machine, so if pulling A good way to test is by overwriting the contents of
If you add that in and also test with |
Yup ....ditto would be nice to have this finally fixed |
Win 11, 11900K, 3080 Ti. |
Tested this today on Otogi1 with help from Kohryu. I had less visual issues than most people in the past, but this fix did resolve the entire stage being pitch black on level 10 & 19. W10, 3950x, 3080. |
@mborgerson Have the fix for the black texture for both Otogi been commited in the main branch? |
Black textures still present in both Otogi 1 and 2 as of 12/12/2023 |
The Black textures still present for Otogi 1 and 2 on 0.7.122 But I manage to apply the patch @Shfty wrote (just one line !), re-compiled an exe for Windows, and removing the cache in /user/AppData/Roaming/xemu/xemu/ I do not really understand why this little fix isn't merge to master, since the time it is known. |
@PukeGX Can you send me a copy of that compiled exe? I've attempted compiling my own before and wasn't exactly successful, but I'm eager to thoroughly test this build out, as well as try to examine the audio issues. I'm "realguilty" on Discord if you're willing to look me up! |
Can you please send me a copy of this compiled exe? Thanks! |
I have noticed for Otogi 1,2 status in compatibility changed to "playable" recently. While it may be technically correct as it goes beyond "start", "playable" status is also misleading because its not really playable on default build due to unresolved black textures which are big deal. This positively inflate compatibility pool with false premise. I would suggest to either deal with this long standing issue for once, or revert compatibility status of all games where it matter. |
If we're assuming the "Playable" tag's definition is definitive: "This title is playable, with minor issues," then I agree with @Romano44. Looking at the test details for Otogi 1, the poster says:
And for Otogi 2:
I'm not sure if there is a mathematical guideline for determining a game's "playability rating," but in this case there seems to be an intuitive gap between a game "functioning without crashing" and a game being "playable." Occasional framerate drops alone might be a "minor issue". But we can only "see" the main character in the same way that we "see" black holes, so I would say the games are still effectively broken. |
Furious Karting - Blackened Textures around edges. Video. Images. |
Dear developer brothers, please I want all the weapons and items for the game. otogi 1+2 trainer .exe |
Title Information
Titles: Otogi FS-002 [46530002]
https://xemu.app/titles/46530002/
Titles: Otogi: Hyakki Toubatsu Emaki FS-004 [46530004]
https://xemu.app/titles/46530004/
Bug Description
Otogi 1: The only major issue I have encountered for the first game is a failure to load the character/weapon textures properly. Instead Raikoh has some sort of shadow texture over their model.
Steps to reproduce this issue:
https://cdn.discordapp.com/attachments/680221390359888154/856388676602298368/Otogi_1_1.png
https://cdn.discordapp.com/attachments/680221390359888154/856388690561204244/Otogi_1_2.png
Otogi 2: The second game has more issues, starting with major slowdown in nearly every part of the game. The menus, saving, loading, all of it is locked at 5 fps. The only thing unaffected is the stage gameplay, which has normal slowdown similar to the first game.
The other major issue is some stages not loading environment textures properly, resulting in the entire level being covered in shadow textures. This can be observed in the starting stage...
https://cdn.discordapp.com/attachments/680221390359888154/856389461860810762/Otogi_2_1.png
However, some stages load properly...
https://cdn.discordapp.com/attachments/680221390359888154/856389890529558548/Otogi_2_2.png
So I will be doing further testing to see which stages load and which don't to find out if there is any pattern. Also note that the character/weapon texture load fail from the first game has persisted.
Steps to reproduce these issues:
Expected Behavior
For Otogi 1, Raikoh and his weapon(s) should obviously have their textures.
For Otogi 2, there shouldn't be any slowdown in any of the menus. The menus in Otogi 1 worked fine, and I am fairly certain the games use the same engine, so I have no idea what could have been changed between games to be causing this problem. As for the missing textures, obviously the stages should all have their textures. I am not sure why some stages work and others don't, and plan to investigate further.
Version
System Information
The text was updated successfully, but these errors were encountered: