Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
61 user(s) are online (6 user(s) are browsing News)

Members: 0
Guests: 61

more...
Support us!
Recent OS4 Files
OS4Depot.net
Recent Replied Topics
Topic Replies Last Post
AmigaOS4 Maximum memory X1000 [1][2] 27 (981) Raziel Today 7:01
AmigaOS4 File notify question. 18 (3401) broadblues Yesterday 20:29
AmigaOS4 5.1 or more sound (emulation) 2 (233) Raziel 6/17 19:08
Dopus 5 Dopus 5.92 betatest [1][2] 20 (1724) ilbarbax 6/17 11:24
AmigaOS4 Delete command quirks 4 (242) orgin 6/17 11:14
AmigaOS4 Warp3D Nova Tutorials Book Released 14 (1117) Capehill 6/15 10:06
Amiga General Forum YouTube Video of my AmigaOne X5K - enjoying my AmigaOne ! 3 (233) Hans 6/15 2:47
AmigaOS4 typedef file 6 (213) Steady 6/13 1:30
AmigaOS4 GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress [1][2] ... [27][28][29][30] 580 (93233) Hans 6/12 5:13
AmigaOS4 Reborn return to castle Wolfenstein [1][2] ... [4][5][6][7] 124 (13333) kas1e 6/11 16:50
AmigaOS4 updating sgit 13 (519) sTix 6/11 14:19
AmigaOS4 SDL1 open issues [1][2] ... [8][9][10][11] 201 (33604) Capehill 6/10 16:37
AmigaOS4 2019 AmigaOS 4.x Graphics Card Survey [1][2] 34 (2371) pvanni 6/10 7:39
AmigaOS4 AmiStore and Updater 1 (424) Raziel 6/6 13:57
AmigaOS4 Enhancer Bug thread [1][2] ... [17][18][19][20] 391 (80171) kas1e 6/5 12:17
[View all topics]  [Forum Settings]
Software News : GL4ESxmas for AOS4 coming ! First games using GL4ES !
Posted by kas1e on 2018/12/23 15:06:43 (1121 reads) News by the same author
Software News

There is first games released which builded with usage of GL4ES wrapper which mean to give us OpenGL1.x , 2.x and some of 3.x over ogles2.library and warp3dnova.



Introduction...


For make those games works you need as necessary minimum ogles2.library v1.22 , and warp3dnova.library v1.58. Those requerements are 100% necessary. If you will have anything lower, you will fail, have bugs, crushes and errors. So before making any bugreport later, be sure that you have those versions at minimum.

Of course it is understandable that you also should have modern gfx card, with latest radeonHD drivers.

Everything is compiled via gcc 8.2.0 and latest SDL2. Games released there have good use of modern gcc features like c++11, threading (on our side it is native threading now, not poxis based, thanks to Sebastian) and co.

At this time there is 3 titles, all of them can be downloaded from os4depot. At moment they all in upload query. All the videos and screenshots below takeng from my x5k/aos4fe.

Prototype...

That one is modern remake of R-Type.

Resized Image Resized Image
(press open image in another tab for fullscreen)

Game not very demanding on GPU, and can be ported even over MiniGL with some small changes. Anyone who want to made a port for minigl, or for morphos, can go there for full source code:

https://github.com/ptitSeb/prototype

All amigaos4 and endian changes are there, so it will be easy.

There is youtube video done on my x5000/amigaos4, full HD 1920x1080:

https://www.youtube.com/watch?v=K4Ubgap_nrA


If you want to change fullscreen/window, resolution, etc, you manually change the file .prototype/engine.cfg By default i set fullscreen mode.


Barony: Blessed Addition...

That one are fresh commercical game last release of which happens in 2018, and sources of which was open lately.

http://www.baronygame.com/


Resized Image Resized Image
(press open image in another tab for fullscreen)


Dont' be fooled by "simple" look of it, game is real full-blown of this kind, and many ppls play in it today. Its not some opensource unfinished game, but real big one.

