Allegro.cc - Online Community

Allegro.cc Forums » Off-Topic Ordeals » OpenLayer Issues

This thread is locked; no one can reply to it. rss feed Print
OpenLayer Issues
LennyLen
Member #5,313
December 2004
avatar

I vaguely remember this being brought up before, but I can't remember if it was resolved, and I was undable to find old posts about it...

Whenever I try to run anything written with OL, I get two small images instead of a single window or full screen display. See the following image:

http://homepages.inspire.net.nz/~lennylen/images/shot.jpg

I suspect the problem is with my onboard Gfx card which is a GeForce 4 MX. Does anyone else with the same card have the same problem?

Erkle
Member #3,493
May 2003
avatar

That happens on one of my friends PCs. But every PC i've tried has had the can't-move-window bug where the window just keeps snapping back to it original position.:-/

If the writing above has offended you, you've read it wrong.....fool.
And if you read that wrong it means 'All of the above is opinion and is only to be treated as such.'

LennyLen
Member #5,313
December 2004
avatar

Quote:

That happens on one of my friends PCs

Could you find out what type of gfx card he has?

Erkle
Member #3,493
May 2003
avatar

He has a GeForce 4 Ti.

If the writing above has offended you, you've read it wrong.....fool.
And if you read that wrong it means 'All of the above is opinion and is only to be treated as such.'

Richard Phipps
Member #1,632
November 2001
avatar

I have a Geforce 4 MX 440 SE and have never seen any problems likt this. Do AllegroGL programs do the same thing?

Mordredd
Member #5,291
December 2004
avatar

Is there an OL IRC Channel open?

Richard Phipps
Member #1,632
November 2001
avatar

It's a pity there are not more OpenLayer developers. I feel sorry for Fladimir to get all these bug reports. :(

It's a great library though! :)

LennyLen
Member #5,313
December 2004
avatar

Quote:

Do AllegroGL programs do the same thing?

I can't think of any that I've tried, so I'll have to test this a bit later. For the moment, I'm downloading the drivers that were released last month.

[edit]Just remembered that I have AllegroGL installed. All the example programs run fine.

Richard Phipps
Member #1,632
November 2001
avatar

As far as I can see the OpenLayer screen setup code is just a wrapper around AllegroGL. So I don't know why some people seem to be having problems with OL.

Fladimir da Gorf
Member #1,565
October 2001
avatar

Quote:

It's a pity there are not more OpenLayer developers.

There's more than just me now. But yeah, setting up the screen is done with AllegroGL.

OpenLayer has reached a random SVN version number ;) | Online manual | Installation video!| MSVC projects now possible with cmake | Now alvailable as a Dev-C++ Devpack! (Thanks to Kotori)

Richard Phipps
Member #1,632
November 2001
avatar

So why do the AllegroGL examples work and not OpenLayer? ???
Strange!

Keep up the good work Fladimir! We do appreciate it. :D

LennyLen
Member #5,313
December 2004
avatar

Update:

I upgraded my drivers, and now instead of two small frameless windows, I get a normal window, but it remains black. :-/

Vasco Freitas
Member #6,904
February 2006
avatar

Are you trying to display bitmaps using 16-bit color depth? There seems to be a problem displaying bitmaps in 16-bit.

Richard Phipps
Member #1,632
November 2001
avatar

Yes, openlayer doesn't work with 16 bit color modes at the moment. Use 32 bit ones..

LennyLen
Member #5,313
December 2004
avatar

Quote:

Are you trying to display bitmaps using 16-bit color depth?

My desktop is set to 32bit.

Richard Phipps
Member #1,632
November 2001
avatar

No, are you trying to open a 16bit screen or load 16bit bitmaps?

LennyLen
Member #5,313
December 2004
avatar

Quote:

No, are you trying to open a 16bit screen or load 16bit bitmaps?

I'm simply running other people's games, not using OL myself. Since they run for everyone else, I assume they are using 32bit bitmaps.

Fladimir da Gorf
Member #1,565
October 2001
avatar

Quote:

I upgraded my drivers, and now instead of two small frameless windows, I get a normal window, but it remains black.

Well, then it really sounds like a driver issue. Have you tried rendering some primitives to the screen (not only Bitmaps)?

OpenLayer has reached a random SVN version number ;) | Online manual | Installation video!| MSVC projects now possible with cmake | Now alvailable as a Dev-C++ Devpack! (Thanks to Kotori)

Richard Phipps
Member #1,632
November 2001
avatar

I've attached a test OL app. It opens a 32bit window and you should see a blue background with a black square and a smaller red square inside it.

Press the LEFT mouse button to exit.
(I've not attached any DLL's..But it's quite big, so maybe I attached some other junk when compiling it. ;))

FMC
Member #4,431
March 2004
avatar

err... i just get a blu screen.

Ati Mobility Radeon 9700
WinXp Pro Sp 2

[FMC Studios] - [Caries Field] - [Ctris] - [Pman] - [Chess for allegroites]
Written laws are like spiders' webs, and will, like them, only entangle and hold the poor and weak, while the rich and powerful will easily break through them. -Anacharsis
Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. -Mark Twain

Richard Phipps
Member #1,632
November 2001
avatar

LennyLen
Member #5,313
December 2004
avatar

Quote:

err... i just get a blu screen.

Ditto. Though it's a window and not a full-screen. ;)

lambik
Member #899
January 2001
avatar

Yep, just a blue window
Windows 2000 Radeon 9600

Richard Phipps
Member #1,632
November 2001
avatar

Well, here's the code (which is based on a OL problem in another thread):

1#include <allegro.h>
2#include <OpenLayer.hpp>
3using namespace ol;
4using namespace std;
5 
6int main(void)
7{
8 
9 Setup::SetupProgram();
10 
11 Settings::StoreMemoryBitmaps(true);
12 
13 Setup::SetupScreen(800, 600, WINDOWED);
14 
15 set_color_depth(32);
16 
17 Settings::SetAntialiasing(true);
18 
19 Bitmap test(200, 200, Rgba::BLACK);//INVISIBLE);
20 
21 Canvas::SetTo(test);
22 Rect(90, 90, 20, 20).Draw(Rgba::RED);
23 
24 Canvas::SetTo(SCREEN_BACKBUF);
25 Canvas::Fill(Rgba::BLUE);
26 
27 test.Blit(100, 100);
28 
29 do
30 {
31 Canvas::Refresh();
32 } while (!mouse_b);
33 return 0;
34
35}
36END_OF_MAIN()

Perhaps this means that other buffers are not working for you?

A proper comprehensive OpenLayer test might be useful to help track down these problems..

Go to: