Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
138 user(s) are online (104 user(s) are browsing Forums)

Members: 1
Guests: 137

jabirulo, more...

Headlines

 
  Register To Post  

« 1 2 3 (4) 5 6 7 »
Re: Does OS4 SDL work in OPENGL mode?
Home away from home
Home away from home


See User information
@afxgroup

Great progress! This has been on various people's wish lists for a long time now.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top
Re: Does OS4 SDL work in OPENGL mode?
Not too shy to talk
Not too shy to talk


See User information
I actually have ToggleFullscreen working with GL now as well (at least it works in Giddy 3), but google's SVN server is currently having a wobbly and i can't commit the code... grrrr!

Go to top
Re: Does OS4 SDL work in OPENGL mode?
Home away from home
Home away from home


See User information
@xeron

Cool! Will be nice to check Giddy which works in win/full-screen mode :)

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Does OS4 SDL work in OPENGL mode?
Home away from home
Home away from home


See User information
@xeron

Quote:

xeron wrote:
@kas1e

Well, giddy is not "just a port". It is portable, and does use SDL, but it was ~70% developed directly on OS4.x.

But yes, it uses SDL_WM_ToggleFullscreen(), and andrea is working to implement SDL_WM_ToggleFullscreen() in SDL, which is where the fix should be done.


Wow, great news indeed

People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
Go to top
Re: Does OS4 SDL work in OPENGL mode?
Home away from home
Home away from home


See User information
@xeron

I read your comment on SDL page:

Quote:

ToggleFullscreen sort of works. If the SDL display was created in windowed mode, you can toggle fullscreen on/off as much as you like and it works. If the display was created fullscreen, it locks the machine up when you toggle.


That kind of bad (about lockup when user try to switch from full-screen mode). Because in general, all sdl apps which we have for now, was created as full-screen.

Maybe it can be debugged and fixed ? (i mean that lockup).

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Does OS4 SDL work in OPENGL mode?
Not too shy to talk
Not too shy to talk


See User information
@kas1e

Of course it can be fixed! We just have to figure out why its broken first.

The SVN codebase is always a work in progress.

Go to top
Re: Does OS4 SDL work in OPENGL mode?
Amigans Defender
Amigans Defender


See User information
@xeron

fixed into SVN

i'm really tired...
Go to top
Re: Does OS4 SDL work in OPENGL mode?
Home away from home
Home away from home


See User information
@afxgroup

Man, you are genius

You and all the others working on the dream OS

Thank you so much

People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
Go to top
Re: Does OS4 SDL work in OPENGL mode?
Just can't stay away
Just can't stay away


See User information
good work chaps!

Go to top
Re: Does OS4 SDL work in OPENGL mode?
Home away from home
Home away from home


See User information
@afxgroup
Thanks for ! Hope to try new build soon.

ps. Btw, Hanz, i re-read your suggestions on amigabounty, and want to ask about "and screen selection is poor". What that mean exactly ?


Edited by kas1e on 2010/3/24 21:55:00
Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Does OS4 SDL work in OPENGL mode?
Quite a regular
Quite a regular


See User information
@All

Thanks for this updated development for SDL on AOS4


Just in case of, protrekker jump to window to fullscreen with a button on protrekker settings. Don't remember if worked before...

A1200+Mediator+VooDoo3+060/50+96mo+IIYAMA 17"+CD,CDRW,ZIP SCSI-KIT
SAM440EP on Mapower 3000+AOS4.1

Amiga Docs Disk Preservation Project
Go to top
Re: Does OS4 SDL work in OPENGL mode?
Home away from home
Home away from home


See User information
@Mrodfr

Protrekkr it's plain SDL app (without usage of opengl). The problems with window modes was opengl only (it mean that SDL apps with usage of opengl can't works in window mode before). Plain SDL programms works fine all the time with window/full-screen modes (well, maybe it have some bugs too, but switching works fine).

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Does OS4 SDL work in OPENGL mode?
Home away from home
Home away from home


See User information
@xeron

Tryed to build svn trunk, and do:

sh
./configure --enable-pthreads=no --enable-pth=no
gmake

Then, from build/.libs i copy LIBSDL-1.2.so, to my sobj:

Reboot, run Giddy, and have window:

Unable to resolve symbol
#SDL_Malloc#

and then DSI.

And LIBSDL-1.2.so are big if compared with latest public .so. It have 2.5mb of size (over 700kb of r11). I tryed to buil it on latest SDK+latest aos, etc.. So, what wrong ?:)

On compiling stage (almost at the end) i have tons of strings like that:
Quote:

gcc:bin/ld: build/.libs/libSDL.la-62.o: warning: allocated section `.dtors' not in segment
gcc:bin/ld: build/.libs/libSDL.la-62.o: warning: allocated section `.data.rel.local' not in segment
gcc:bin/ld: build/.libs/libSDL.la-62.o: warning: allocated section `.fixup' not in segment
gcc:bin/ld: build/.libs/libSDL.la-62.o: warning: allocated section `.data.rel.ro.local' not in segment
gcc:bin/ld: build/.libs/libSDL.la-62.o: warning: allocated section `.data.rel' not in segment
gcc:bin/ld: build/.libs/libSDL.la-62.o: warning: allocated section `.data.rel.ro' not in segment

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Does OS4 SDL work in OPENGL mode?
Not too shy to talk
Not too shy to talk


