code logs -> 2007 -> Fri, 06 Apr 2007< code.20070405.log - code.20070407.log >
--- Log opened Fri Apr 06 00:00:53 2007
00:48 Syloq [Syloq@NetAdmin.Nightstar.Net] has joined #code
00:59 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has quit [Quit: Z?]
01:31 Derakon [~Derakon@Nightstar-12737.sea2.cablespeed.com] has joined #code
01:31 mode/#code [+o Derakon] by ChanServ
01:52
<@Derakon>
So I'm wondering - how would a game like, say, Sonic 1, handle Sonic interacting with the ground?
01:53
<@Derakon>
The game's tile-based, but a given terrain tile may have one of many different possible angles to stand on, and Sonic needs to orient himself to those angles.
01:53 Syloq is now known as Syloqs-AFH
01:53
<@Derakon>
Does each tile just say "I have surface angle <theta>" and then Sonic determines how to stand based on which tile he's closest to?
02:13 Derakon is now known as Derakon[AFK]
02:38
<@Serah>
The hard way around would be reading the difference between the invisible part and the visible part.
02:38
<@Serah>
Another seeming solution is alpha layers.
02:38
<@Serah>
Otherwise your solution sounds about right.
02:39
<@Serah>
IIRC in Sonic 1 there was only three different slope typed.
02:39
<@Derakon[AFK]>
I think you're thinking about the actual collision test, which I can do just by comparing pixels. That's easy.
02:39 Derakon[AFK] is now known as Derakon
02:39
<@Serah>
Angle sonicsprite?
02:40
<@Derakon>
The two things I'm worried about are 1) adjusting the player's position so he's standing right on the surface, instead of above or below, and 2) handling all surface normals so movement makes sense.
02:40
<@Derakon>
Er, what?
02:40
<@Serah>
Can you properly rotate the sprite?
02:41
<@Derakon>
I wasn't planning on having loops.
02:41
<@Derakon>
And normal humans stand straight up on slopes.
02:41
<@Derakon>
So that kind of thing wouldn't be handled by rotation anyway.
02:41
<@Serah>
What is the issue, then?
02:42
<@Derakon>
a) when an intersection occurs, how do I know how far back to move the player's sprite along its velocity vector so that it'll be just barely not intersecting? b) if the player is standing on a slope, that affects his run speed; how do I detect this?
02:43
<@Serah>
Ah.
02:43
<@Vornicus>
Also "where do I put this guy's legs?"
02:43
<@Derakon>
I could handle both issues easily enough if I used bounding polygons instead of a bitmask for collision detection, but the last time I tried to implement bounding polygons, it took months and still never worked quite right.
02:44
<@Derakon>
I'm probably going to handle that with undergrowth and a standing-on-slope sprite, Vorn.
02:49
<@Derakon>
Anyway, ideally there's a solution to this problem that doesn't involve having a limited number of surface types and simply hardcoding their behaviours, but damned if I can figure out how I'd do it.
02:50
<@Serah>
IIRC the original Sonic 1 did just that, except they had "movement" tiles, which weren't visible, but determined wether or not you could go there, or step on stuff.
03:05
<@Derakon>
Curious - how do you know this?
03:06
<@Vornicus>
I believe the file formats for Sonic are well enough documented to know such a thing
03:06
<@Vornicus>
...anyway it's how I'd do it
03:06
<@Derakon>
Fair enough.
03:07
<@Derakon>
I suppose that realistically I don't need more than three different angles, plus the mirrored non-flat ones.
03:07
<@Derakon>
Well, and vertical walls.
03:09 Chalcedon [Chalceon@Nightstar-5098.dialup.ihug.co.nz] has joined #code
03:09 mode/#code [+o Chalcedon] by ChanServ
03:09
<@ToxicFrog>
rhdn probably has lots of stuff on the Sonic file formats.
03:09
<@Derakon>
RHDN?
03:09
<@Vornicus>
wtf rhdn
03:10
<@Derakon>
Anyway, I was just using Sonic as an example, since it does what I want to be able to do.
03:10
<@ToxicFrog>
romhacking.net
03:10
< Raif>
WWWWD?
03:10
< Raif>
:)
03:10
<@Derakon>
W = Wario?
03:11
< Raif>
Wil Wheaton.
03:11
<@Derakon>
Oh, right. Four 'W's.
03:11
< Raif>
Every time I read "WWdN" I think of that acronym.
03:25
<@Derakon>
Actually, all I'd need would be to encode the surface normal with each tile; no need to limit myself to a set number of tile angles.
03:51 Chalcedon [Chalceon@Nightstar-5098.dialup.ihug.co.nz] has quit [Ping Timeout]
04:08 Doctor_Nick [~fdsaf@Nightstar-1992.9-67.se.res.rr.com] has joined #code
04:26
< Doctor_Nick>
im lua the cat
05:01 ReivZzz is now known as Reiver
05:36
< Raif>
Who's loa the cat and why are we imming him?
05:37
< Doctor_Nick>
giv monay
05:46 GeekSoldier [~Rob@Nightstar-6557.pools.arcor-ip.net] has quit [Quit: vote Bush again in 2008... I need the money!]
06:01 Thaqui [~Thaqui@Nightstar-12000.jetstream.xtra.co.nz] has left #code [Leaving]
06:18 Derakon is now known as Derakon[AFK]
06:33 Syloqs-AFH [Syloq@NetAdmin.Nightstar.Net] has quit [Connection reset by peer]
06:34 GeekSoldier [~Rob@Nightstar-6557.pools.arcor-ip.net] has joined #code
07:09 Netsplit Troika.TX.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: @Mahal
07:13 Vornicus [~vorn@Admin.Nightstar.Net] has quit [Ping Timeout]
07:16 Vornicus [~vorn@Admin.Nightstar.Net] has joined #code
07:16 mode/#code [+o Vornicus] by ChanServ
07:17 Mahal [~Mahal@Nightstar-763.worldnet.co.nz] has joined #Code
07:17 mode/#code [+o Mahal] by ChanServ
07:22 Doctor_Nick [~fdsaf@Nightstar-1992.9-67.se.res.rr.com] has quit [Ping Timeout]
10:12 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has joined #Code
10:12 mode/#code [+o gnolam] by ChanServ
10:27 Vornicus is now known as Vornicus-Latens
11:09 Derakon[AFK] [~Derakon@Nightstar-12737.sea2.cablespeed.com] has quit [Connection reset by peer]
11:45 Mahal is now known as MahalBed
12:05 GeekSoldier [~Rob@Nightstar-6557.pools.arcor-ip.net] has quit [Ping Timeout]
12:08 You're now known as TheWatcher
12:36 * gnolam hmms.
12:39 * gnolam aaahs.
12:40 * AnnoDomini slowly walks away from gnolam. "Don't you know God kills a kitten every time you do that?"
13:04
<@gnolam>
God kills a kitten every time I figure out why my vertex arrays and VBOs don't coexist peacefully?
13:05
<@gnolam>
My my, God is really into felinicide, isn't he?
13:06
<@AnnoDomini>
Yis.
14:12 Thaqui [~Thaqui@Nightstar-12000.jetstream.xtra.co.nz] has joined #code
14:13 mode/#code [+o Thaqui] by ChanServ
14:19 Thaqui [~Thaqui@Nightstar-12000.jetstream.xtra.co.nz] has left #code [Leaving]
15:10 Vornicus-Latens [~vorn@Admin.Nightstar.Net] has quit [Ping Timeout]
16:05 GeekSoldier [~Rob@Nightstar-4095.pools.arcor-ip.net] has joined #code
16:14
<@gnolam>
Hmm... interesting.
16:16
<@gnolam>
I've raised the upper FPS limit but lowered the lower FPS limit.
16:16 * gnolam investigates.
16:18 GeekSoldier [~Rob@Nightstar-4095.pools.arcor-ip.net] has quit [Quit: vote Bush again in 2008... I need the money!]
16:21 * gnolam think of great Lobachevski and get idea, ha-haa!
16:29
<@jerith>
Plagiarise!
16:29
<@jerith>
Let no one else's work evade your eyes!
16:35 KarmaBot [~karma.bot@Nightstar-29095.neoplus.adsl.tpnet.pl] has quit [Connection reset by peer]
16:36 KarmaBot [~karma.bot@Nightstar-29095.neoplus.adsl.tpnet.pl] has joined #Code
16:37
< KarmaBot>
KarmaBot v1.19. online and ready. Type "!help commands" for command list.
17:09 You're now known as TheWatcher[afk]
17:11 Reiver is now known as ReivZzz
17:49 Doctor_Nick [~fdsaf@Nightstar-1992.9-67.se.res.rr.com] has joined #code
18:28 Vornicus [~vorn@ServicesOp.Nightstar.Net] has joined #code
18:28 mode/#code [+o Vornicus] by ChanServ
19:05 You're now known as TheWatcher
19:14
<@McMartin>
Only do remember to call it please "research."
19:14 * ToxicFrog ponders.
19:14
<@ToxicFrog>
You know, I bet you could overload __index to behave like SELECT
19:15
<@ToxicFrog>
Eg, players = db["type == 'player' and status == 'online'"]
19:15
<@ToxicFrog>
This will be useful.
19:17 Janus [~Cerulean@Nightstar-10302.columbus.res.rr.com] has joined #Code
19:21
<@Vornicus>
Ever since i meet this man my life is not the same
19:24 KBot [~karma.bot@Nightstar-28801.neoplus.adsl.tpnet.pl] has joined #Code
19:25 KarmaBot [~karma.bot@Nightstar-29095.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
19:25 AnnoDomini [~farkoff@Nightstar-29095.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
19:25 KBot is now known as KarmaBot
19:27
< Janus>
Who..?
19:29
<@Vornicus>
Nikolai Ivanovich Lobachevsky is his name!
19:29
<@gnolam>
And here I was just going to post a line that it was good to be in civilized company. You ruined the moment, Janus!
19:29 AnnoDomini [~farkoff@Nightstar-28801.neoplus.adsl.tpnet.pl] has joined #Code
19:29 mode/#code [+o AnnoDomini] by ChanServ
19:29
<@gnolam>
Of course, Pravda say about the moment... it stinks.
19:30
<@Vornicus>
http://quod.lib.umich.edu/u/umhistmath/Lobachevsky.mp3 <---
19:35
<@AnnoDomini>
"Every chapter I stole from somewhere else."
19:39
<@AnnoDomini>
Metro Goldwym Moskva. Heh.
19:44 * Janus doesn't listen to enough Germanic mathimatic pianist allegro in prosody.
19:45
<@AnnoDomini>
Germanic??
19:45
<@AnnoDomini>
Am I missing something important? The guy sounded Russian through and through.
19:46
<@Vornicus>
That's actually Tom Lehrer, he is neither german nor russian.
19:47
< Janus>
I listen to enough of Russian variety though.
19:47
<@AnnoDomini>
He pronounces Russian words well, anyway.
19:48
< Janus>
Perhaps he's a French sort?
19:55 * Janus bases this on the assumption that France is in Europe.
19:56
<@AnnoDomini>
!wiki Tom Lehrer
19:56
< KarmaBot>
[AnnoDomini] http://en.wikipedia.org/wiki/Tom_Lehrer
20:02
<@gnolam>
HEATHENS
20:05
<@ToxicFrog>
!wiki is for people who don't have Opera ??
20:05
< KarmaBot>
[ToxicFrog] http://en.wikipedia.org/wiki/is_for_people_who_don't_have_Opera_??
20:05
<@ToxicFrog>
...
20:05
<@Vornicus>
hee
20:14
<@Serah>
Who needs opera anyway.
20:14
<@gnolam>
Fat ladies.
20:14
<@Serah>
So we can conclude that TF is a fat lady?
20:17
<@ToxicFrog>
People with less than 32GB of memory.
20:22
<@AnnoDomini>
!wiki is for people who consider it less troublesome to type in a command, therafter double-clicking, than going to the browser and using several clickings and a command to get where they want to.
20:22
<@AnnoDomini>
This may be a feature of Opera, I don't know.
20:22
<@Serah>
!wiki is for people who doesn't have it as part of their client, or operating system.
20:23
<@AnnoDomini>
Yeah.
20:24
<@Serah>
There's no reason not to customize what you have to your needs.
20:25
<@AnnoDomini>
Agreed.
20:25
<@Serah>
And even if it fullfils your needs there's no reason not to customize it to have additional features of niftiness.
20:26
<@AnnoDomini>
Mhm.
20:26 * AnnoDomini doesn't even remember usually all the scripts he uses daily.
20:33
<@gnolam>
Guess you need a prompter then.
20:35
<@AnnoDomini>
What.
20:38
<@gnolam>
!wiki Prompter
20:38
< KarmaBot>
[gnolam] http://en.wikipedia.org/wiki/Prompter
20:40 You're now known as TheWatcher[afk]
20:41
<@AnnoDomini>
I do not need a prompter.
20:47
<@ToxicFrog>
AnnoDomini: the Opera feature I referred to was the ability to define arbitrary search engines, in this case 'w foo'.
20:47
<@ToxicFrog>
As an alternative to '!wiki foo' and then copypasting.
20:47
<@AnnoDomini>
Copy pasting? No, no, I double click it.
20:48
<@ToxicFrog>
Double-clicking, then. Still takes longer.
20:48
<@ToxicFrog>
(I would copy-paste, because xchat and Opera are not running on the same machine0
20:50
<@AnnoDomini>
Well, it's easier for me. To do the same without the script, I need to: switch to the browser, click the favorites menu, click the wikipedia bookmark, wait for it to load, click on the search box, type my query, press enter, and wait for it to load.
20:51
<@AnnoDomini>
Here I just enter the command, double click and wait for it to load.
20:54 * ToxicFrog nods
20:54
<@ToxicFrog>
My point here is that it's faster than doing it by hand, but slower than doing it in a browser that supports custom searches.
20:55
<@AnnoDomini>
Indeed.
21:20 * ToxicFrog fiddles with his inference chaining program
21:21 You're now known as TheWatcher
21:39 * ToxicFrog kills sites that use javascript-generated directory listings in the face
21:39
<@Vornicus>
That sounds like a Hole.
21:42
<@ToxicFrog>
In the face, yes. That's what the knife is for.
21:42
<@jerith>
ToxicFrog: FireFox does that too.
21:42
<@jerith>
(The opera "w something" thing.)
21:50 You're now known as TheWatcher[T-2]
21:54 You're now known as TheWatcher[zZzZ]
22:41 Thaqui [~Thaqui@Nightstar-11596.jetstream.xtra.co.nz] has joined #code
22:41 mode/#code [+o Thaqui] by ChanServ
22:43
<@gnolam>
Blargh. DAMN YOU, VBOs!
22:44 MahalBed is now known as Mahal
22:45
<@gnolam>
Blargh.
22:45
<@gnolam>
It /should/ work...
23:27 Doctor_Nick [~fdsaf@Nightstar-1992.9-67.se.res.rr.com] has quit [Quit: ]
23:32
<@gnolam>
YATTA!
23:33
<@gnolam>
A rendering speedup by a factor of 3.
23:45
<@Vornicus>
Yiboo
--- Log closed Sat Apr 07 00:00:53 2007
code logs -> 2007 -> Fri, 06 Apr 2007< code.20070405.log - code.20070407.log >