SDL2 sources, progress and ports
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 565 from 2004/4/15
    Hi,

    I reworked the code a little bit and now I got the gol stuff working on MorphOs too (not using the VBO stuff
    anymore).
    But now I am facon the next problem: all images which are using alpha channel (like the character) are
    not visible anymore. On Linux, Windows, AOS4 everything is fine.
    Sadly I did not had the time to have a deeper look into it.
    Here is a screenshot of the problem:
    ermentrud_ogl_alplha_error.pnghttps://exdev.selfhost.eu/mos/ermentrud_ogl_alplha_error.png
    regards
    eliot
  • »10.09.21 - 07:07
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 608 from 2010/2/10
    From: FRANCE
    hi,

    You use alpha with OpenGL renderer... no chance... it's a big bug of SDL2 now....

    in SDL2 readme :

    KNOW BUGS:
    *************

    - SDL_CreateRenderer with SDL_RENDERER_ACCELERATED is broken if you use SDL_BLENDMODE or
    tranparency color with OpenGL renderer, you need to use SDL_RENDERER_SOFTWARE.
    Dont ask me to fix that, i dont have any information on it, maybe fix on next release of MorphOS (3.16)..)
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »10.09.21 - 09:12
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 565 from 2004/4/15
    Yes, this should not be a bug in SDL2, because it's working fine on other platforms.

    EDIT: So no OGL support on mos for now, but neverstheless, it's mostly done:
    ermentrud_mos.png

    [ Edited by eliot 10.09.2021 - 13:04 ]
    regards
    eliot
  • »10.09.21 - 10:08
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 608 from 2010/2/10
    From: FRANCE
    New SDL2 packages : 2.0.20

    New SDL2, SDL2_image, SDL2_ttf libraries
    Check changelogs into archive

    https://www.morphos-storage.net/?id=1715242



    [ Edité par beworld 16.02.2022 - 08:28 ]
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »15.01.22 - 10:36
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 608 from 2010/2/10
    From: FRANCE
    New SDL packages 2.0.20 available with some fix

    Dont hesites to update it !

    https://www.morphos-storage.net/?find=SDL_2

    I update some of my ports and work on new port (Thanks to MorphOS 3.16)... so wait and survey MorphOS-storage

    Have fun !
    And thanks top MorphOS team.
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »12.03.22 - 19:37
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 608 from 2010/2/10
    From: FRANCE
    I'm glad to see that the SDL2 is now used more than by myself :-) (Doom3/SM64, deviluationx... to name the biggest ones)

    Now in next release of SDL2, I implemented some missing features:

    - SDL_WINDOW_FULLSCREEN_DESKTOP
    - SDL_RENDERER_PRESENTVSYNC (note: vsync is always present in real fullscreen mode)

    just one exemple with SDL_WINDOW_FULLSCREEN_DESKTOP and opacity window (to test i just edit my bePlayer): https://ibb.co/7CL1S3W
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »23.04.22 - 05:38
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 608 from 2010/2/10
    From: FRANCE
    New update with some fixes in SDL 2.0.22

    https://www.morphos-storage.net/?id=1746996
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »08.05.22 - 18:02
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 608 from 2010/2/10
    From: FRANCE
    New update with some fixes in SDL 2.0.22

    https://www.morphos-storage.net/?id=1746996
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »08.05.22 - 18:02
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Zetec-s
    Posts: 197 from 2008/7/10
    From: Cheshire, UK
    Quote:

    Quote:

    Quote:

    [ Edité par beworld 01.04.2020 - 09:58 ]


    Thanks for your hardwork to get SDL2 done. Also thank you for your awsome game ports.
    I just tested full version of HODE, and looks and plays awesome, but before I finish first level (when first animation starts, where you see whole world below), game exit with message.. fileio.cpp:90: failed assertion `crc == 0' , Program aborted, Using joystick 'Port 0 is a Game Controller'.

    I have all files in DATA dir. (hod.paf, all .lvl,.mst,.sss files).



    Now I added setup.dat in DATA and pressed esc during animation and new level starts.... :)
    (wierd is that I first added only hod.paf from CD and start to play game just fine, and after game crashed I added all lvl,mst and sss files from RIP version but that didn't solve crash, but now with added setup.dat I can continue to play)
    Anyway, good is that I can continue to play because HODE is really good game. :)

    ...and thanks for your fast answer. (you answered just before I post this)


    Sorry for dragging up an old post, but I am having the exact same issue with HODE now as the above.

    When I get to Level 1 Screen 8, the animations play but then the game exits back to the menu and you are stuck in a loop.

    Anybody have any ideas of how to solve this?
    PowerMac G5 Quad 2.5Ghz/2GB MorphOS 3.18 Registered
    Powerbook 1.67Ghz/1.5GB MorphOS 3.18 Registered
    MacMini 1.5Ghz/1GB MorphOS 3.18 Registered
    Efika 5200B 400Mhz/128MB MorphOS 2.3 Registered
  • »17.07.22 - 09:09
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 608 from 2010/2/10
    From: FRANCE
    Hi, i update Hode (last sources from master)

    https://www.morphos-storage.net/?id=1777902

    Try it, maybe fix your problem.
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »17.07.22 - 13:38
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Cool_amigaN
    Posts: 761 from 2011/11/30
    @beworld

    Hey, I 've been wondering whether we can have a recent D2X-XL port given the progress on the SDL/TinyGL front. It comes with tons of updates too, that ensure quality gaming time. Can you pls have a look at it?

    Btw, I noticed that Itix's Descent II port isn't uploaded to MorphOS-Storage, perhaps Papi should re-upload it there too?

    [ Edited by Cool_amigaN 14.01.2023 - 20:30 ]
    Amiga gaming Tribute: Watch, rate, comment :)
  • »14.01.23 - 18:29
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 608 from 2010/2/10
    From: FRANCE
    Source code : https://sourceforge.net/p/d2x-xl/code/HEAD/tree/trunk/
    But use SDL 1 :-)
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »15.01.23 - 06:02
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Cool_amigaN
    Posts: 761 from 2011/11/30
    So, that means that it's doable or not? Easier or more difficult to port? Doesn't SDL 2 has any backward compatibility with SDL1? :)
    Amiga gaming Tribute: Watch, rate, comment :)
  • »15.01.23 - 14:06
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12150 from 2003/5/22
    From: Germany
    > Doesn't SDL 2 has any backward compatibility with SDL1? :)

    "SDL 2.0 [...] was a major departure from previous versions, [...] breaking backwards-compatibility. [...] SDL 2.0 is a major update to the SDL 1.2 codebase with a different, not backwards-compatible API."
    https://en.wikipedia.org/wiki/Simple_DirectMedia_Layer
  • »15.01.23 - 19:06
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 608 from 2010/2/10
    From: FRANCE
    New update: https://www.morphos-storage.net/?find=SDL_2

    This version based on release 2.30.7 is now compatible with the new TinyGL and support for framebuffer objects. (Big thanks to bigfoot !)

    I am going to recompile certain ports to take new features of TinyGL and release some new ports.

    Have fun !

    [ Edité par beworld 29.09.2024 - 11:50 ]
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »29.09.24 - 09:40
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 523 from 2013/5/29
    This is so fantastic...thanks!
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »29.09.24 - 10:08
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Brumiga
    Posts: 248 from 2004/4/3
    From: France
    At every boot I have the activity indicator of debug 'on'. I do not know what/who is responsible, sdl 2 or tinygl latest releases. So here is the log that I obtain.

    20.070| 128 bytes read
    20.070| block#0 bytesum 0x0
    20.070| 0x00: 00 ff ff ff ff ff ff 00 26 cd 11 66 26 0b 00 00 .ÿÿÿÿÿÿ..Í.f....
    20.070| 0x10: 10 19 01 03 80 3c 22 78 2a 2f a5 a5 54 50 9e 27 .......x....TP..
    20.070| 0x20: 10 50 54 33 08 00 71 00 81 40 81 80 a9 40 b3 00 .PT3..q.........
    20.070| 0x30: 95 00 d1 c0 01 01 02 3a 80 18 71 38 2d 40 58 2c ..ÑÀ......q8..X.
    20.071| 0x40: 45 00 56 50 21 00 00 1e 00 00 00 ff 00 31 31 32 E.VP.......ÿ.112
    20.071| 0x50: 38 31 35 31 36 30 32 38 35 34 00 00 00 fd 00 37 8151602854...ý.7
    20.071| 0x60: 4c 1e 53 11 00 0a 20 20 20 20 20 20 00 00 00 fc L.S............ü
    20.071| 0x70: 00 50 4c 58 32 37 38 33 48 0a 20 20 20 20 00 61 .PLX2783H......a
    20.071|
    20.071| ID manufacturer Name = 'IVM'
    20.071| ProductCode = 0x6611
    20.071| Serial Number 260b0000
    20.071| Week of Manufacture 16
    20.071| Year of Manufacture 2015
    20.071| EDID Structure Version 1.3
    20.071|
    20.071| Basic Display Parameters and Features
    20.071| checkDDCdata: Video input: Digital signal
    20.071| Max. Horizontal Image Size 60 cm
    20.071| Max. Vertical Image Size 34 cm
    20.071| Display Transfer Characteristic (Gamma): 2.2
    20.071|
    20.071| Feature Support (0x2a)
    20.071| Supports Active Off/Very Low Power
    20.071| RGB color display
    20.071| Preferred timing mode is indicated in the first detailed timing block
    20.071| (Note: Use of preferred timing mode is required by EDID structure version 1.3 and higher
    20.071|
    20.071| Phosphor or filter chromacity
    20.071| red_x 0.6445 red_y 0.3301
    20.071| green_x 0.3154 green_y 0.6201
    20.071| blue_x 0.1543 blue_y 0.06445
    20.071| white_x 0.2354 white_y 0.1338
    20.071|
    20.071| Established Timings
    20.072| 640 x 480 @ 60Hz (IBM, VGA)
    20.072| 640 x 480 @ 67Hz (Apple, MacII)
    20.072| 800 x 600 @ 56Hz (VESA)
    20.072| 800 x 600 @ 60Hz (VESA)
    20.072| 1024 x 768 @ 60Hz (VESA)
    20.072|
    20.072| Standard timing identification #1
    20.072| code 0x7100 (HActive 1152 Pixels VActive 720 Lines RefreshRate 60Hz Aspect 16:10)
    20.072| Standard timing identification #2
    20.072| code 0x8140 (HActive 1280 Pixels VActive 960 Lines RefreshRate 60Hz Aspect 4:3)
    20.072| Standard timing identification #3
    20.072| code 0x8180 (HActive 1280 Pixels VActive 1024 Lines RefreshRate 60Hz Aspect 5:4)
    20.072| Standard timing identification #4
    20.072| code 0xa940 (HActive 1600 Pixels VActive 1200 Lines RefreshRate 60Hz Aspect 4:3)
    20.072| Standard timing identification #5
    20.072| code 0xb300 (HActive 1680 Pixels VActive 1050 Lines RefreshRate 60Hz Aspect 16:10)
    20.072| Standard timing identification #6
    20.072| code 0x9500 (HActive 1440 Pixels VActive 900 Lines RefreshRate 60Hz Aspect 16:10)
    20.072| Standard timing identification #7
    20.072| code 0xd1c0 (HActive 1920 Pixels VActive 1080 Lines RefreshRate 60Hz Aspect 16:9)
    20.072|
    20.072| monitor descriptor 2 type 0xff
    20.072| Monitor S/N: 1128151602854
    20.072| monitor descriptor 3 type 0xfd
    20.072| Monitor range limits
    20.072| min vfreq 55 max vfreq 76
    20.073| min hfreq 30 max hfreq 83
    20.073| max pixclk 170MHz (0)
    20.073|
    20.073| monitor descriptor 4 type 0xfc
    20.073| Monitor name: PLX2783H

    I forgot to say that I obtain this debug log only with my macmini. On my amigaone x5000 I do not obtain any debug log.

    Brumiga

    [ Edité par Brumiga 29.09.2024 - 18:33 ]
  • »29.09.24 - 16:20
    Profile