Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
105 user(s) are online (64 user(s) are browsing Forums)

Members: 0
Guests: 105

more...

Headlines

 
  Register To Post  

« 1 (2) 3 4 5 ... 7 »
Re: Does OS4 SDL work in OPENGL mode?
Just can't stay away
Just can't stay away


See User information
@Hans

done.

Go to top
Re: Does OS4 SDL work in OPENGL mode?
Quite a regular
Quite a regular


See User information
@spotUP

Quote:

spotUP wrote:
@Mrodfr

protrekkr being slow has nothing to do with sdl.
the realtime synth is cpu hungry.


Swithed off ,on protrekker, and no improvements (allways slow) when playing the song.


This suggestion is more for maybe a new release of this program (with the new AOS4.1U1 recently). Maybe protrekker will run with more speed now.... ????

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?
Just can't stay away
Just can't stay away


See User information
i give up.

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'd just like to point out that ANYONE can work on OS4 SDL, you don't need permission, you can check out the SVN code at any time and work on it.

People often ask me to fix SDL, but if its GL related, i really don't know how to fix the problems (i've tried a couple of times). Also, my life these last few months has been a LOT busier than I expected. The only time I have for hobby programming is on the train (on my laptop) which is why there has been a lot of progress on Oricutron (I can code/test on Windows, and compile it on Amiga later), and not much on Amiga-specific projects (like the OS4-specific parts of SDL).

Anyway, if someone makes some fixes and wants commit access, they just have to ask me or Hans-Joerg.

If you are a developer and want to help improve OS4, SDL is one place where you can make a big difference right now.

There are some things that REALLY need to be done and are probably easier than fixing the GL issues:

* Prepare a new release of the current code. Apparently, I cocked some things up with my releases (statically compiled GL into the shared object, included an out-of-date static libSDL.a in the newlib archive...)

* Fix the bugs that Spot keeps nagging me to fix E-mail him for more info. Some of them are probably even quite easy to someone with the time to do it.

* Bring the code in line with 1.2.14. This is probably easier than it sounds. To go from 1.2.11 to 1.2.13, I downloaded the 1.2.11 OS4 sources to my PC, and used Beyond Compare to compare them to the official 1.2.13. I merged in all the changes, tweaked the configure script a bit (there were some new parts for 1.2.13 that required an amiga section), copied the result to the amigaone, configured it and built it. That was it, aside from some tweaking.

When you configure SDL on the amiga, just remember to disable pthreads, and it'll then use the OS4 native threading (for some reason it picks pthreads by default).

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


See User information
i've just commited some changes to SDL.

Now it is possible to load MiniGL function dinamycally and i've also fixed two small bugs to SDL_GL_STENCIL_SIZE and SDL_GL_DEPTH_SIZE values.

So now it is possible to compile games that needs GL_LoadLibrary and GL_GetProcAddress functions

i'm really tired...
Go to top
Re: Does OS4 SDL work in OPENGL mode?
Not too shy to talk
Not too shy to talk


See User information
@afxgroup

Perhaps you'd like to tackle this:

Quote:

* Prepare a new release of the current code. Apparently, I cocked some things up with my releases (statically compiled GL into the shared object, included an out-of-date static libSDL.a in the newlib archive...)


too?

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


See User information
@xeron

well, i've a libSDL.so that works correctly and that load MiniGL without problem.
I've only reconfigured and compiled the trunk.. so you should do the same without problem and without have to link nothing statically

i'm really tired...
Go to top
Re: Does OS4 SDL work in OPENGL mode?
Not too shy to talk
Not too shy to talk


See User information
@afxgroup

I can't prepare SDL releases at the moment. I don't get more than about 5 minutes in front of my AmigaOne every now and then for the time being :-/

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


See User information
BTW, i'll try to use SDL in Window mode but there is a problem that avoid vid_AllocDepthStencil in the MiniGL function that call IWarp3D->W3D_AllocZBuffer to works correctly.
I've print the most important field like width, height and so on and all seems ok.
I receive a W3D_NOGFXMEM from warp3d but i don't know why.. the videomemory is almost free (52MB) and i don't think there is no memory for a 320x256x16 buffer..
Since i don't have no clue why Warp3D fail i give up for now

i'm really tired...
Go to top
Re: Does OS4 SDL work in OPENGL mode?
Quite a regular
Quite a regular


See User information
@afxgroup

maybe on this post:

http://utilitybase.com/forum/index.ph ... orum=22&topic=1769&page=1

