Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
74 user(s) are online (50 user(s) are browsing Forums)

Members: 1
Guests: 73

rwo, more...

Headlines

Forum Index


Board index » All Posts (AmiDARK)




MiniGL 2.3 and glReadPixels( .... )
Quite a regular
Quite a regular


Hi,

With MiniGL 2.2 when I want to create an image directly by grabbing pixels on openGL screen, I used :
Quote:

glReadBuffer( GL_BACK );
glReadPixels( X, Y, Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, NewPicture->Pixels );


but now, with miniGL 2.3 ... I only get an image entirely grey.
I tried to change glReadBuffer with GL_FRONT or remove the command to see it MiniGL automatically use the correct buffer ... but nothing worked.
Hans, I've seen you've made changes concerning buffer in MiniGL 2.3 ... What can I do to fix this issue ?

More to this, do you plan to add glBlendEquation() functions in MiniGL ?

EDIT:
Here is my grab image function :
Quote:

...
glMatrixMode( GL_PROJECTION );
glLoadIdentity();
gluOrtho2D( 0.0, (float)BasicSetup.DisplayWIDTH, 0.0, (float)BasicSetup.DisplayHEIGHT );
glMatrixMode( GL_MODELVIEW );
glLoadIdentity();
INTERNAL_PrepareImageMode( NewIndex, ImageMode );
// glReadBuffer( GL_BACK );
glReadPixels( iX1, iY1, Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, NewPicture->Pixels );
...


It worked with MiniGL 2.2 ... now my screen flash to grey when I use my image grabbing ...

Thank you.

Kindest Regards,
AmiDARK.


Edited by freddix on 2010/11/1 12:37:37
Edited by freddix on 2010/11/1 12:39:35
Edited by ssolie on 2010/11/1 21:14:45
All we have to decide is what to do with the time that is given to us.
Go to top


Re: AMIWEST: Applications Demo - Summary Page
Quite a regular
Quite a regular


Interesting page with lots of good links :)

All we have to decide is what to do with the time that is given to us.
Go to top


Re: AmiDARK Engine Alpha Release 3
Quite a regular
Quite a regular


@nubechecorre
strange
try this one : freddbprojects ( at ) wanadoo (dot ) fr

I received today an e-mail from someone of the forums and I've answered him.

All we have to decide is what to do with the time that is given to us.
Go to top


Re: AmiDARK Engine Alpha Release 3
Quite a regular
Quite a regular


@ChrisH
Try again, I'll check in my webmail if your e-mail appear in the default SPAM folder ...

All we have to decide is what to do with the time that is given to us.
Go to top


Re: AmiDARK Engine Alpha Release 3
Quite a regular
Quite a regular


@ChrisH
Try : fred ( at ) amidark ( minus ) engine ( dot ) com
it should work, I receive e-mail from everyone here.

if it don't work, sene me your e-mail in PM here and I'll send you an e-mail directly. It should then work.

All we have to decide is what to do with the time that is given to us.
Go to top


Re: AmiDARK Engine Alpha Release 3
Quite a regular
Quite a regular


Thank you all :)

All we have to decide is what to do with the time that is given to us.
Go to top


AmiDARK Engine Alpha Release 3
Quite a regular
Quite a regular


Resized Image

Hi,
The new AmiDARK Engine Alpha Test Release 3 is available for download.

Feel free to jump at : http://www.amidark-engine.com/spip.php?article2
for more informations concerning the Alpha Release 3

Kindest Regards,
AmiDARK

All we have to decide is what to do with the time that is given to us.
Go to top


Re: Screen Blanker & MiniGL ?
Quite a regular
Quite a regular


@kas1e
Can you try this demo :
http://files.amidark-engine.com/mAlchimieDemo.lha
It's compiled with the fresh SDK install ...
Hope it'll not crash on your Amiga ...

All we have to decide is what to do with the time that is given to us.
Go to top


Re: Screen Blanker & MiniGL ?
Quite a regular
Quite a regular


@kas1e
yeah ... probably ..

With fresh install, I had to reinstall additional libs for audio/music and nw the AmiDARK Engine compiles again :)

I will release new versions of demos this week-end to see if they always crash on your computer ....

All we have to decide is what to do with the time that is given to us.
Go to top


Re: Screen Blanker & MiniGL ?
Quite a regular
Quite a regular


@Shadow
Yes ...
Strange ... In fact I think that there were files that came from another version ok SDK that was incompatible with the Hyperions ones
(there were files added by a friend to add new user libs ...)

Now all restart from fresh SDK
I hope it will fix your crash issue with AmiDARK Engine Kas1e ;)

I will make tests this week-end :)

Thank you all for your help.