Sadly, that while game itself use OpenGL, it still didn't rely much on GPU, but mostly on CPU. Original requerements for that game is MINIMUM Intel i3 3.0 ghz. So don't expect miracles, and it will be playable only on x1000 or x5000 (there i got 30-40 fps with full details and 1920x1080). You may try it on SAMs with lowering all the settings, but probabaly you still will fail and FPS will be low.

The game come _without_ data files, so you need to got the full game for linux , or for windows (but then for windows version you will have neesd to use windows to extract .exe). And you need exactly data files from Blessed Addition, not Cursed Edition.

If you will run game without data files, all you will have is black window and nothing else.

Once you got data files, and run it, it will take some time to generate model's cache. On x5k it takes ~2 minute for to generate models at first run. Next runs game will use generated cache file and starting will be fast.

By default game runs in window mode 1280x720. You may change resolutions and between window/fullscreen in the settings of game.

There is youtube video done on my x5000/amigaos4, full HD 1920x1080:

https://www.youtube.com/watch?v=mFztSoe1ysw

Full source code with all big-endian and amigaos4 changes are there:

https://github.com/ptitSeb/Barony


Fricking shark...

It is kind of modern remake of Flying Shark.

Resized Image Resized Image
(press open image in another tab for fullscreen)

Game need big resolution, so even 1024x768 can be very minimum and maybe even not enough. 1920x1080 full screen, or something like 1280x1024 in window mode are ok.

That one was the hardest to port as :

1). there by default everything was based on usage of .so with all those dlsym,dlopen,dlclose,dlerror, etc. Changing it all on static usage was reall big work for ptitSeb.
2). there was hard big-endian changes
3). game use real shaders, a lot of gl functions (so good test for gl4es and ogles2/warp3dnova, because of which we found some bugs in warp3dnova, some of which fixed, some of which not at moment).


As said the game can use real shaders , but in our current port they disabled, as firstly need to fix bug in warp3dnova's shaders compiler, and then we can enable them and made update.


Because of no use of real shaders, we use in game only gl4es internal shaders (which compiles not at begining of level, but when gl states changes), what visually mean, that when you first time run a game and start play in you will have some little weird pauses. It will happens only at begining , then all will be fine. So before starting to play normally, you just can run first level, play a mininute "collect" all those pauses in memory, and then exit from level and start it again.

Those pauses at begining will be disappear in 2 cases:

1). When warpd3dnova's shader compiler will be fixed to make those real shaders works (they calculates at begining of level). There alrady BZ about, and Hans aware, so it matter of time.
2). When gl4es will have "precompiled shaders" ability, which will mean, that any software can generate one time internal gl4es shaders, and lately just use them from disk. That in ptitSeb's TODO, but when he will be there, no one can say.

But as there is xmas time, we think that better to release it as it, and later made an update, than holding it for dunno how long.

If you need to change between window/fullscreen and resolutions, you can edit file Resources/Scripts/GameGUI.cfg. By default i set fullscreen mode.

So, there again youtube video done on my aos4/x5k, full HD 1920x1080:

https://www.youtube.com/watch?v=eA9txj_P38I


Full source code with all big-endian and amigaos4 changes are there:

https://github.com/ptitSeb/friking-shark


Final notes...

All hard code workd like adding big-endian support, dealing with amigaos4 related problems, etc done by author of gl4es : ptitseb. I play there little role, with very simply fixes, bugreports, testings, and being around to be sure amigaos4 builds of gl4es supported and works. That inderectly also lead to fixes in ogles2 and warp3dnova fixes (last one still have issues need to be deal with, before other stuff can be released), but without help of ptitSeb who don't have any amiga hardware, and by any reassons do help so much, no gl4es wrapper, not ports of those games if anyone will find them necessary, will not happen. So if any of you think all of this worth of it, can make donation to him to keep his motivation up with all this. You can do it by pressing on donation button for example there:

https://repo.openpandora.org/?page=detail&app=barony_ptitseb

Just be sure to add notes like "amigaos4 support", so he will know from what it from :)

In others , merry gl4esxmas !