See User information
@kas1e

I don't know. I have all the same problems you listed. I kludged the "SDL_malloc" error by reverting SDL_config.h to the SVN version after configuring.

Go to top
Re: Does OS4 SDL work in OPENGL mode?
Home away from home
Home away from home


See User information
@xeron

There is also was SDL_free error, when i skip first DSI :) Maybe better if you just can compile .so yourself with latest src and upload for testing ? Anyway its strange why your r11 compile works fine, and 700kb of size, but my are 2.5mb of size and have these errors.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Does OS4 SDL work in OPENGL mode?
Not too shy to talk
Not too shy to talk


See User information
@kas1e

I have ALL the same errors as you. Andrea compiled the r11 build with a cross compiler, I just made the release archives out of it.

I'm not putting a new build up yet, since people would try and use it and its not ready.

Go to top
Re: Does OS4 SDL work in OPENGL mode?
Home away from home
Home away from home


See User information
@xeron

Yep, with reverting SDL_config.h to SVN ones, it build and works. Then i try Giddy3, and when i try to switch to window mode, i have DSI of this kind:
Quote:

native kernel module intuition.library.kmod+0x0004e998
libSDL-1.2.so:os4video_CreateDisplay()+0x7FC (section 10 @ 0x76b4)
libSDL-1.2.so:os4video_ToggleFullScreen()+0xD0 (section 10 @ 0x7b28)
libSDL-1.2.so:SDL_WM_ToggleFullScreen()+0x100 (section 10 @ 0x1ad14)
module giddy3 at 0x7F67CDF4 (section 12 @ 0x3BDD4)
module giddy3 at 0x7F641BBC (section 12 @ 0xB9C)
native kernel module newlib.library.kmod+0x00001f44
native kernel module newlib.library.kmod+0x00002bd8
native kernel module newlib.library.kmod+0x00002d54
giddy3:_start()+0x170 (section 8 @ 0x170)
native kernel module dos.library.kmod+0x0001a228
native kernel module kernel+0x0003ef08
native kernel module kernel+0x0003ef88


If i change settings.txt to start in window mode by default, then, for first time it freeze the os4. Then i hardreboot, and try again: then dsi on CreateDisplay:
Quote:

native kernel module intuition.library.kmod+0x0004e998
libSDL-1.2.so:os4video_CreateDisplay()+0x7FC (section 10 @ 0x76b4)
libSDL-1.2.so:os4video_SetVideoMode()+0x11C (section 10 @ 0x80c0)
libSDL-1.2.so:SDL_SetVideoMode()+0x200 (section 10 @ 0x1c668)
module giddy3 at 0x7F641644 (section 12 @ 0x624)
module giddy3 at 0x7F64190C (section 12 @ 0x8EC)
native kernel module newlib.library.kmod+0x00001f44
native kernel module newlib.library.kmod+0x00002bd8
native kernel module newlib.library.kmod+0x00002d54
giddy3:_start()+0x170 (section 8 @ 0x170)
native kernel module dos.library.kmod+0x0001a228
native kernel module kernel+0x0003ef08
native kernel module kernel+0x0003ef88


If press ignore, then game starts in window :) So now i plays in giddy3 in window mode :)

And yes, after i start it from window mode, i can swith to-from full-screen/window with no problems anymore.

ps. If anyone in interst, there is screenshot of giddy3 in window mode on my os4

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Does OS4 SDL work in OPENGL mode?
Home away from home
Home away from home


See User information
@kas1e

Quote:

kas1e wrote:
@afxgroup
Thanks for ! Hope to try new build soon.

ps. Btw, Hanz, i re-read your suggestions on amigabounty, and want to ask about "and screen selection is poor". What that mean exactly ?


That suggestion comes from SpotUP, so he should be able to provide more details. Basically, some attempted SDL + GL ports are failing because they can't get a valid screen mode, when the resolutions being requested exist. I have no idea why, but it's a serious shortcoming, so I put it on the list.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top
Re: Does OS4 SDL work in OPENGL mode?
Home away from home
Home away from home


See User information
@kas1e

Quote:

kas1e wrote:

ps. If anyone in interst, there is screenshot of giddy3 in window mode on my os4


Thanks for that, it's nice to see SDL GL apps finally working in windowed mode.

I hope that the compiling issues are sorted soon.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top
Re: Does OS4 SDL work in OPENGL mode?
Not too shy to talk
Not too shy to talk


See User information
@kas1e

If you update to the latest SVN revision, the DSI in giddy goes away.

Edit: And Giddy v1.4 has been out for ages..

Go to top

  Register To Post
« 1 2 3 (4) 5 6 7 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project