All we have to decide is what to do with the time that is given to us.
Go to top


Re: Screen Blanker & MiniGL ?
Quite a regular
Quite a regular


@kas1e
DL ok ... but compilation errors .. with strlen and LP2NR requiring 16 arg and having only 10 ...

All we have to decide is what to do with the time that is given to us.
Go to top


Re: Screen Blanker & MiniGL ?
Quite a regular
Quite a regular


@kas1e
I can't DL your file ..
It redirect to here : http://narod.yandex.ru/100.xhtml?kas1e.narod.ru/glblanker.rar
And it's in a language I don't understand ..
Probably something with registered/unregistered access or unexisting file/link ?

All we have to decide is what to do with the time that is given to us.
Go to top


Re: Screen Blanker & MiniGL ?
Quite a regular
Quite a regular


@Shadow
Yes
I've opened a newcli in the blanker path
and typed :
Make -f makefile

:p

EDIT : Same here as Kas1e, can't download zip/bz/gzip full package ... error 404 ...


Edited by freddix on 2010/10/23 10:35:27
All we have to decide is what to do with the time that is given to us.
Go to top


Re: Screen Blanker & MiniGL ?
Quite a regular
Quite a regular


@Shadow
I tried to compile 1 of your blanker and I get this :

Quote:

In file included from ../BlankerStartup/Startup.inl:25,
from GLBlockTypeModule.c:21:
/SDK/newlib/include/string.h:34: error: conflicting types for 'strlen'
make: *** [GLBlockTypeModule.o] error 1


I hate that kind of error because we never know exactly from where it came ...

Any clue ?

All we have to decide is what to do with the time that is given to us.
Go to top


Re: Screen Blanker & MiniGL ?
Quite a regular
Quite a regular


@kas1e
lool :p Ok ... I understand then ;)

All we have to decide is what to do with the time that is given to us.
Go to top


Re: Screen Blanker & MiniGL ?
Quite a regular
Quite a regular


@Kas1e :
With the Hans help, no more crash now :)

@Shadow
Ok,
I've DL 1 blanker and the template and common/blankerstartup files
so I can start checking how you've done them :)

All we have to decide is what to do with the time that is given to us.
Go to top


Re: Screen Blanker & MiniGL ?
Quite a regular
Quite a regular


