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"}
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 )
Thanks
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?
That's probably because OL uses fsaa, which is a hardware routine (I don't think GL supports a software routine)
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
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)
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 |
2 | Bottom (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 |
12 | 32 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 |
16 | 16 Load(filename); |
17 | #6 0x004080ce in Zoe::LoadZad(std::string const&, Zoe::Animation*) ( |
18 | filename=@0x22fda0, inAnimation=0x3ddea8) at src/Zoe_Zad.cpp:46 |
19 | 46 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 |
23 | 44 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 |
27 | 32 Load(filename); |
28 | (gdb) up |
29 | #9 0x0040348d in PlayerCharacter::PlayerCharacter() (this=0x2c7f518) |
30 | at src/PlayerCharacter.cpp:13 |
31 | 13 m_animation=new Animation("Animations/gtamanWalk.zad"); |
trezker: you know you can type 'bt' right?
No, what is that?
Backtrace, it prints out the whole stack from the crash/break-point.
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.