#nuvie@irc.freenode.net logs for 24 Mar 2006 (GMT)

Archive Today Yesterday Tomorrow
Nuvie homepage


[04:30:26] --> SB-X has joined #nuvie
[11:24:20] --> Yuv422 has joined #nuvie
[11:24:29] <Yuv422> hello
[12:13:14] <wjp> hi
[12:16:38] <Yuv422> hey wjp
[12:16:50] <Yuv422> How's things?
[12:18:40] <wjp> pretty good; finally got around to spending some time on pentagram again the last month
[12:24:13] <-- Yuv422 has left IRC (Remote closed the connection)
[12:24:49] --> Yuv422 has joined #nuvie
[12:25:06] <Yuv422> yeah I've got to fix the nuvie forum
[12:25:13] <Yuv422> silly spam
[12:25:24] <Yuv422> I might just change the posting url
[12:26:05] <Yuv422> maybe changing it to post1.php would do the trick
[12:26:17] <Yuv422> how's pentagram going?
[12:26:25] <wjp> slowly :-)
[12:26:37] <wjp> but it's getting there
[12:26:53] <Yuv422> cool japanese u8 :)
[12:27:03] * Yuv422 looks at the screenshot
[12:27:44] <wjp> gruck sent me the Japanese UC by (snail) mail :-)
[12:27:49] <wjp> so now we support that too :-)
[12:28:15] <wjp> one cool feature that Colourless added this month is unscaled high-res fonts
[12:28:35] <Yuv422> cool
[12:28:46] <wjp> so instead of scaling text in the default U8 font together with the rest of the screen, we replace it by an unscaled high-res ttf font
[12:29:17] <Yuv422> how are you rendering the ttf?
[12:29:34] <wjp> using SDL_ttf
[12:29:40] <Yuv422> cool
[12:30:06] <wjp> we render it into a buffer, add a black border, and blit that to screen
[12:30:26] <Yuv422> is the black border an outline?
[12:30:30] <wjp> the buffer is cached so we don't need to re-render the text each frame
[12:30:36] <Yuv422> or a rectangle?
[12:30:39] <wjp> outline
[12:30:45] <Yuv422> neat
[12:31:10] <wjp> each transparent pixel 'close to' a coloured pixel is made black, where 'close to' depends on the size of the border
[12:31:52] <Yuv422> does that undo the antialiasing effect?
[12:32:31] <wjp> in the AA case it's slightly more complicated, but we keep the antialiasing
[12:32:58] <wjp> (at least of the text itself, I'm not sure if we actually AA the added black border)
[12:33:57] <wjp> the different resolutions are handled by keeping a 1-bit z-buffer in the unused alpha channel of our backbuffer
[12:34:42] <Yuv422> are the Japanese characters included in the u8 datafiles?
[12:35:10] <wjp> roughly speaking, instead of rendering the text before scaling, the z-buffer is filled with 1's in the rectangle where the text should be; drawing other objects clears the z-buffer bit, and after scaling the text is rendered in the spots where there are still ones
[12:35:12] <Yuv422> I think they might be included with the bios for the fm-towns u6 version. :(
[12:35:28] <wjp> yes, it contains a japanese font
[12:35:49] <wjp> I do seem to recall that the fmtowns had a japanese font in rom, yes
[12:36:29] <wjp> but with the ttf support pentagram can also use any ttf that contains the necessary characters
[12:36:45] <Yuv422> can text be obscured in u8?
[12:37:07] <wjp> yeah
[12:37:32] <Yuv422> does it use unicode for the Japanese text? u8 that is.
[12:37:37] <wjp> no, shift-jis
[12:37:46] <Yuv422> ah k
[12:37:57] <wjp> u8 is older than unicode, I think
[12:38:03] <Yuv422> hehe
[12:38:43] <wjp> I added the shift-jis to unicode converter from iconv to pentagram
[12:39:30] <wjp> (which mainly involves a large translation table)
[12:39:49] <Yuv422> I plan to add Japanese text support into nuvie some day
[12:40:06] <Yuv422> but it's not high on my list of things to do at the moment
[12:42:19] <wjp> the fm-towns or the pc-9801 version?
[12:42:45] <wjp> (the japanese UC contained the pc-9801 one)
[12:44:15] <-- Yuv422 has left IRC (Remote closed the connection)
[12:44:51] --> Yuv422 has joined #nuvie
[12:45:27] <Yuv422> fm-towns
[13:12:06] <Yuv422> time for bed
[13:12:08] <Yuv422> cya
[13:12:14] <-- Yuv422 has left IRC ()
[13:12:48] <-- Kirben has left IRC (Read error: 110 (Connection timed out))
[18:06:13] <-- SB-X has left IRC ()
[18:06:17] --> SB-X has joined #nuvie
[18:17:26] <SB-X> :)
[18:17:31] <-- SB-X has left IRC ()
[22:25:22] --> Yuv422 has joined #nuvie
[22:44:48] --> Kirben has joined #nuvie
[23:07:42] <-- Yuv422 has left IRC ()