![]() |
|
AllegroGL help |
Paladin
Member #6,645
December 2005
![]() |
I just recently started into allegrogl, and I"m not sure what all of this means, but I know a bit of it. This code compiles fine, but when I run it, I get the standard windows error "This program has experienced an error and needs to close".
I remember openlayer not working for my computer, so I don't think allegrogl does either. OpenGL does work as far as I know because I've played games with OpenGL only. I dunno what's going on. Any help would be pretty awesome right now. Thanks a lot. |
Kitty Cat
Member #2,815
October 2002
![]() |
Where's all your error checking code? Unless you know precisely what you're doing, and sometimes even then, if something can fail, make sure it doesn't. And you also need allegro_gl_flip(); before readkey();. -- |
Milan Mimica
Member #3,877
September 2003
![]() |
Tell us the AGL version, and yes, check for return values.
-- |
GullRaDriel
Member #3,861
September 2003
![]() |
Allegro version is needed too. Thanks. "Code is like shit - it only smells if it is not yours" |
Paladin
Member #6,645
December 2005
![]() |
Ok well I'm using allegro 4.2 (Should I be using 4.3 now? I thought it still had bugs) and I put in some checks and I checked for the return values of install_keyboard and set_gfx_mode. Basically I have an allegro_message after a couple of actions. So it installs allegro and allegrogl, installs the keyboard, suggests the graphics mode, but once I actually get to set_gfx_mode, it crashes. EDIT: Also, one of the main reasons I don't have a lot of checks for return values is I'm not sure exactly what all returns values. Since I've never used AllegroGL, I still don't know what everything does, but I guess I get the general idea. |
GullRaDriel
Member #3,861
September 2003
![]() |
You just have to read Allegro && AllegroGL documentations to found the return values. Try to compile a debug version (link with -lallegd and (i do not remember the name) the debugged version of AllegroGL)) Do the AllegroGL examples works fine ? And Allegro ones ? Do you have a proper driver for your GFX card ? What is your GFX card ? EDIT: _ "Code is like shit - it only smells if it is not yours" |
Paladin
Member #6,645
December 2005
![]() |
I'm not sure where to find some allegroGL examples, but the allegro ones do. All of Shawn Hargreaves 3d examples work, but I don't think he's using allegroGL. Every single OpenLayer or AllegroGL game for me though seems to fail. I'm not sure how to check my drivers for my graphics card since I'm not really that well-versed on the topic. My gfx card is a piece of crap, it's an Intel Graphics Media Accelerator 900, built in with the computer. At the moment I'm trying to get a new one, but can't afford one at the moment. Like I said in my first post, I just think that my graphics card isn't good enough to handle AllegroGL. |
Richard Phipps
Member #1,632
November 2001
![]() |
Your gfx card can handle DirectX 3D games can't it? I'm not sure if there are OpenGL drivers out there for it, but I find it hard to believe you can't do at least basic 3D gfx with it.. |
Paladin
Member #6,645
December 2005
![]() |
Yea, neither can I. It supports direct X games fine, and I'm sure I've even played some OpenGL games fine, I really don't know what the deal is. I've tried looking into it a bit further, but I don't find much unfortunately. |
Richard Phipps
Member #1,632
November 2001
![]() |
Well, according to Wikipedia: Quote: GMA 900 On Intel i910G, Intel i915G, Intel i915Gx chipset motherboards. T/L support: Software based (no Hardware T&L Support) Clock speed: 333 MHz Pixel Pipelines: 4 Pixel Fillrate: 1333 MPixel/s Vertex Shaders: 1 (v2.0) (software) Pixel Shaders: 4 (v2.0) (hardware) OpenGL: Yes. v.1.4 DirectX (hardware): Yes. v.9.0 Notice the OpenGL 1.4 support. Intel's page: And details on drivers and support: |
Bob
Free Market Evangelist
September 2000
![]() |
Can you tell which line in your program triggers the error? -- |
Paladin
Member #6,645
December 2005
![]() |
Ok well you're much better at finding things than I am Richard. |
Bob
Free Market Evangelist
September 2000
![]() |
Can you track down the crash inside of AGL? Maybe the allegro.log file contains some useful information? -- |
Paladin
Member #6,645
December 2005
![]() |
I don't get an allegro.log, isn't that only with Visual-C++? I'm using Dev-C++ atm. |
Bob
Free Market Evangelist
September 2000
![]() |
You need to build the debug version of AllegroGL and link with agld.a -- |
Milan Mimica
Member #3,877
September 2003
![]() |
Tell us the AGL version!!! I'm guessing the error you are experiencing was fixed in the current SVN version.
-- |
Paladin
Member #6,645
December 2005
![]() |
Sorry I haven't replied, my internet has been down for almost 3 hours. Internet service really sucks here. I know this sounds stupid, but I've looked around and I can't find what version of AllegroGL I'm using. I'll compile a debug version and post the results here later as well. Could you tell me how to find out the version of AllegroGL I have? Sorry, I'm a bit slow. |
Bob
Free Market Evangelist
September 2000
![]() |
printf("%s\n", AGL_VERSION_STR); -- |
Paladin
Member #6,645
December 2005
![]() |
0.2.5 CVL is the version I have. |
Milan Mimica
Member #3,877
September 2003
![]() |
old edit:
-- |
Paladin
Member #6,645
December 2005
![]() |
I feel incredibly stupid. I have no clue how to compile AllegroGL so I can use it for dev C++. I looked around, but I can't find anything. Can you help me with this? |
Evert
Member #794
November 2000
![]() |
Quote: Should I be using 4.3 now? I thought it still had bugs You absolutely shouldn't use 4.3. It's not yet suitable for normal use (just for testing). |
miran
Member #2,407
June 2002
|
Quote: I feel incredibly stupid. I have no clue how to compile AllegroGL so I can use it for dev C++. I looked around, but I can't find anything. Can you help me with this? Did you read the readme files? -- |
Richard Phipps
Member #1,632
November 2001
![]() |
Quote:
Mingw/32 instructions Mingw 2.0 and higher already come with the OpenGL header files If you don't have the OpenGL header files (GL/gl.h) and libraries, you will If you obtained the self-extracting archive from the Microsoft site, then You will need to run 'fix mingw32' in the AllegroGL directory For an optimised build, run `make' from the directory containing For a debug build, do the same but write `DEBUGMODE=1' on each
It worked fine for me. I had to install the lib and header files in my Dev-c directory manually, but that's to be due to a strange dev-c folder setup some years ago. The new version seems to work fine for my game and I hope that means for more people than with the old 0.2.5 version. |
Paladin
Member #6,645
December 2005
![]() |
Well I tried to read the readme files but they got all messed up when I unzipped them. Sorry for not replying and seeming incredibly stupid, just internet is been very jacked up lately. So Richard, you just took the header files and the lib files and just put them right into the folders for Dev-C++? |
|
|