#gemrb@irc.freenode.net logs for 26 Jan 2014 (GMT)

Archive Today Yesterday Tomorrow
GemRB homepage


[00:36:35] <-- edheldil_ has left IRC (Ping timeout: 272 seconds)
[01:43:22] <-- dolio has left IRC (Quit: Leaving)
[01:48:27] --> dolio has joined #gemrb
[02:11:24] --> Canadork has joined #gemrb
[03:19:45] --> Beholder has joined #gemrb
[03:24:14] <-- Beholder has left IRC (Ping timeout: 264 seconds)
[04:01:16] <-- PKodon has left IRC (Quit: The Rodent Tracker 8000, just like on TV ... Because household pests never build up an immunity to bullets. (Tex Murphy))
[04:17:02] <-- Canadork has left IRC (Ping timeout: 265 seconds)
[04:43:17] <-- DrMcCoy has left IRC (Disconnected by services)
[04:43:22] --> DocMcCoy has joined #gemrb
[05:14:20] --> Canadork has joined #gemrb
[06:08:10] --> Beholder has joined #gemrb
[06:28:30] <-- Beholder has left IRC (Ping timeout: 265 seconds)
[08:13:43] --> lynxlynxlynx has joined #gemrb
[08:13:43] <-- lynxlynxlynx has left IRC (Changing host)
[08:13:43] --> lynxlynxlynx has joined #gemrb
[08:13:43] --- ChanServ gives channel operator status to lynxlynxlynx
[08:28:05] --> Yoshimo has joined #gemrb
[08:44:51] --> edheldil_ has joined #gemrb
[08:51:23] <-- Yoshimo has left IRC (Ping timeout: 245 seconds)
[09:39:43] <-- Canadork has left IRC (Ping timeout: 245 seconds)
[10:13:04] --> Eli2_ has joined #gemrb
[10:13:53] <-- Eli2 has left IRC (Ping timeout: 245 seconds)
[10:42:18] --> Beholder has joined #gemrb
[10:51:52] --- DocMcCoy is now known as DrMcCoy
[12:18:47] <-- Beholder has left IRC (Ping timeout: 260 seconds)
[12:44:39] --> Beholder has joined #gemrb
[13:10:15] <-- edheldil_ has left IRC (Ping timeout: 252 seconds)
[13:17:27] <Beholder> hi
[13:17:48] <Beholder> DrawPolyLine implemented now
[13:18:03] <Beholder> please check
[13:31:54] <wjp> needs a few small fixes for building
[13:32:25] <wjp> PointDrawingMode::LineStrip should be simply LineStrip
[13:32:44] <wjp> (since PointDrawingMode is an enum, and not a namespace or class)
[13:33:38] <wjp> hm, in general it seems to work, but not with all polygons
[13:34:38] <wjp> let me take some screenshots
[13:39:44] <-- Eli2_ has left IRC (Remote host closed the connection)
[13:40:42] <Beholder> heh old standard
[13:40:52] <Beholder> with :: it looks nice
[13:41:40] <Beholder> more readable
[13:42:25] <wjp> you can put the enum in a namespace for that behaviour
[13:44:22] <Beholder> no
[13:44:30] <Beholder> not good
[13:44:37] <wjp> http://www.usecode.org/gemrb/sdl.png
[13:44:43] <wjp> http://www.usecode.org/gemrb/sdlgl.png
[13:44:50] <wjp> (why not good?)
[13:45:23] <Beholder> separate namespase only for a single enum
[13:46:18] <Beholder> hm
[13:46:39] <wjp> the blue one is clearly wrong, but I'm not yet sure why it isn't drawing the yellow ones
[13:47:13] <Beholder> i see
[13:47:42] <Beholder> too difficult
[13:47:54] <wjp> oh, the yellow one is drawn with alpha 0
[13:48:20] <Beholder> i twill not good
[13:48:25] <Beholder> it will
[13:48:28] <Beholder> too
[13:48:49] <wjp> I re-uploaded the screenshots with the alpha problem (in GameControl.cpp) fixed
[13:49:33] <wjp> you're probably assuming the polygons are convex?
[13:51:04] <Beholder> i using triangle fun, but this method not right for many poly-s complex figures
[13:51:26] <Beholder> for doors and walls it works,
[13:52:24] <wjp> this is why I preprocess the polygons into trapezoids for the software rendering
[13:52:28] <Beholder> only if figure have no recesses
[13:55:32] <Beholder> hm, i think that i need to draw trapezoids separately
[13:55:38] <Beholder> with my method
[13:56:41] <wjp> the trapezoids are probably not optimal for GL rendering; any other non-convex polygon rendering method will work too
[13:57:10] <Beholder> trapezoid is a two triangles
[13:58:44] <Beholder> and all figure draws with triangles, look at drawPolygon
[13:59:45] <wjp> yes, but it produces more triangles than necessary that way
[14:00:10] <wjp> although it probably doesn't matter too much
[14:06:15] <wjp> one thing I had to be careful with in the software renderer was ensuring that there were no small gaps or small overlaps between triangles
[14:06:32] <wjp> along diagonal edges with neighbouring triangles
[14:35:19] --> Yoshimo has joined #gemrb
[14:41:26] <-- Yoshimo has left IRC (Quit: Yoshimo)
[15:02:04] --> edheldil_ has joined #gemrb
[15:22:42] <Beholder> wjp, can you provide your save?
[15:35:23] <Beholder> hm, bg2 not works proper with my driver
[15:35:45] <Beholder> no ellipses if actor selected
[15:36:00] <Beholder> stratched sprites (with white dots)
[15:51:01] <-- edheldil_ has left IRC (Ping timeout: 248 seconds)
[16:41:44] --> edheldil_ has joined #gemrb
[16:46:01] --> Yoshimo has joined #gemrb
[16:54:57] <-- edheldil_ has left IRC (Read error: Operation timed out)
[16:55:29] <-- Yoshimo has left IRC (Ping timeout: 240 seconds)
[17:17:13] --> brada has joined #gemrb
[17:17:37] <brada> I still havent been able to figure out the SDL_Delay problem :/
[17:18:21] --> Eli2 has joined #gemrb
[17:18:30] <brada> it consistantly locks at 10fps tho. even with my latest commit which gives me 10 more FPS with SDL_Delay commented out
[17:19:51] --> kpedersen has joined #gemrb
[17:22:20] <-- kpederse1 has left IRC (Ping timeout: 272 seconds)
[17:31:37] <brada> heh I think i actually just figured it out
[17:31:51] <brada> i need to compile SDL2 for iOS 7
[17:33:16] <brada> compiling it for ios 6 has the problem, but just changing the SDK to 7 fixes it. yay
[17:35:27] <brada> of course this makes it harder to support both ios6 and 7...
[17:49:56] <-- brada has left IRC (Quit: brada)
[17:50:30] --> kpederse1 has joined #gemrb
[17:53:21] <-- kpedersen has left IRC (Ping timeout: 272 seconds)
[18:03:41] <wjp> Beholder: my BG2 saves are all on edheldil's server
[18:03:59] <wjp> this one is from the one called "inside planar spherDe", IIRC
[18:04:11] <wjp> um, "inside planar sphere", that is
[18:04:26] <Beholder> what is the server link?
[18:04:39] <Beholder> is a very hard to fill poligon
[18:05:19] <wjp> http://www.eowyn.cz/gemrb/bg2/saves/
[18:05:20] <Pepelka> Index of /gemrb/bg2/saves
[18:08:34] <wjp> oh, no, it's not there
[18:08:43] <wjp> that's annoying
[18:08:52] <wjp> let's see if I have it here on my laptop
[18:09:56] <Beholder> ok
[18:10:15] <wjp> yes, I have it
[18:10:19] <wjp> one moment
[18:11:05] <Beholder> how to display yellow poly's?
[18:11:16] <wjp> ctrl-4
[18:11:25] <wjp> but there's a bug that GameControl sets the alpha of the colour to 0
[18:12:14] <wjp> search for the word "yellow" in core/GUI/GameControl.cpp
[18:13:54] <wjp> http://www.usecode.org/gemrb/bg2_wjp_planar_sphere_save.zip
[18:16:59] <Beholder> heh too hard to implement
[18:17:57] <Beholder> i got a bad sprites with my driver in bg2
[18:17:57] <wjp> is there existing GPL code for this we could borrow from other projects?
[18:18:48] <Beholder> opengl can't fill regions
[18:21:11] <Beholder> only way to split polygon to triangles, but individual for each polygon, don't see the algorithm for this
[18:21:19] <Beholder> but about sprites
[18:23:17] <Beholder> http://i-fotki.info/16/cb0cbd1750a52b0804daba3ed64639debc8616173420638.png.html
[18:23:18] <Pepelka> Ifotki.info - бесплатный хостинг фотографий для форумов, дневников, гостевых книг
[18:23:19] <Pepelka> »Ресурс для публикации фотографий на форумах, дневника, личных страницах«
[18:23:37] <Beholder> white dots
[18:24:04] <Beholder> no ellipses in bg2 if actor selected
[18:25:33] <Beholder> and very slow(
[18:25:42] <wjp> is that calling DrawEllipseSegment maybe?
[18:25:51] <Beholder> no
[18:26:02] <Beholder> draw Ellipse i think
[18:26:27] <Beholder> http://www.usecode.org/gemrb/sdlgl.png
[18:26:32] <Beholder> with ellipses
[18:26:45] <Beholder> and with normal sprites
[18:26:55] <wjp> interesting
[18:29:44] <Beholder> http://i-fotki.info/16/aa891afccbe4ec4dd0b1cb946b6ace67bc8616173421030.png.html
[18:29:45] <Pepelka> Ifotki.info - бесплатный хостинг фотографий для форумов, дневников, гостевых книг
[18:29:47] <Pepelka> »Ресурс для публикации фотографий на форумах, дневника, личных страницах«
[18:31:20] <wjp> if you compare my two screenshots the green outlines around the portraits on the right are slightly different
[18:31:42] <Beholder> i see
[18:34:35] <wjp> on my laptop the ellipses are also working, and I don't see the white dots either
[18:34:44] <wjp> (the screenshots earlier were from my desktop PC)
[18:34:58] <Beholder> damn
[18:35:13] <wjp> I can try valgrind
[18:35:24] <wjp> if you have no local changes that would explain it
[18:35:42] <Beholder> no
[18:36:46] <Beholder> i do not change anything in texture generating and ellipse drawing
[18:37:28] <Beholder> buttons is a 32 bit images?
[18:37:34] <Beholder> or palette?
[18:40:39] <wjp> I don't know
[18:47:25] <wjp> valgrind doesn't show anything relevant here from what I can tell (but my GL driver seems to confuse valgrind a bit)
[18:50:02] --> Canageek has joined #gemrb
[18:52:59] <Beholder> palette size is always a 256 colors?
[19:00:34] <wjp> yes
[19:10:15] <Beholder> i dont understand why...
[19:14:13] <wjp> do you know if it is one palette index which is broken? (Maybe 0, or 1, or 255?)
[19:14:58] <Beholder> can you open the sprite from resource?
[19:15:04] <Beholder> look at this http://i-fotki.info/16/4ac82eb6b15a79bb4e731c99f31bc421bc8616173423716.png.html
[19:15:05] <Pepelka> Ifotki.info - бесплатный хостинг фотографий для форумов, дневников, гостевых книг
[19:15:06] <Pepelka> »Ресурс для публикации фотографий на форумах, дневника, личных страницах«
[19:15:18] <Beholder> button has a dots
[19:15:38] <Beholder> can you see colors in this places(index)
[19:17:32] <fuzzie> palette can be 16 colors, no?
[19:19:28] <Beholder> i think no, otherwise my driver will crash
[19:19:30] <fuzzie> but Beholder's code just gives up if bpp=4 I think
[19:19:47] <Beholder> bpp4?
[19:19:51] <fuzzie> that's 16 colors
[19:20:22] <fuzzie> you return false for IsPaletted() in that case, and createGlTexture() returns immediately, so that will just show up as stuff not rendering
[19:20:22] <Beholder> i do not see color corruptions, but artifacts
[19:20:49] <fuzzie> I can't run the code here so I can't really help
[19:22:03] --> brada has joined #gemrb
[19:22:57] <Beholder> i interesting for index in dotted areas
[19:25:56] <Beholder> i'll look a palette color for this index in debug
[19:28:36] <wjp> it's color 254
[19:30:53] <wjp> I think I'd blame rounding in the palette texture lookup
[19:33:25] <wjp> it might be interesting to try vec2((0.5+index*255.0)/256.0,0.5) in the lookup instead of vec2(index, 0.0)
[19:33:29] <wjp> as a test
[19:36:53] <Beholder> ok, i'll try
[19:36:53] <Beholder> palette is good
[19:36:53] <Beholder> no wrong colors
[19:40:56] <Beholder> great
[19:41:01] <Beholder> you are right
[19:41:18] <wjp> so it doesn't have enough bits to do the rounding correctly :-(
[19:41:51] <wjp> without the rescaling, 254 is _very_ close to edge with 255
[19:42:06] <Beholder> yeah
[19:43:39] <Beholder> and intel gpu's precision possible lower then in a real 3d cards
[19:44:28] <Beholder> now need to fix ellipses
[19:44:29] <wjp> I'm on an intel hd4400 here by the way, with opengl
[19:44:40] <Beholder> driver may be
[19:44:55] <Beholder> 170 fps on hd4400?
[19:45:04] <wjp> the screenshots were with a gtx460
[19:45:18] <Beholder> ah
[19:45:42] <Beholder> my x3100 do a 25 fps in planar sphere
[19:46:12] <wjp> huh, I get 270fps there with hd4400
[19:46:23] <wjp> but it drops a lot when highlighting
[19:46:24] <Beholder> :'(
[19:46:31] <wjp> (a _lot_)
[19:46:47] <Beholder> my gpu not for GL
[19:47:04] <Beholder> only for drawing windows and icons)
[19:47:51] <Beholder> i see the ellipses only if i point on actor
[19:48:05] <Beholder> flashed ellipse
[19:51:46] <brada> so the feedbak setting then :p
[19:51:46] --> edheldil_ has joined #gemrb
[19:51:50] <wjp> could there be some numerical problem? In my ellipses there are also strange dots in the center
[19:53:36] <Beholder> drawellipse not calls for me
[19:54:16] <Beholder> if a cursor not on actor
[19:54:16] <wjp> brada: do you know the exact config setting for that?
[19:54:44] <brada> should be settable from the settings gui
[19:54:44] <Beholder> i can fix dot only if i repair ellipses)
[19:54:53] <Beholder> where?
[19:55:01] <brada> checking
[19:55:50] <brada> in Gameplay
[19:55:55] <brada> feedback
[19:56:27] <brada> marker feedback
[19:59:12] <Beholder> in baldur.ini?
[19:59:24] <Beholder> or where?
[20:01:09] <brada> you can set it from the gui
[20:06:02] <Beholder> no
[20:06:11] <Beholder> its another option
[20:06:24] <Beholder> no options for ellipses
[20:06:28] <brada> yes there is
[20:06:34] <brada> im using it right now
[20:06:37] <Beholder> i turned on all
[20:06:45] <brada> its not a checkbox
[20:06:47] <Beholder> but no effect
[20:06:48] <brada> its a slider
[20:06:52] <Beholder> a
[20:07:18] <brada> and its in gameplay options, not graphics options
[20:07:51] <Beholder> right now
[20:08:27] <Beholder> and no dots in center as in wjp screenshot
[20:11:41] <wjp> that dot isn't always there for me
[20:11:50] <wjp> but if I move around a bit it shows up occasionally
[20:11:55] <wjp> "lucky" screenshot
[20:27:52] <Beholder> hm
[20:31:28] <wjp> could you replace Shader.cpp by GLSLProgram.cpp in plugins/SDLVideo/CMakeLists.txt?
[20:32:30] <Beholder> yes
[20:32:39] <Beholder> oh, no
[20:32:56] <Beholder> i dont use cmake
[20:33:10] <Beholder> and do not any changes in make lists
[20:33:22] <wjp> but Shader.cpp is in there
[20:33:49] <Beholder> i think lynx add it to this file
[20:39:02] <fuzzie> the thing is, it doesn't work for *us* unless you fix cmake
[20:39:07] <fuzzie> since everyone else is using cmake
[20:45:19] <lynxlynxlynx> if you just renamed the file, renaming in that one is fine
[20:45:49] <lynxlynxlynx> if it's easier, i can do it on our side and then you update again
[20:46:16] <lynxlynxlynx> that code path is dead without your branch anyway
[20:46:31] --> Darklock has joined #gemrb
[20:49:10] <-- Lightkey has left IRC (Ping timeout: 245 seconds)
[20:50:57] <-- Beholder has left IRC (Ping timeout: 272 seconds)
[21:02:49] --> Yoshimo has joined #gemrb
[22:17:30] <-- Yoshimo has left IRC (Read error: Connection reset by peer)
[22:23:01] <wjp> heh, that Shader.cpp in CMakeLists.txt is indeed in main master
[22:40:11] <-- lynxlynxlynx has left IRC (Remote host closed the connection)
[23:14:02] <-- edheldil_ has left IRC (Ping timeout: 264 seconds)
[23:47:30] <-- brada has left IRC (Quit: brada)