Printer Friendly Page Send this Story to a Friend Create a PDF from the article
The comments are owned by the author. We aren't responsible for their content.
Author Thread
outrun1978
Published: 2018/12/23 18:39  Updated: 2018/12/23 18:39
Just popping in
Joined: 05/09/2015
From: -
Comments: 54
 GL4ESxmas for AOS4 coming ! First games using GL4ES !
what a nice xmas present :-) Thank you !!
Antique
Published: 2018/12/23 18:49  Updated: 2018/12/23 18:49
Home away from home
Joined: 11/30/2006
From: Norway
Comments: 2469
 GL4ESxmas for AOS4 coming ! First games using GL4ES !
Nice games. :-)
Petrol
Published: 2018/12/23 20:21  Updated: 2018/12/23 20:21
Just popping in
Joined: 05/18/2017
From: Audruicq, France
Comments: 28
 GL4ESxmas for AOS4 coming ! First games using GL4ES !
Thank you all!
K-L
Published: 2018/12/24 8:26  Updated: 2018/12/24 8:26
Quite a regular
Joined: 11/29/2006
From: Lyon, France
Comments: 979
 Barony crashes :-(
Thanks ! Unfortunately, Barony crashes badly. I purchased the DRM Free version and unarchived it in the Barony's drawer but I get a GrimReaper when lauching the game (whether I use Windows' archive or Linux's one). You can find the CrashLog here : https://www.amiga-ng.org/resoirces/cra ... e_2018-12-24_09-23-36.txt
kas1e
Published: 2018/12/24 8:43  Updated: 2018/12/24 8:44
Home away from home
Joined: 09/11/2007
From: Russia
Comments: 5200
 Barony
@k-l
Did you have window open at all and did generation of models starts ?

You should have Blessed Addition only, and copy dirs to progdir of barony manually. "Lang" directory should be not replaced. I.e you copy only dirs like models, sounds, etc by hands.

If that not help, check the .barony/logs.txt for more info. It will says on which point it crashes and why (probably because cant find some data files)
K-L
Published: 2018/12/24 8:48  Updated: 2018/12/24 8:48
Quite a regular
Joined: 11/29/2006
From: Lyon, France
Comments: 979
 Re: Barony
Thanks for aswreing

It crashes before opening any screen (Prototype and Friking Shark work without any problem).

Ok, I think I know the culprit :

LIBGL: Initialising gl4es
LIBGL: v1.1.1 built on Dec 20 2018 17:02:06
LIBGL: Using GLES 2.0 backend
LIBGL: Using Warp3DNova.library v1 revision 58
LIBGL: Warning, your Warp3DNovaBase.library is too old, minimum is v1.62, please update!
LIBGL: Using OGLES2.library v1 revision 22
LIBGL: OGLES2 Library and Interface open successfuly
LIBGL: ignore MipMap
LIBGL: Targeting OpenGL 2.0
LIBGL: Forcing NPOT support by disabling MIPMAP support for NPOT textures
LIBGL: VBO used (in a few cases)
LIBGL: Current folder is:Jeux:Jeux/FPS/Barony
[09-46-40] Data path is PROGDIR:
[09-46-40] Output path is PROGDIR:.barony

Since I have the latest version, you must be using a beta version of Warp3D NOVA which has not been released yet.
kas1e
Published: 2018/12/24 8:52  Updated: 2018/12/24 8:52
Home away from home
Joined: 09/11/2007
From: Russia
Comments: 5200
 Barony
@K-L
No no, it works over warpdnova 1.58 for sure. That warning harmless for it, it just i put it in gl4es for future.

All looks like datafiles didnt find.. Check plz .barony/log.txt file, and we will know how to deal with.
K-L
Published: 2018/12/24 9:18  Updated: 2018/12/24 9:18
Quite a regular
Joined: 11/29/2006
From: Lyon, France
Comments: 979
 Re: Barony
[09-21-34] successfully loaded language file 'lang/en.txt'
[09-21-34] Loading config 'PROGDIR:.barony/default.cfg'...
[09-21-34] warning: config file 'PROGDIR:.barony/default.cfg' does not exist!

I think is the problem. Maybe the game should be launched first under Linux or Windows to create the default.cfg file.

It is not created by the OS4 exe.
kas1e
Published: 2018/12/24 10:24  Updated: 2018/12/24 10:25
Home away from home
Joined: 09/11/2007
From: Russia
Comments: 5200
 barony
@K-L
Nope, i of course tested and restested everything before : those configs and stuff does not exit at begining of course, but they creates after.

For now , i just go to os4depot, download barony.lha , unpacked it to the ram: and run it via dbl-click from icon : it runs, create configs, show me the black window.

Test plz it that way (i mean download to ram, and run it without data files). Will you have config files created in the prgodir:.barony after that , and will you have black window ?

I may think about something being wrong with JXFS , or some other components can be guilty, but let's start from the download/unpack/run from RAM: so we can know what going on.
HunoPPC
Published: 2018/12/24 10:49  Updated: 2018/12/24 10:49
Just popping in
Joined: 12/28/2006
From: Besançon
Comments: 175
 Re: barony
Hello Kas1e,

thank you very much for your hard work with PtitSeb and your porting

On Barony i have a same problem and not create default.cfg (on RAM: and SFS2) and i have added my windows default.cfg on .barony and the same crash.

my debug log
[_OS4_INIT] IExec 0x02973054
Dump of context at 0xDF7ABBA0
Trap type: DSI exception
Machine State (raw): 0x100000000200B030
Machine State (verbose): [Hyper] [ExtInt on] [Super] [FPU on] [IAT on] [DAT on]
Instruction pointer: 0x7C1274C4
Crashed process: Barony.exe (0x5123A4C0)
DSI verbose error description: Access not found in hash or BAT (page fault)
Access was a load operation
0: 7C11EDD4 52C19270 CFBDC5D0 52DD6E70 6FFAAC2C 00000068 52C19678 00000003
8: 00000070 00000000 4F459638 52C196E0 00000154 51440820 60482640 5030F340
16: 7BCB1B20 00000000 5123C9D0 52BF80E8 02B30000 02B30000 00000000 00000007
24: 6FFFE300 00000002 57953999 00000000 02B30000 02B30000 52BF80C8 52C19270
CR: 33953555 XER: A000003D CTR: 0201E334 LR: 7C11EDD4
DSISR: 40000000 DAR: 00000070

FP0 : FFF8000082004000 3FF0000000000000 FFF0EDE9FFEBE7E3 FFEEEAE6FFF0ECE8
FP4 : FFF0EDE9FFEBE7E3 FFEBE7E2FFEEEAE6 FFF1EEECFFEEEAE7 FFEDE9E6FFEAE5DF
FP8 : FFF0EDEAFFE9E3DE FFEDE9E5FFEEEBE7 FFF0EDEAFFE9E3DE 47EFFFFFE0000000
FP12: 47EFFFFFE0000000 4330000000000001 0000000000000000 0000000000000000
FP16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FP20: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FP24: 0000000000000000 0000000000000000 0000000000000000 3FF0000000000000
FP28: 4330000080000000 4330000000000000 41E0000000000000 0000000000000000
FPSCR: 82004000
HID0: 0x8000000000000000 HID1: 0x000000005CE993B1
HID4: 0x4400240000080180 HID5: 0x0000006600000080

V0 : 00000000000000000000000000000000 FF010101FF010101FF010101FF010101
V2 : 00000000000000000000000000000000 00000000010101010202020203030303
V4 : 00000000000000000000000000000000 FE010000FE010000FE010000FE010000
V6 : 00000000010101010202020203030303 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
V8 : 001002120414061608180A1A0C1C0E1E FF000000FF000000FF000000FF000000
V10: 01000100010001000100010001000100 00000000000000000000000000000000
V12: FF010100FF010100FF010100FF010100 0C0D0E0F101112131415161718191A1B
V14: FF010101FF010101FF010101FF010101 FF010101FF010101FF010101FF010101
V16: FF010101FF010101FF010101FF010101 FF010101FF010101FF010101FF010101
V18: FF010100FF010100FF010100FF010100 00000000000000000000000000000000
V20: 00000000000000000000000000000000 00000000000000000000000000000000
V22: 00000000000000000000000000000000 00000000000000000000000000000000
V24: 00000000000000000000000000000000 00000000000000000000000000000000
V26: 00000000000000000000000000000000 00000000000000000000000000000000
V28: 00000000000000000000000000000000 00000000000000000000000000000000
V30: 00000000000000000000000000000000 00000000000000000000000000000000
VSCR: 00000000 VRSAVE: 00000000

Disassembly of crash site:
7C1274B4: 3929FD94 subi r9,r9,620
7C1274B8: 913F0008 stw r9,8(r31)
7C1274BC: 3D20580E lis r9,22542
7C1274C0: 8129C2EC lwz r9,-15636(r9)
>7C1274C4: 81290070 lwz r9,112(r9)
7C1274C8: 3D40580E lis r10,22542
7C1274CC: 810AC2EC lwz r8,-15636(r10)
7C1274D0: 38A0FFFE li r5,-2
7C1274D4: 3D4052E6 lis r10,21222
7C1274D8: 388AFDAC subi r4,r10,596

Kernel command line: DEBUGLEVEL=0 SERIAL

Registers pointing to code:
r0 : module Barony.exe at 0x7C11EDD4 (section 5 @ 0x4D4DB0)
r3 : module Barony.exe at 0x52DD6E70 (section 6 @ 0x3CE4C)
r16: module Barony.exe at 0x7BCB1B20 (section 5 @ 0x67AFC)
r20: native kernel module graphics.library.kmod+0x00840680
r21: native kernel module graphics.library.kmod+0x00840680
r28: native kernel module graphics.library.kmod+0x00840680
r29: native kernel module graphics.library.kmod+0x00840680
ip : module Barony.exe at 0x7C1274C4 (section 5 @ 0x4DD4A0)
lr : module Barony.exe at 0x7C11EDD4 (section 5 @ 0x4D4DB0)
ctr: native kernel module kernel+0x0001e334

Stack trace:
(0x52C19270) module Barony.exe at 0x7C1274C4 (section 5 @ 0x4DD4A0)
(0x52C196B0) module Barony.exe at 0x7C11EDD4 (section 5 @ 0x4D4DB0)
(0x52C196E0) module Barony.exe at 0x7C11F220 (section 5 @ 0x4D51FC)
(0x52C19700) module Barony.exe at 0x7BC521A4 (section 5 @ 0x8180)
(0x52C19890) module Barony.exe at 0x7BCB1EF8 (section 5 @ 0x67ED4)
(0x52C19D00) native kernel module newlib.library.kmod+0x000020a4
(0x52C19D70) native kernel module newlib.library.kmod+0x00002d0c
(0x52C19F10) native kernel module newlib.library.kmod+0x00002ee8
(0x52C19F50) Barony.exe:_start()+0x170 (section 1 @ 0x1920)
(0x52C19F90) native kernel module dos.library.kmod+0x000255c8
(0x52C19FC0) native kernel module kernel+0x000420ac
(0x52C19FD0) native kernel module kernel+0x000420f4

Disassembly of crash site:
7C1274B4: 3929FD94 subi r9,r9,620
7C1274B8: 913F0008 stw r9,8(r31)
7C1274BC: 3D20580E lis r9,22542
7C1274C0: 8129C2EC lwz r9,-15636(r9)
>7C1274C4: 81290070 lwz r9,112(r9)
7C1274C8: 3D40580E lis r10,22542
7C1274CC: 810AC2EC lwz r8,-15636(r10)
7C1274D0: 38A0FFFE li r5,-2
7C1274D4: 3D4052E6 lis r10,21222
7C1274D8: 388AFDAC subi r4,r10,596
Stack pointer (0x52C19270) is inside bounds
Redzone is OK (4)

68k register dump
DATA: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
ADDR: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Page information:
Page not found


Best regards

HunoPPC
kas1e
Published: 2018/12/24 12:44  Updated: 2018/12/24 13:00
Home away from home
Joined: 09/11/2007
From: Russia
Comments: 5200
 barony
@Huno
Yeah, its not about config files, they automatically generated when not found..

Did you test it from jxfs or from other parition ? Also did you test it on public os4 setup, or on beta one ?
HunoPPC
Published: 2018/12/24 13:10  Updated: 2018/12/24 13:10
Just popping in
Joined: 12/28/2006
From: Besançon
Comments: 175
 Re: barony
@kas1e

Ok for a config file

I have not an jxfs partition and i use a normal system public and not betatest for this guru.
HunoPPC
328gts
Published: 2018/12/24 20:22  Updated: 2018/12/24 20:22
Home away from home
Joined: 07/07/2009
From: Toronto, Canada
Comments: 2300
 Re: GL4ESxmas for AOS4 coming ! First games using GL4ES !
kas1e, ptitseb, Hans, Daniel (Daytona) & HUNO....you guys ROCK Amiga style baby
jabirulo
Published: 2018/12/25 10:12  Updated: 2018/12/25 10:12
Not too shy to talk
Joined: 02/06/2007
From: Donostia (SPAIN)
Comments: 401
 Re: barony
THX ALOT kas1e and all people (you) involved in such task!!!!

merry xmas
invent
Published: 2018/12/27 0:57  Updated: 2018/12/27 0:57
Just popping in
Joined: 05/23/2014
From: Australia
Comments: 33
 Thanks...
Nice, just been playing Prototype, works well. Look forward to playing those others mentioned.
benny
Published: 2018/12/27 23:42  Updated: 2018/12/27 23:42
Just popping in
Joined: 12/08/2006
From: Netherlands
Comments: 69
 Re: GL4ESxmas for AOS4 coming ! First games using GL4ES !
Thank you for Friking shark, although unplayable on the Sam460e :(
kas1e
Published: 2018/12/28 10:46  Updated: 2018/12/28 10:46
Home away from home
Joined: 09/11/2007
From: Russia
Comments: 5200
 fricking shark
@Benny

As i told in news text, fricking shark have some little "pauses" when you first time play in it (i explain also reassons for). So once you run it first time, play a minute with those pauses, exit from the level, and start again : now all will be smooth. Well, not sure that it will be _that_ smooth on SAM, but for sure no pauses will be.
kas1e
Published: 2018/12/29 18:48  Updated: 2018/12/29 18:48
Home away from home
Joined: 09/11/2007
From: Russia
Comments: 5200
 barony
@all
Reuploaded new version of Barony on os4depot (at moment in upload query), which has fixes to make it works from SFS partitions, as well as deal with some other problems, and some in-depth readme which describe how install everything.

So if anyone have crashes with Barony , that version should deal with them.
amig_os
Published: 2019/2/23 17:53  Updated: 2019/2/23 17:53
Just popping in
Joined: 03/10/2016
From: Poland
Comments: 50
 Re: barony
Barony is my favorite game :)
Can You execute the aos4 game port "Eldritch" ?

Thx

https://www.eldritchgame.com/
https://github.com/MinorKeyGames/Eldritch
General
Site sponsors
Advertise Here

Site statistics
Registered members
  1432
Logged in last:
  24 hours, 44
  7 days, 83
  30 days, 127
Top Posters
1 kas1e   kas1e 5200
2 ChrisH   ChrisH 3551
3 Raziel   Raziel 3363
4 Chris   Chris 3221
5 orgin   orgin 3145
6 samo79   samo79 3121
7 LiveForIt   LiveForIt 2725
8 Antique   Antique 2469
9 328gts   328gts 2300
10 Hans   Hans 2120
New Members
Amigatizer   Amigatizer 05/27/2019
HelmutH   HelmutH 05/21/2019
21stcentury   21stcentury 05/19/2019
A3000T   A3000T 04/28/2019
robsoft   robsoft 04/26/2019
chiales   chiales 04/21/2019
spudmiga   spudmiga 04/07/2019
merzsalta   merzsalta 03/28/2019
Grimmtooth   Grimmtooth 03/22/2019
conan   conan 03/19/2019
Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project