Perl 6 - the future is here, just unevenly distributed

IRC log for #sdl, 2014-04-18

| Channels | #sdl index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:32 FROGGS_ joined #sdl
04:31 kaare_ joined #sdl
06:43 dod joined #sdl
07:11 dod joined #sdl
07:34 dod joined #sdl
12:58 mtj joined #sdl
15:08 kaare_ joined #sdl
15:39 mtj has anyone ever managed to blit a surface with a working COLORKEY?
15:47 mtj i've been working on this 'trivial' problem for hours :/
15:48 mtj i seem to be making less progress on it, the longer i spend… amazing!
15:51 FROGGS_ read the documentation about blit_surface or what it is called
15:51 FROGGS_ (about the flags of the source and target surface)
15:52 FROGGS_ e.g. do not blit to your app diretcly, but to a new surface, and then blit that to the app
15:53 mtj hmm, you make some sense FROGGS_
15:54 mtj i did a grep for some 'colorkey' examples and found  Collision-2D-0.07
15:55 mtj so i'm just using that, for a starter… and it *does* blit straight to an $app...
15:55 mtj its giving me crazy behaviour!
15:56 mtj FROGGS_, can i paste you a quick gist?
15:58 mtj https://gist.github.com/KohaAloha/ac2324d70d6213f2b860
15:59 FROGGS_ k, let's see
15:59 mtj aaah, oops
15:59 mtj its a black window….
16:00 mtj 1 tic..
16:00 FROGGS_ I see a blue rect on a black window
16:00 mtj https://gist.github.com/KohaAloha/11051483
16:01 mtj woah, really?
16:01 mtj its black for me :/
16:01 mtj i think i have some strange color bug, on my lappy, bizzare?!
16:02 FROGGS_ now it is pink on black
16:02 mtj as you can -  see i've been experimenting with different RGB values
16:03 mtj SDL::Video::map_RGB( $app->format, 255 ,0 , 255   )
16:03 mtj …that is green for me?! ^^
16:05 mtj fuck me… how bizarre O_o
16:06 mtj hmm, and dropping the color-depth from 32 to 16 'fixes' that problem...
16:07 mtj works ok on 24 bpp too...
16:10 mtj hmm, so my macbook seems to have some problem with perl-sdl running, 32 bpp - it seems
16:13 mtj ...but even that is not true, i have other perl-sdl progs running ok with 32bpp
16:15 mtj the only difference i can think of is that my other progs are using SDLx::App and  SDLx::Surface stuff
16:15 mtj … rather than straight SDL::* stuff, like my problem gist
16:21 mtj FROGGS_, thanks for taking a look…. i hate to think how long i might have been trapped in that infinite fail-loop
16:22 FROGGS_ it could even be that the difference of software vs. hardware surfaces breaks it
16:24 mtj yeah, i should really try to get to the bottom of that one..
17:06 mtj hey FROGGS_ , i just got my COLORKEY stuff working :p
17:10 mtj https://gist.github.com/KohaAloha/f8ab112fcd97a1708b66
17:10 mtj for the curious… ^^
17:10 FROGGS_ what is the difference?
17:11 FROGGS_ it is hard to see when you create a new gist rather than editing the old one :o)
17:11 mtj well, my old gist i was stuck on my 32 bpp bug :/
17:12 mtj so, i didnt even have any colorkey-ing  code in it !
17:13 mtj ...but after i clicked to the bug, and switched the bpp to 24 - everything worked as expected
17:17 mtj FROGGS_, ahh, i didnt actually think to edit/diff my existing gists - (i learn something)
17:19 FROGGS_ then you can see the diffs by clicking on the revisions link
17:21 mtj yep, gotcha :)
17:32 dod joined #sdl
19:04 garu Mithaldu++ # great to see your game being developed!
22:39 Mithaldu garu: <3
22:39 Mithaldu i'm showing it off at revision 2014
22:39 Mithaldu also i had a ton of belgian beer
22:48 Mithaldu garu: https://www.youtube.com/watch?v=Vc5ENVArDws&amp;feature=youtu.be

| Channels | #sdl index | Today | | Search | Google Search | Plain-Text | summary