#gemrb@irc.freenode.net logs for 24 Nov 2010 (GMT)

Archive Today Yesterday Tomorrow
GemRB homepage


[00:05:46] --> edheldil_ has joined #GemRb
[01:14:44] <-- edheldil_ has left IRC (Ping timeout: 245 seconds)
[03:04:20] <-- Maighstir has left IRC (Quit: ~ Trillian Astra - www.trillian.im ~)
[05:31:26] <-- barra_away has left IRC (Quit: Verlassend)
[07:25:16] --> edheldil_ has joined #GemRb
[07:34:18] <-- edheldil_ has left IRC (Ping timeout: 245 seconds)
[07:40:56] --> Bo_Thomsen has joined #GemRb
[07:43:27] --> edheldil_ has joined #GemRb
[07:43:28] --> lynxlynxlynx has joined #GemRb
[07:43:28] --- ChanServ gives channel operator status to lynxlynxlynx
[08:04:18] <-- edheldil_ has left IRC (Ping timeout: 245 seconds)
[08:11:27] --> lubos has joined #GemRb
[08:18:58] <-- lubos has left IRC (Quit: Leaving.)
[08:21:24] --> lubos has joined #GemRb
[08:32:19] <-- Bo_Thomsen has left IRC (Quit: Leaving.)
[08:45:32] --> Bo_Thomsen has joined #GemRb
[08:55:22] --> pupnik_ has joined #GemRb
[08:58:45] <-- pupnik has left IRC (Ping timeout: 250 seconds)
[09:08:11] <-- |Cable| has left IRC (Remote host closed the connection)
[09:25:22] <edheldil> Lightkey: apart of accents, it would be a czech phonetic transcription :)
[12:21:51] --> lynxlynx has joined #GemRb
[12:21:51] --- ChanServ gives channel operator status to lynxlynx
[12:21:51] <-- lynxlynxlynx has left IRC (Read error: Connection reset by peer)
[12:27:46] --- lynxlynx is now known as lynxlynxlynx
[12:39:05] <fuzzie> Lightkey: why 'Macintosh DVD/Windows'?
[12:39:07] <fuzzie> oh, wrong channel
[14:20:11] <lynxlynxlynx> happypenguin is back up
[14:44:02] <-- tomprince has left IRC (Ping timeout: 255 seconds)
[14:57:23] <edheldil> on the title page is a star wars rts, which looks really yummy. I wonder how long before Lucas lawyers start sending out C&D letters :/
[14:57:23] --- pupnik_ is now known as pupnik
[15:21:24] <-- devurandom has left IRC (*.net *.split)
[15:24:29] --> devurandom has joined #GemRb
[16:48:11] <-- lubos has left IRC (Quit: Leaving.)
[17:17:09] --> tomprince has joined #GemRb
[17:17:14] <pupnik> New invention for germany: Not openstreetmap. Openairmap. Every participant runs a client that surveils the sky with a client that identifies moving objects. Based on camera orientation and location, a live map of the sky is created.
[17:29:02] <-- Bo_Thomsen has left IRC (Quit: Leaving.)
[18:02:46] --> |Cable| has joined #GemRb
[18:05:55] --> Bo_Thomsen has joined #GemRb
[18:36:25] --> barraAway has joined #GemRb
[19:04:26] <pupnik> we are chunks of matter typing to each other
[19:04:29] <pupnik> that's pretty cool
[19:18:10] <-- barraAway has left IRC (Read error: Connection reset by peer)
[19:18:25] --> barraAway has joined #GemRb
[19:39:28] <Lightkey> fuzzie: compare to the other changes ;-)
[19:40:20] <fuzzie> i did, and it still makes no sense :P
[19:40:36] <Lightkey> ever heard of alphabetical order?
[19:40:52] <fuzzie> sure, so 'Macintosh/Windows DVD'? :)
[19:42:15] <Lightkey> sure
[19:42:44] <Lightkey> if DVD is not just for Macintosh
[19:43:48] <Lightkey> you want a wiki account? :-P
[19:58:14] <fuzzie> i would like to continue avoiding anything which might seem like work
[20:14:34] --> SiENcE has joined #GemRb
[20:29:07] <Lightkey> SilENcE, I keel j00!
[20:34:32] <-- SiENcE has left IRC (Read error: Connection reset by peer)
[21:00:35] --> SiENcE has joined #GemRb
[22:19:00] --> barra_away has joined #GemRb
[22:22:13] <-- barraAway has left IRC (Ping timeout: 245 seconds)
[22:29:00] <-- SiENcE has left IRC (Quit: cya @all)
[22:41:41] <Lightkey> fuzzie: you will get one anyway, if startrek makes it into ScummVM ;-)
[22:44:40] <-- lynxlynxlynx has left IRC (Remote host closed the connection)
[22:53:46] <fuzzie> Lightkey: i see clone has done my work there :P
[22:53:54] --> Avenger has joined #GemRb
[22:53:54] --- ChanServ gives channel operator status to Avenger
[22:54:11] <Lightkey> as expected
[22:54:23] <Avenger> fuzzie have you seen this: http://forums.gibberlings3.net/index.php?showtopic=18810&st=45&#entry177672 ?
[22:54:49] <Avenger> i never seen negative integers becoming 0 after an unsigned cast.
[22:55:07] <fuzzie> it isn't a negative integer
[22:55:38] <fuzzie> it's a negative float
[22:56:21] <Avenger> i wonder why is it a float anyway
[22:56:38] <fuzzie> that does seem strange
[22:57:12] <Lightkey> fuzzie: I wonder what you are looking at recent changes for though :-P
[22:57:21] <Avenger> and why would this work differently on android
[22:57:38] <fuzzie> well, i expect there is no native floating point
[22:57:53] <fuzzie> so it depends on exactly what the emulated floating point code does, i guess
[22:58:23] <Avenger> ok, so what happens if we use integer divider?
[22:58:41] <Avenger> i expect it to have the same value
[22:59:01] <fuzzie> then you divide an unsigned char value by 255, and maybe get some positive integer from a negative one :)
[22:59:20] <Avenger> (unsigned char) 15.9999999 is 15, right?
[22:59:22] <fuzzie> i guess, it should be cast to int before the division, and then dividing by 255 seems fine
[22:59:50] <Avenger> it is an int before division
[23:00:06] <fuzzie> oh, i is signed?
[23:00:16] <Avenger> yes
[23:00:23] <fuzzie> so it is
[23:00:57] <fuzzie> i'm not sure on the rules here, honestly
[23:01:18] <fuzzie> 0xFF plus 0xFF gives 0xFE? it would make sense
[23:01:25] <Avenger> yes
[23:01:42] <Avenger> 0xff+0xff = 0x1fe, cast to unsigned char gives 0xfe
[23:02:33] <Avenger> though, i'm not sure if 0xff+0xff should give 0xfe as r/g/b value
[23:02:58] <Avenger> i believe they shouldn't wrap around, but clipped at the boundaries
[23:03:11] <fuzzie> yes, but here it should be like that, i uess
[23:03:51] <fuzzie> i have someone's old ADP1 (original Android Developer Phone) here
[23:04:06] <fuzzie> should set a compiler up
[23:04:46] <Avenger> oh wait
[23:05:39] <fuzzie> you see what the code here is trying to do? (calculate the difference)
[23:05:54] <Avenger> pal->col[i].r = back.r +( unsigned char ) ( ( ( color.r - back.r ) * ( i ) ) / 255.0 );
[23:06:10] <Avenger> this is creating color scales
[23:06:13] <fuzzie> yes
[23:06:33] <fuzzie> so, you *do* want it to add a negative value, without clipping
[23:07:41] <Avenger> well, i will just change 255.0 to 255
[23:08:05] <Avenger> and see the result
[23:08:20] <fuzzie> i guess you should get the same result on your machine as on Android, then
[23:08:55] <Avenger> i hope so
[23:09:04] <Avenger> integer arithmetics should be the same, at least
[23:09:29] <Avenger> i see no change
[23:09:31] <Avenger> so i commit this
[23:09:34] <fuzzie> oke!
[23:09:47] <fuzzie> the most common problem i find with integers, is people assuming 'char' is signed
[23:10:43] <CIA-28> GemRB: 03avenger_teambg * rc2034b1d1c4d 10gemrb/gemrb/core/Interface.cpp: hopefully fixed palettes on Android
[23:11:09] <Avenger> isn't it?
[23:11:19] <fuzzie> no :P
[23:11:24] <Avenger> interesting
[23:11:30] <fuzzie> it depends on the compiler/processor/etc
[23:11:49] <fuzzie> but it is not an arithmetic difference, i guess :)
[23:11:50] <Avenger> well, i use only intel cpu's :)
[23:12:20] <Avenger> hmm and sparc, it is signed on sun sparc too
[23:12:30] <Avenger> i have no experience with others
[23:13:05] <Avenger> see you later!
[23:13:08] <-- Avenger has left IRC (Quit: bye!)