|
[AllegroGL] Doesn't render nothing! |
Niunio
Member #1,975
March 2002
|
I decided to translate all NeHe's tutorials to AllegroGL to learn more about OpenGL and 3D programming, but I have a problem with the first one. It compiles without errors but it shows a black window and doesn't check the keyboard. I can't find what's wrong with it. The source:
The command used to compile: gcc -s -Wall -DDEBUGMODE -Isrc -o lesson02.bin lesson02.c -lagl `allegro-config --libs` -lGL -lGLU I'm using Allegro 4.2 and one of the AllegroGL VSN versions that Miran posts here. ----------------- |
razor
Member #2,256
April 2002
|
EDIT: Oops didn't see the flip command. What OS? Whoooo Oregon State University |
Niunio
Member #1,975
March 2002
|
I'm using the latest stable and updated Debian Sarge Linux. Now, I've re-compiled an AllegroGL project I did before to update AllegroGL and it renders the objects but doesn't check keyboard nor mouse. Maybe it's an AllegroGL's bug? ----------------- |
razor
Member #2,256
April 2002
|
You never setup the projection matrix. EDIT: Here's a quick fix
Whoooo Oregon State University |
Niunio
Member #1,975
March 2002
|
Good, now it renders, but keyboard doesn't work! ----------------- |
razor
Member #2,256
April 2002
|
Thats strange... the keyboard works when I compile that exact code, but I'm running WinXP Sp2 W/ MingW. Sounds like something funky. Does input work in other allegro programs? Whoooo Oregon State University |
Niunio
Member #1,975
March 2002
|
Yes, it does. Also in OpenGL programs. Only AllegroGL has problems, but if I use the latest stable version seems to work right... ----------------- |
razor
Member #2,256
April 2002
|
Hmm, this might be a question for the AllegroGL Developers then... cause maybe something is up with the CVS version and your hardware or something. Whoooo Oregon State University |
BrknPhoenix
Member #7,304
June 2006
|
edit: Nevermind, you have a poll_keyboard()... |
Milan Mimica
Member #3,877
September 2003
|
It works here, on linux too. Can you check install_keyboard() return value? Which version of X11 do you have?
-- |
Thomas Fjellstrom
Member #476
June 2000
|
Actually, you should never need to call poll_keyboard... -- |
Niunio
Member #1,975
March 2002
|
Milan Mimica said: Can you check install_keyboard() return value? It returns 0. Milan Mimica said: Which version of X11 do you have? I am not sure. Synaptic says that package "xfree86-common" is version "4.3.0.dfsg.1-14sarge1" and same for packages "xbase-clients", "x-dev" and "xlibs-dev". Thomas Fjellstom said: Actually, you should never need to call poll_keyboard... I know. I put it trying to fix the problem. ----------------- |
Milan Mimica
Member #3,877
September 2003
|
Seems the version is 4.3.0 - a bit old but it definitely should work. You should build a debug version of AGL and check the allegro.log that your program will produce. Oh, and try to switch in and out od the program (atl+tab). It usually helps And which version of AGL exactly are you using? Where did you get it? edit: and do AGL examples work?
-- |
Niunio
Member #1,975
March 2002
|
I can't rebuild the library... Can't find the makefile! And I don't remember how I did it! I think I'll try to get the latest SVN and try to rebuild it. [edit]Running "autoconf": ----------------- |
Milan Mimica
Member #3,877
September 2003
|
run
-- |
Niunio
Member #1,975
March 2002
|
[edit]Forget it, I've find it in "automake" package. AAAAAAAAAAARG...! Quote:
configure: creating ./config.status Somebody hates me... sure!>:( ----------------- |
Milan Mimica
Member #3,877
September 2003
|
autoheader edit: yeah, that should be fixed in SVN
-- |
Niunio
Member #1,975
March 2002
|
I've downloaded the AllegroGL 0.4.0 RC4 and I've find that the examples runs except 3 of them: exmipmaps, exgui and excamera. They show the first frame(s) and fails whith next message: xlib: unexpected async reply (sequence 0x11c)! Then I must kill the process. I've attached the log files for each example. [edit]I confused myself... sorry ----------------- |
Milan Mimica
Member #3,877
September 2003
|
you read mine
-- |
Niunio
Member #1,975
March 2002
|
Ok. AllegroGL 0.4.0 RC4 seems to work. Next time I'll check if a newer version is avaiable before to ask.
----------------- |
|