OpenLayer Issues
LennyLen

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

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.:-/

LennyLen
Quote:

That happens on one of my friends PCs

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

Erkle

He has a GeForce 4 Ti.

Richard Phipps

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

Mordredd

Is there an OL IRC Channel open?

Richard Phipps

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

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
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.

Richard Phipps

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

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

LennyLen

Update:

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

Vasco Freitas

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

Richard Phipps

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

LennyLen
Quote:

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

My desktop is set to 32bit.

Richard Phipps

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

LennyLen
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
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)?

Richard Phipps

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

err... i just get a blu screen.

Ati Mobility Radeon 9700
WinXp Pro Sp 2

Richard Phipps

Well.. that's not good. ???

LennyLen
Quote:

err... i just get a blu screen.

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

lambik

Yep, just a blue window
Windows 2000 Radeon 9600

Richard Phipps

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..

Thread #586631. Printed from Allegro.cc