Dreamcast Widescreen Hacks

Discussion in 'Sega Dreamcast Development and Research' started by S4pph4rad, Oct 20, 2015.

  1. -=FamilyGuy=-

    -=FamilyGuy=- Site Supporter 2049

    Joined:
    Mar 3, 2007
    Messages:
    3,034
    Likes Received:
    893
    @Espirral, That's some serious nice stuff! Although why is the sky color slightly different? Weather?

    This plus yzb's toggle via controller would be PERFECT, no need for an HD version!

    It would be trivial to keep the same file ordering as him, we could even patch the cdi directly.
     
    Last edited: Dec 19, 2015
    Anthony817 and TerdFerguson like this.
  2. Esppiral

    Esppiral Gutsy Member

    Joined:
    Oct 3, 2012
    Messages:
    495
    Likes Received:
    1,041
    The difference in sky color is due to setting the list sorting option off in the emulator in the first recording, nothing to do with the hack.
     
    -=FamilyGuy=- likes this.
  3. Shenmue_Trilogy

    Shenmue_Trilogy Rapidly Rising Member

    Joined:
    Oct 29, 2015
    Messages:
    98
    Likes Received:
    40
    I think the clipping is the difference. On the right you can only see a few clipping glitches. Do you have a code for the widescreen fix? ;)

    [​IMG]
     
    SILENT_Pavel likes this.
  4. MetalliC

    MetalliC Spirited Member

    Joined:
    Apr 23, 2014
    Messages:
    156
    Likes Received:
    127
    I suspect it's more than simple "clipping". as far as I know Shenmue games uses advanced (for it's time) game data streaming, so depending where player is and his view direction - needed game objects will be read from disk (most likely with prediction), unneeded (invisible) will be purged from memory if necessary.
    so I doubt it will be such simple to "fix" as change single DWORD in memory.
     
    Last edited: Dec 20, 2015
  5. VIRGIN KLM

    VIRGIN KLM Active Member

    Joined:
    Nov 20, 2015
    Messages:
    44
    Likes Received:
    49
    Left is NullDC with extra geometry setting turned on.
    Right is Demul with the 16:9 code on.
    Culling and fov gets calculated differently, quite more effective with the cheat on.
    :p
    It is also the case for alot of PS1 and DC widescreen patches.
     
  6. Esppiral

    Esppiral Gutsy Member

    Joined:
    Oct 3, 2012
    Messages:
    495
    Likes Received:
    1,041
    Both are shenmue running in demul, with the widescreen hack, but the right version does also have an extra patch, so now characters won't dissappear outside th 4:3 area and there is extra geometry too, there is still some clipping though, there should be more addresses responsible for the culling appart from the one I've found :)
     
  7. Esppiral

    Esppiral Gutsy Member

    Joined:
    Oct 3, 2012
    Messages:
    495
    Likes Received:
    1,041
    Some screenshots comparing the "standard" widescreen code, and the extra patch.

    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]

    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]

    The game does still have A LOT of clipping, but characters won't dissapear outside the 4x3 area and it seems there is a little extra geometry, that will help reduce the clipping while playing in 16x9, I took the screenshots with insane horizontal fov, just to make it look clear.


    I must say I found this value by accident, while I was lokking to fix the game HUD, so basically

    [​IMG]

    xDDDDD.
     
  8. Shenmue_Trilogy

    Shenmue_Trilogy Rapidly Rising Member

    Joined:
    Oct 29, 2015
    Messages:
    98
    Likes Received:
    40
    What is the value? :D I would like to try it on original hardware and see how well it works.
     
  9. Esppiral

    Esppiral Gutsy Member

    Joined:
    Oct 3, 2012
    Messages:
    495
    Likes Received:
    1,041
    Shenmue v1.001 (2000)(Sega)(PAL)(M4)

    Less clipping/No characters clipping.
    Code:
    021EF370---7C1EF400
     
    Last edited: Dec 20, 2015
  10. Shenmue_Trilogy

    Shenmue_Trilogy Rapidly Rising Member

    Joined:
    Oct 29, 2015
    Messages:
    98
    Likes Received:
    40
    Just tested on my dreamcast. The character clipping is gone. The enviroment clipping is decreased by 60-70% I would say. Good work! :)
     
  11. S4pph4rad

    S4pph4rad Site Supporter 2015

    Joined:
    Nov 28, 2014
    Messages:
    140
    Likes Received:
    114
    When you say you were looking to fix the HUD, do you mean crushing it horizontally so it's the correct aspect ratio when using the widescreen code?

    Based on your 2nd screenshot above, where the watch in the lower right is correct but the compass around it is stretched, I'm guessing that you found the value for that one element. I actually found the same thing in Shenmue 2 when I was looking for the Widescreen code in that, but that happens to be the only HUD element that showed up searching for the particular value that it's set to. (I think 1.0?) I also stumbled upon an address that stopped the music from playing but kept sound effects going. Might be good for people looking to record videos to use in trailers, but I didn't save that address either because I was looking for widescreen at the time. :-(

    I don't think I tried it, but you might have luck manually looking at the memory around the area where you found the watch. Perhaps the HUD stuff is all in the same area, but uses different width values for some reason?

    Regarding your code to fix clipping, it seems you're setting something to 0.0f. What was the original value? I don't know if it causes any slowdown, but is it possible that you're un-clipping things too much and perhaps there's another value more appropriate for 16x9?
     
  12. Esppiral

    Esppiral Gutsy Member

    Joined:
    Oct 3, 2012
    Messages:
    495
    Likes Received:
    1,041
    Yes that's exactly what I mean :)

    Yeah I've found some of the hud elements and they were pretty close each other in memory.


    [​IMG]


    Initial value is 0C1EF400 as I've said I changed it by accident, its float value is 1.224530333E-31

    It runs normally on real hardware, I haven't notice any aditional slowdown compared to the "standard" game, I think they took a very conservative route while designing the game.
     
  13. masterchan777

    masterchan777 Newly Registered

    Joined:
    May 9, 2013
    Messages:
    4
    Likes Received:
    1
    Did you try applying this to the US and Japanese versions? I had a quick test and it seems the game freezes on changing the initial value to the new one.
     
  14. Esppiral

    Esppiral Gutsy Member

    Joined:
    Oct 3, 2012
    Messages:
    495
    Likes Received:
    1,041
    Us and Japanese versions should use a different address, also the passport needs its own widescreen hack for every version of the game since they stores the values at different addresses.

    I tested it myself and I can confirm too that it does work on a real dreamcast.
     
    Anthony817 likes this.
  15. masterchan777

    masterchan777 Newly Registered

    Joined:
    May 9, 2013
    Messages:
    4
    Likes Received:
    1
    I had a quick memory scan with the original value in both US and JAP versions, and I think I found two new addresses. However setting the new value into those addresses caused the game to freeze.
     
  16. Shenmue_Trilogy

    Shenmue_Trilogy Rapidly Rising Member

    Joined:
    Oct 29, 2015
    Messages:
    98
    Likes Received:
    40
    Esppiral I would like to know the code for the hud fix :D
     
  17. Shenmue_Trilogy

    Shenmue_Trilogy Rapidly Rising Member

    Joined:
    Oct 29, 2015
    Messages:
    98
    Likes Received:
    40
  18. S4pph4rad

    S4pph4rad Site Supporter 2015

    Joined:
    Nov 28, 2014
    Messages:
    140
    Likes Received:
    114
    There's no need to double post. He's never held back on releasing a code after he finishes it prior to now. He's not even finished yet; the only thing changed in the screenshot is the watch in the lower right corner. There's still more that needs to be done.

    (Oh, I see the text and icons were done too, but the dialog is still the same size so I didn't notice that right away.)
     
  19. Shenmue_Trilogy

    Shenmue_Trilogy Rapidly Rising Member

    Joined:
    Oct 29, 2015
    Messages:
    98
    Likes Received:
    40
    Sorry man. I know Esppiral is a loyal member who always makes his codes public. The reason why I am asking for the second time is because I am going to make a shenmue 1&2 marathon on this weekend and I would like to play both games on the best known settings :)
     
    Gromber likes this.
  20. Treamcaster

    Treamcaster Intrepid Member

    Joined:
    Sep 8, 2007
    Messages:
    696
    Likes Received:
    5
    Font
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page