Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » [OpenLayer] A few bugs

This thread is locked; no one can reply to it. rss feed Print
[OpenLayer] A few bugs
Epsi
Member #5,731
April 2005
avatar

Hi,

First I would like to say that OpenLayer is the best library that I've ever used.

But I've found what I think is bugs (using the latest snapshot ofcourse).

1) "Ellipse" is not in "ol::" namespace, you have to use ol::Ellipse currently.

2) Ellipse: Impossible to set outline width higher than 1.0. Else the shape move very fast in diagonal and disapear (ex: ol::Ellipse ellipse(200.0,200.0,100.0,60.0,2.0);

3) TextRenderer: Print() with CENTER mode for multi-lines strings slows down the game by 75% (!!). No effect on fps with a single line...

4) Anti-Aliasing: With my Gfx Card (GeForce Go 6200), I get strange results, commented on the screenshots:
{"name":"aliasing7bs.png","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/9\/3\/9312a958d1da87cab2f62114a2e293d6.png","w":664,"h":124,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/9\/3\/9312a958d1da87cab2f62114a2e293d6"}aliasing7bs.png

So antialiasing works for Bitmap(), but not for the Shape(). However if I force antialiasing with the card settings (instead of leaving the app control it), it works... So it's probably something missing in the OL code.

That's all for now (we really need an OL part in those forums :D)

Thanks :)

___________________________________

piccolo: "soon all new 2d alegro games will be better. after i finsh my MMRPG. my game will serve as a code reference. so you can understand and grab code from."
piccolo: "just wait until my invetion comes out its going to take the wii to the next leave of game play. it will run sony and microsoft out of busness if i dont let them use it aswell."

Richard Phipps
Member #1,632
November 2001
avatar

I'm not sure why you are having these problems. Fladimir doesn't seem to be around at the moment either. Perhaps someone else can help?

biscuitz
Member #5,679
March 2005
avatar

That's probably because OL uses fsaa, which is a hardware routine (I don't think GL supports a software routine)

---Allegro Version 4.2.0 (beta4)
The hardest part is getting started.
WATCH TV! It's good for ya'
Wave your hand really fast in front of the monitor (It looks like when those Matrix agents dodge bullets)

juvinious
Member #5,145
October 2004
avatar

ummmm.. Ellipse IS in the ol namespace.
Also you must define an outlinewidth between 0.0 - 1.0 otherwise it's not going to work... it defaults to 1.0

__________________________________________
Paintown

Epsi
Member #5,731
April 2005
avatar

character.cpp:257: error: `Ellipse' undeclared (first use this function)
character.cpp:257: error: (Each undeclared identifier is reported only once for each function it appears in.)

ol::Ellipse fix the problem.
I have no problem with Rect or any other OL class. ("using namespace ol" ofc)

For rectangle or Poly you can use wider outline width than 1.0 (wich is a good thing). Why limit it with Ellipses ? (and it should not bug like that if 1.0 is the maximum)

___________________________________

piccolo: "soon all new 2d alegro games will be better. after i finsh my MMRPG. my game will serve as a code reference. so you can understand and grab code from."
piccolo: "just wait until my invetion comes out its going to take the wii to the next leave of game play. it will run sony and microsoft out of busness if i dont let them use it aswell."

Trezker
Member #1,739
December 2001
avatar

Me is working on something that runs just fine on my computer.
But on other computers it crashes.

Guilt has gotten this from debug.
We've decided to blame OpenLayer for the crash.

1(gdb) down
2Bottom (i.e., innermost) frame selected; you cannot go down.
3(gdb) up
4#1 0x00ffffff in ?? ()
5(gdb) up
6#2 0x00413ab7 in ol::Bitmap::SendToGPU() ()
7(gdb) up
8#3 0x00415a88 in ol::Bitmap::Load(char const*, int) ()
9(gdb) up
10#4 0x004058ec in Zoe::Bitmap::Load(std::string const&) (this=0x2c7fad8,
11 filename=@0x22fba0) at src/Zoe_Bitmap.cpp:32
1232 if(!m_bitmap->Load(filename.c_str()))
13(gdb) up
14#5 0x00405783 in Zoe::Bitmap::Bitmap(std::string const&) (this=0x2c7fad8,
15 filename=@0x22fba0) at src/Zoe_Bitmap.cpp:16
1616 Load(filename);
17#6 0x004080ce in Zoe::LoadZad(std::string const&, Zoe::Animation*) (
18 filename=@0x22fda0, inAnimation=0x3ddea8) at src/Zoe_Zad.cpp:46
1946 animation->AddFrame(new Bitmap(path), frameTime);
20(gdb) up
21#7 0x00406856 in Zoe::Animation::Load(std::string const&) (this=0x3ddea8
22 filename=@0x22fda0) at src/Zoe_Animation.cpp:44
2344 bool success=LoadZad(filename, this)!=NULL;
24(gdb) up
25#8 0x0040670d in Zoe::Animation::Animation(std::string const&) (
26 this=0x3ddea8, filename=@0x22fda0) at src/Zoe_Animation.cpp:32
2732 Load(filename);
28(gdb) up
29#9 0x0040348d in PlayerCharacter::PlayerCharacter() (this=0x2c7f518)
30 at src/PlayerCharacter.cpp:13
3113 m_animation=new Animation("Animations/gtamanWalk.zad");

Marcello
Member #1,860
January 2002
avatar

trezker: you know you can type 'bt' right?

Trezker
Member #1,739
December 2001
avatar

No, what is that?

Marcello
Member #1,860
January 2002
avatar

Backtrace, it prints out the whole stack from the crash/break-point.

Trezker
Member #1,739
December 2001
avatar

Well, that's what guilt gave me, what about it?
I thought you were trying to point me to some a.cc feature.

And I can't possbly do a backtrace from the crash point since it doesn't crash on my computer.

Go to: