All Programming Discussion

Discussion in 'Sonic 2 HD (Archive)' started by Athelstone, Apr 24, 2008.

  1. Athelstone

    Athelstone

    Oldbie
    Really great to see you're thinking about this sort of thing SANiK, you're a valuable asset to the project.
     
  2. Acaeris

    Acaeris

    Sugarcube... Member
    187
    0
    0
    @Sanik: Is that just to make the Alpha-Map or is that what would need to be in the graphics engine for it to work? I hope it's just to make the alpha map...

    It works though, I'll give you that. Does it work as well with semi transparencies?
     
  3. SANiK

    SANiK

    Tech Member
    413
    0
    16
    "Is that just to make the Alpha-Map or is that what would need to be in the graphics engine for it to work? I hope it's just to make the alpha map..."
    Acaeris - well the program makes two bmps.
    One being a grayscale containing the alphamap.
    The other being the sprite with the edges 'expanded'

    The idea would be that these files can be passed onto another program which finalizes the data into a game engine format.
    So yes - the program would be optional.

    Also - since it outputs bmps, one can edit the alphamap freely.

    "Does it work as well with semi transparencies? "
    Yes it does - you just need to provide the sprite on a black background and the sprite on the white background.

    [​IMG]

    I'd release the program, but there's really no need at the moment
    Just keep on doing what you do with vectors.
     
  4. Magitek

    Magitek

    Member
    83
    0
    0
    USA
    Are there any tools that need to be written? (editors, etc)
     
  5. Hivebrain

    Hivebrain

    Administrator
    3,050
    166
    43
    53.4N, 1.5W
    Github
  6. JoseTB

    JoseTB

    Tech Member
    716
    59
    28
    So nothing yet?

    (been away for a while, moved to another country etc)
     
  7. SANiK

    SANiK

    Tech Member
    413
    0
    16
    There's a few things going on:
    Plan A: Cooljerk's working on his engine
    Plan B: Mystery person ??? has an engine done - just needs to upgrade to 4x
    Plan C: Some other peeps are on standby to upgrade a Genesis emu to use 4x (if all else fails)
     
  8. SANiK

    SANiK

    Tech Member
    413
    0
    16
    Ok, EHZ 4x map viewer completed

    [​IMG]

    Notes:
    -It takes a while to load because it must compile the BMPs into the internal format
    -One of the waterfall tiles gets fucked up due to palette animation - I know so don't bug me about it
    -The parallax is using 16x16 tiles instead of 8x8 like Sonic 2, and is slower than S2, but I know about it so don't bug me about it ;)
    -It uses a 16-bit timer so expect wonky movement ;) - will fix later
    -The engine uses palettes
    -The palettes are PER TILE
    -The palettes are generated by picking the first 255 unique colors in a tile
    -If a tile uses > 256 colors, IT DOES NOT pick the closest matching color, instead, the engine resets the color to 0
    -Therefore, make sure that the tile is <= 256 colors before pasting it in ehz_rgb.bmp
    -Up/Down/Left/Right = move around the map
    -W/A/S/D = move around the map
    -Z/X = normal mode/widescreen mode

    Download:
    http://sanik.hacking-cult.org/EHZ4.zip

    Also, I tried adding this beast to the HD tileset, but gave up due to lazyness =3
    http://i42.photobucket.com/albums/e320/dea...01/update01.png
     
  9. Athelstone

    Athelstone

    Oldbie
    Sanik, this is absolutely fantastic!! *claps*

    Well done. This is going to prove very useful for looking at how all the work with the tiles is coming together.

    Who is this mystery person by the way?

    ...Is he a super saiyan?
     
  10. SANiK

    SANiK

    Tech Member
    413
    0
    16
    Oh scheiss, I just noticed a memory leak *gets to work on fixing*

    -----------------------

    ---EDIT---
    Fixed the bug, redownload
     
  11. Death of Rats

    Death of Rats

    -Sonic 2 HD- Zone Art Coordinator Member
    Amazing job on the tile viewer. Just found out it supports translucent pixels. That's awesome.
     
  12. SANiK

    SANiK

    Tech Member
    413
    0
    16
    Quick - finish the grass tiles so that we can see how EHZ looks when done =)
     
  13. Death of Rats

    Death of Rats

    -Sonic 2 HD- Zone Art Coordinator Member
    is there anyway to make it so I can zoom in? If it'd be too much of a pain in the ass, don't bother, but it might be useful.
     
  14. SANiK

    SANiK

    Tech Member
    413
    0
    16
    Err:
    Click Start->All Programs->Accessories->Accessibility/Ease of Access->Magnifier

    =)

    I kid, here:
    http://sanik.hacking-cult.org/EHZ4_patch.zip

    Press Q/E to zoom but warning:
    Zooming doesn't recalculate the aspect ratio
    Zooming zoomes into the top - left corner =O

    Use Z/X to reset the zoom

    Also - one minor note: I've disabled the palettes in this build
    So - feel free to use 24 bit RGB if you need to

    (This will allow you to work on the water without being screwed over by the "guess-based" palette animator)
     
  15. Death of Rats

    Death of Rats

    -Sonic 2 HD- Zone Art Coordinator Member
    Works like a charm. Thanks.
     
  16. Vincent

    Vincent

    Sonic 2HD - Project Leader & Chara Member
    1,253
    0
    16
    Sonic 2 HD
  17. Endgame

    Endgame

    Formerly The Growler Member
  18. Will there be a way to load savestates from the ROM Sonic 2 and have them still work in Sonic 2 HD?
     
  19. nineko

    nineko

    I am the Holy Cat Tech Member
    6,316
    489
    63
    italy
    <!--quoteo(post=199659:date=Jun 11 2008, 01:49 AM:name=The Growler)--><div class='quotetop'>QUOTE (The Growler @ Jun 11 2008, 01:49 AM) [​IMG][/quote]Fixed that for you.
     
  20. Chimpo

    Chimpo

    I Gotta Be Me Member
    8,702
    1,573
    93
    Los Angeles, 2029
    Don't Forget! Try Your Best!