@Shadow
already tried ... don't work ... Zip ... BZ ... GZip ... don't work too :(

EDIT :
And, more to this, when I want to save 1 file ( right click and save target as ... ) it save the file as .htm file format with the entire page setup ... not only the source code :(

All we have to decide is what to do with the time that is given to us.
Go to top


Re: Screen Blanker & MiniGL ?
Quite a regular
Quite a regular


@Shadow:
Thank you for the link.
I will download them later today (when I'll be back at home :) )
But, is there a way to DL everything at once ? because there are lots of files there :p
@+
AmiDARK.

All we have to decide is what to do with the time that is given to us.
Go to top


Re: Screen Blanker & MiniGL ?
Quite a regular
Quite a regular


@Hans
Thank you Hans,

Now it compile correctly.

I haven't changes the blanker inside the lib, it's always the commander one.
When I try to test module ... it send grim reaper ...
I'll try to find how to fix this ...
The preview of the blanker work ok.

EDIT :
I've fixed the crash but readding the openlibrary/getinterface for Intuition.
(I think MiniGL is not automatically setup when the lib is run)

All we have to decide is what to do with the time that is given to us.
Go to top


Re: Screen Blanker & MiniGL ?
Quite a regular
Quite a regular


@Hans
Ok ... = NULL; removed ....

Quote:
gcc -D__NOLIBBASE__ -D__NOGLOBALIFACE__ -D__AMIGADATE__=\"`c:date LFORMAT %d.%m.%Y`\" -Wall -Werror -O3 -gstabs -DMINIGL -c -o Blanker_FlyingFeather.o Blanker_FlyingFeather.c
gcc -mcrt=newlib -nostartfiles -lm -o Feather.blanker Blanker_FlyingFeather.o -lAmiDARK -lm -lGL -IGLUT
Blanker_FlyingFeather.o: In function `MakeGUI':
AmiDARK:Shared/AmiDARK_Blanker.c:1258: undefined reference to `IIntuition'
AmiDARK:Shared/AmiDARK_Blanker.c:1258: undefined reference to `IIntuition'
AmiDARK:Shared/AmiDARK_Blanker.c:1258: undefined reference to `IIntuition'
AmiDARK:Shared/AmiDARK_Blanker.c:1258: undefined reference to `IIntuition'
AmiDARK:Shared/AmiDARK_Blanker.c:1258: undefined reference to `IIntuition'
Blanker_FlyingFeather.o:AmiDARK:Shared/AmiDARK_Blanker.c:1258: more undefined references to `IIntuition' follow
/SDK/local/newlib/lib/libAmiDARK.a(libAmiDARK.o): In function `SETUP_Constructor':
/SDK/local/newlib/include/mgl/glut.h:24: undefined reference to `__glut_current_context'
/SDK/local/newlib/include/mgl/glut.h:24: undefined reference to `__glut_current_context'
/SDK/local/newlib/lib/libAmiDARK.a(libAmiDARK.o): In function `SETUP_Destructor':
/SDK/local/newlib/include/mgl/glut.h:63: undefined reference to `__glut_current_context'
/SDK/local/newlib/include/mgl/glut.h:63: undefined reference to `__glut_current_context'
/SDK/local/newlib/lib/libAmiDARK.a(libAmiDARK.o): In function `DEShowWindow':
/SDK/local/newlib/include/mgl/glut.h:105: undefined reference to `__glut_current_context'
/SDK/local/newlib/lib/libAmiDARK.a(libAmiDARK.o):/SDK/local/newlib/include/mgl/glut.h:105: more undefined references to `__glut_current_context' follow
/SDK/local/newlib/lib/libAmiDARK.a(libAmiDARK.o): In function `LoadPicture':
AmiDARK:Shared/AmigaOS4/AmigaOS_DataTypes.c:94: undefined reference to `IIntuition'
AmiDARK:Shared/AmigaOS4/AmigaOS_DataTypes.c:94: undefined reference to `IIntuition'
AmiDARK:Shared/AmigaOS4/AmigaOS_DataTypes.c:111: undefined reference to `IIntuition'
AmiDARK:Shared/AmigaOS4/AmigaOS_DataTypes.c:121: undefined reference to `IIntuition'
AmiDARK:Shared/AmigaOS4/AmigaOS_DataTypes.c:121: undefined reference to `IIntuition'
/SDK/local/newlib/lib/libAmiDARK.a(libAmiDARK.o): In function `DESetWindowOff':
/SDK/local/newlib/include/mgl/glut.h:255: undefined reference to `__glut_current_context'
/SDK/local/newlib/include/mgl/glut.h:255: undefined reference to `__glut_current_context'
/SDK/local/newlib/include/mgl/glut.h:261: undefined reference to `__glut_current_context'
/SDK/local/newlib/include/mgl/glut.h:266: undefined reference to `displayWarningReq'
/SDK/local/newlib/lib/libAmiDARK.a(libAmiDARK.o): In function `DESetDisplayMode':
AmiDARK:Shared/Setup/setup.c:36: undefined reference to `__glut_current_context'
/SDK/local/newlib/lib/libAmiDARK.a(libAmiDARK.o): In function `DESetDisplayMode':
/SDK/local/newlib/include/mgl/glut.h:39: undefined reference to `__glut_current_context'
/SDK/local/newlib/include/mgl/glut.h:29: undefined reference to `__glut_current_context'
/SDK/local/newlib/include/mgl/glut.h:34: undefined reference to `__glut_current_context'
/SDK/local/newlib/include/mgl/glut.h:45: undefined reference to `__glut_current_context'
/SDK/local/newlib/lib/libAmiDARK.a(libAmiDARK.o):/SDK/local/newlib/include/mgl/glut.h:63: more undefined references to `__glut_current_context' follow
/SDK/local/newlib/lib/libAmiDARK.a(libAmiDARK.o): In function `DESetDisplayMode':
/SDK/local/newlib/include/mgl/glut.h:50: undefined reference to `displayWarningReq'
/SDK/local/newlib/lib/libAmiDARK.a(libAmiDARK.o): In function `DarkENGINE_End':
/SDK/local/newlib/include/mgl/glut.h:145: undefined reference to `__glut_current_context'
/SDK/local/newlib/include/mgl/glut.h:145: undefined reference to `__glut_current_context'
/SDK/local/newlib/include/mgl/glut.h:150: undefined reference to `__glut_current_context'
/SDK/local/newlib/include/mgl/glut.h:170: undefined reference to `__glut_current_context'
/SDK/local/newlib/include/mgl/glut.h:175: undefined reference to `__glut_current_context'
/SDK/local/newlib/lib/libAmiDARK.a(libAmiDARK.o):/SDK/local/newlib/include/mgl/glut.h:145: more undefined references to `__glut_current_context' follow
make: *** [Feather.blanker] Error 1


Even if I change the position of -IGLUT in the link.

All we have to decide is what to do with the time that is given to us.
Go to top



TopTop
« 1 ... 6 7 8 (9) 10 11 12 ... 37 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project