Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
53 user(s) are online (37 user(s) are browsing Forums)

Members: 2
Guests: 51

nbache, emeck, more...

Headlines

 
  Register To Post  

(1) 2 3 4 ... 7 »
Does OS4 SDL work in OPENGL mode?
Home away from home
Home away from home


See User information
I've just been taking a quick look at porting makehuman, a program for moddeling errm 'humanoids' written in python and C. It uses SDL and OpenGL.

I thought that SDL worked with minigl but I can't seem to get anywhere with it.

It fails to open a window, and exits

This call returns NULL

g_screen SDL_SetVideoMode(G.windowWidthG.windowHeight24SDL_OPENGL 
    (
G.fullscreen SDL_FULLSCREEN 0) | 
     
SDL_RESIZABLE);


whether or not I force fullscreen. I remember reading that windowed mode didn't work but fullscreen did?

windowWidth and windowHeight are 800 x 600
SDL_GetError() returns an empty string

This was supposed to be a bit of light relief in between blender updates! :-/

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


See User information
@broadblues

link with -lGL -lGLU -lSDL and not with -lSDL -lGL -lGLU.

It should work.. or at least it was working in the past..

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

Thanks for the reply. My link line is

g++ -use-dynld -lpython25 -lexpat -lpthread -lz -ldl src/core.o src/glmodule.o src/main.o -o makehuman -lGL -lGLU -lSDL

It links fine, just fails to open a window....

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


See User information
@broadblues

I downloaded Hans De Ruiter example SDL / GL app and that worked fine, so not SDL issue.

After a little head scratching I noticed that Hans was pasing 0 as the 'depth' where the program was passing 24, changed to 0 and it works fine. Well it opened a window on a screen anyway...

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


See User information
@broadblues

SDL's MiniGL support needs work. To be honest, the SDL port would benefit from a larger update to add things such as HW accelerated blending using OS 4.1's compositing functions.

The problem is finding someone who is able and willing to do the work.

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
@broadblues
If you remember, some time ago i ask you about some help related to new buffer management functions techniq. in the minigl2.2 , and that was because i tryed to implement window mode support for openl/sdl progs. But, after i while i just understand that it's too complicated work for me, and better to do that by someone who have more skills with minigl2.2 and sdl code at all.

In general, i just hope in mind, that someday Hans will be tired of our current SDL realisation, and will fix all that crappy bugs :) (i know, hes busy with hd-drivers,etc, but still ..).

Hans also make a request, on amigabounty about that SDL perfomance/bug fixing (here), 1 month ago. But, it's still in "suggestion" state, and no any dollars on that bounty still (i think its because of suggestion state of bounty? ).

Bounty looks fine, and not so complicated. And when i see that it was created by Hans, i think that he in interest about it, so, if bounty will be suggested, i think we can promoute that bounty well, and have some money for (i will spend to that bounty for sure). And maybe it will be little motivation to Hanz to do the work (why i say about Hanz always, because i know - he will do it right and good, because he minigl2.x author :) )

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Does OS4 SDL work in OPENGL mode?
Just can't stay away
Just can't stay away


See User information
@Afx

What's the difference between the two lines??

Quote:

link with -lGL -lGLU -lSDL and not with -lSDL -lGL -lGLU.

Go to top
Re: Does OS4 SDL work in OPENGL mode?
Just popping in
Just popping in


See User information
@nubechecorre

link order. You need to link parts in correct order to make it work.

Go to top
Re: Does OS4 SDL work in OPENGL mode?
Just can't stay away
Just can't stay away


See User information
@flow

but only with SDL apps or also with OpenGL, for example?

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


See User information
@nubechecorre

you typically need to link any app in the correct order.

the link is a once pass operation, so it to find things in the right order they have to occur with the dependency first, sometimes repeating libraries is also required.

if a needs b, b must come before a



ironically in this case, when linking dynamically, you dont need the -lGL bit at all, as libGL.a has been built into libSDL.so (possibly by accident...) but when static, sdl needs things in gl, so gl must come first, so that the linker knows thet exist there.

Go to top
Re: Does OS4 SDL work in OPENGL mode?
Not too shy to talk
Not too shy to talk


See User information
@Hans

mmm...
Maybe we need a bounty for making a big update on SDL to finally get a SDL port with decent speed?
Remeber that the major AmigaOS4.1 hw we have was LOW spec...
I think that maybe was a neede bounty...

Simone"Tuxedo"Monsignori, Perugia, ITALY.
Go to top
Re: Does OS4 SDL work in OPENGL mode?
Home away from home
Home away from home


See User information
@Tuxedo

Quote:

Tuxedo wrote:
@Hans

mmm...
Maybe we need a bounty for making a big update on SDL to finally get a SDL port with decent speed?
Remeber that the major AmigaOS4.1 hw we have was LOW spec...
I think that maybe was a neede bounty...


As kas1e said, I created a bounty about a month ago here. This is one situation where I hope that someone else will take on the work. I can't afford to take on yet another project that will slow down my Radeon HD driver work.

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

whoopsss!
I miss that sorry!
But have you publicize that???
I dont read anytyhing around...
Hope that will be accpeted SOON!!!!!
We need that!

GOOD Luck!

Simone"Tuxedo"Monsignori, Perugia, ITALY.
Go to top
Re: Does OS4 SDL work in OPENGL mode?
Home away from home
Home away from home


See User information
@Tuxedo

Yes,we need it. But,the problem is that most of us(including myself) doesn't have the required skills to fullfill that bounty.

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


See User information
@Tuxedo

It hasn't been advertised much because the bounty's status is still "suggested," not open.

@Antique

Quote:

Antique wrote:
@Tuxedo

Yes,we need it. But,the problem is that most of us(including myself) doesn't have the required skills to fullfill that bounty.


Someone who is familiar with graphics programming shouldn't find it too hard. I'm willing to help explain how to interface with MiniGL, although Broadblues knows more about the new buffer management functions than I do. The guys behind Bubbelsche Deluxe should know more than enough about compositing in order to implement it in the SDL port. After all, their own graphics engine uses compositing very effectively.

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

I might (but not promising at this point) take a look at the SDL / MinigL windowed mode code, myself, this makehuman thing I'm working on would benifit by being windowed. I haven't looked at the code in any detail yet, but I can't imagine it's that difficult.

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


See User information
@broadblues

Thanks for taking a look on this subject in a near futur

I think there are some guys around, like HunoPPC,.... who could help you greatly to locate the problem with SDL and/or MiniGL (mainly the window problem and surely bugs and problems). For example, the 100% CPU when playing a song with protrekker SDL,....

There are also hymonimus (erm!!) to help to found CPU hungry SDL functions.

And at last but not least, the han's bounty could be filled with money if someone take this boulty


Great, maybe a java and a SDL bounty will maybe be accepted by an amiga programmer in the futur...

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

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

Go to top
Re: Does OS4 SDL work in OPENGL mode?
Just can't stay away
Just can't stay away


See User information
@hans

it would be great if that bounty would include adding support for overlay as well.

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


See User information
@spotUP

Quote:

spotUP wrote:
@hans

it would be great if that bounty would include adding support for overlay as well.


I didn't realize that SDL had overlay support. Please write a comment on the bounty. It's not opened yet, so there's still time to add it.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top

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

 




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




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project