for sure It's 68k but surely problems are on all versions. I haven't the knowledge but surely on utilitybase some help coould be found...

Additionnaly, you could post about his problem on utilitybase and surely alain thellier (wazp3D author) will surely answer. I think he know verry well the problems of Warp3D.

Yes, I also would like to see a great warp3D/SDL and miniGL working on AOS4

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
@afxgroup

Quote:

afxgroup wrote:
BTW, i'll try to use SDL in Window mode but there is a problem that avoid vid_AllocDepthStencil in the MiniGL function that call IWarp3D->W3D_AllocZBuffer to works correctly.
I've print the most important field like width, height and so on and all seems ok.
I receive a W3D_NOGFXMEM from warp3d but i don't know why.. the videomemory is almost free (52MB) and i don't think there is no memory for a 320x256x16 buffer..
Since i don't have no clue why Warp3D fail i give up for now


I don't quite understand this. GLUT has no trouble with windowed mode, and neither does Blender, which does its own buffer management.

How are you creating the MiniGL context? What are you doing to set the front and back buffers? If you need help with this, talk to Andy (Broadblues) about how he did the buffer management in Blender.

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?
Amigans Defender
Amigans Defender


See User information
@Hans

yes, but SDL use this way to create the context:

IGL IMiniGL->CreateContextTags(
                         
MGLCC_Bitmap,            
bm
                        
MGLCC_StencilBuffer
   ((
_this->gl_config.stencil_size 0) ? TRUE FALSE),                             
TAG_DONE);


while GLUT use:

ctx->__glutContext IMiniGL->CreateContextTags(
                
MGLCC_Width,            ctx->__glutWindowWidth,
                
MGLCC_Height,            ctx->__glutWindowHeight,
                
MGLCC_WindowLeft,         ctx->__glutWindowX,
                
MGLCC_WindowTop,         ctx->__glutWindowY,
                
MGLCC_Windowed,            TRUE,
                
MGLCC_Buffers,            ctx->__glutDisplayMode GLUT_DOUBLE 1,
                
MGLCC_PixelDepth,        16,
                
MGLCC_CloseGadget,        TRUE,
                
MGLCC_SizeGadget,        TRUE,
                
MGLCC_StencilBuffer,    ctx->__glutDisplayMode GLUT_STENCIL TRUE FALSE,
            
TAG_DONE);


maybe there is something different between two modes and something is not initialized correctly when SDL fill the context values but since i don't know why AllocZBuffer fail (except for that error code) it is hard to know what is wrong

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

If I understand correctly, windowed mode is not implemented for SDL with GL yet.

Glut uses the internal minigl windowed mode, whereas blender uses a custom mode using the new tags with give greater control over the buffers, I suspect SDL will need to take the 'blender approach'.

As well as lacking windowed mode there doesn't seem to be any support for GL double buffereing either, I can take a look at this eventually but at the meoment my time is full for a few weeks at least, so if anyone else wants to have ago, I'll happily answer questions on the tecnique I used for blender, and the meanings of the new minigl context creation tags.

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


See User information
@broadblues

maybe you can start to show your code..
So maybe we can understand what is wrong with our code..

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

Quote:

afxgroup wrote:
@Hans

yes, but SDL use this way to create the context:

... snip...


I realize that, but SDL full-screen doesn't seem to have an issue, unless none of the existing SDL OpenGL games have used the stencil buffer.

Anyway, SDL's use of MiniGL needs to be updated to the method that Broadblues uses in Blender, so that double-buffering is implemented fully.

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?
Amigans Defender
Amigans Defender


See User information
@Hans

i've found the blender source code. I'll take a look at it.

i'm really tired...
Go to top
Re: Does OS4 SDL work in OPENGL mode?
Amigans Defender
Amigans Defender


See User information
i've made a quick look at the code. tomorrow i'll try to change the current context method with new one.
Stay near this forum..

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

Cool, will be very nice if you will add that. Even just a window mode support for OGL progs will be nice :)

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
@afxgroup

You've most likely found it by now but the relavent files are in the



intern/ghost/intern/GHOST_Window0S4.cpp

and to alesser extent

intern/ghost/intern/GHOST_System0S4.cpp

feel free to ask if anything confuses, it not the tidiest bit of code ever released

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


See User information
@broadblues

let me try something.. i cannot test anything at moment since i'm out of my city for work.. would be great if we could have an os4 notebook..

i'm really tired...
Go to top

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

 




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




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project