#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2013-04-18

Timestamps are in GMT/BST.

00:23:56kaen Quit (Remote host closed the connection)
00:29:05raptor Quit (Ping timeout: 264 seconds)
00:30:06kaen has joined
00:34:12Watusimoto_ Quit (Ping timeout: 264 seconds)
01:07:11sam686 has joined
01:07:11ChanServ sets mode +v sam686
01:43:15raptor has joined
01:43:15ChanServ sets mode +o raptor
02:27:14koda Quit (Quit: k thx bai)
02:54:52raptorkaen: poly2tri: http://sam6.25u.com/upload/6screenshot_12.png
02:59:29kaenPP refuses to even operate on levels like that
03:00:04kaenI'm working right now on doing a subtriangulation for circuitous barriers
03:00:51kaenand then passing that into the main Triangulate_EC call
03:01:37kaenalso eclipse-cdt is the best IDE I've ever used on linux, from a functionality standpoint
03:02:02kaenSearching for declarations of a symbol consistently works... it's strange.
03:03:04raptorheh
03:03:15raptorand the RAM usage! it's so high!
03:03:21raptor(i use CDT..)
03:03:36raptoralso CDT has gotten waaaay better with this last release just a month ago or so
03:04:05raptoralso, poly2tri seems good - I remember we had this same problem with triangle..
03:04:32fordcars_ Quit (Ping timeout: 245 seconds)
03:04:41raptorpoly2tri would have failed when we first implemented Triangle because we weren't using the clipper lib to merge polys beforehand
03:05:04raptorbut now that we are, I think that bug with multiple points on the same line won't effect us..
03:05:58raptoralso what on earth is a steiner point - i keep getting vague language in my research
03:11:20raptorsam686: do you remember when we had this problem with Triangle?: http://sam6.25u.com/upload/6screenshot_12.png
03:11:26raptorand do you remember how we solved it?
03:24:53raptoraww man
03:25:13raptorhandling enclosed holes is something only Triangle might actually do...
03:38:57raptorok, I'm beginning to thing that the Triangle library is just magic
03:39:01raptor*think
03:40:58kaenhmm... that would explain why it's written in archaic runes
03:44:54raptorso the output from merge polys of this map is two concentric polygons: http://sam6.25u.com/upload/5screenshot_13.png
03:46:07raptorwhich makes sense
03:46:17raptorbut somehow Triangle works and nothing else does
03:47:41raptormergePolys merges all the 'holes'
03:48:20raptorI don't even know how we could tell if something was a continuous hole
04:08:16raptorok
04:08:43raptorit looks like the output polygons are wound in opposite directions
04:19:03raptorCGAL is commonly referenced... but my goodness, I don't think a library could be documented less for the layman than that one
04:20:54raptorI'm giving up until we hear back from Triangle dude
04:21:02raptoron to greater things!
04:36:26raptorsooo.. bed!
04:36:29raptor Quit ()
06:48:22sam686 Quit (Ping timeout: 245 seconds)
07:09:02Watusimoto has joined
07:22:22Watusimoto Quit (Ping timeout: 264 seconds)
07:22:52koda has joined
09:55:54Platskies has joined
10:00:02Platskies Quit (Ping timeout: 240 seconds)
10:07:55Platskies has joined
11:31:24kodab has joined
11:33:47koda Quit (Ping timeout: 245 seconds)
11:36:17kodab Quit (Ping timeout: 245 seconds)
12:21:07koda has joined
15:05:07Platskies Quit (Remote host closed the connection)
17:08:28watusimoto1 Quit (Quit: Leaving.)
17:13:11raptor has joined
17:13:11ChanServ sets mode +o raptor
17:25:38Watusimoto has joined
17:32:50raptorlessons learned from last night: Triangle is magic
17:33:03raptorseems like I need to relearn that every year or so...
17:34:11koda Quit (Ping timeout: 245 seconds)
17:35:52Watusimotono word from mr. triangle
17:36:59raptorI mean, it's magic!
17:37:16raptorI actually got poly2tri hooked up in under an hour: http://sam6.25u.com/upload/6screenshot_12.png
17:37:34raptorit was super fast and just as good for what it could do
17:37:53raptorbut it can't seem to handle a 'continuous' hole
17:38:02raptorlike the outside barrier of a map
17:38:16raptorin fact - *nothing* seems to be able to handle it, except for Triangle
17:38:28raptorfrom my research (and kaen's)
17:49:14WatusimotoI don't entirely follow -- what do you mean by a conitnuous hole?
17:49:27raptorhttp://sam6.25u.com/upload/5screenshot_13.png
17:49:33raptorthe wall
17:49:36raptoris a hole
17:49:40raptorbut a donut, too
17:52:26raptormaybe 'donut' is a better word
17:52:39Watusimotook
17:52:47raptorbut Triangle is magic
17:52:52Watusimotoso they don't handle islands
17:53:01WatusimotoI think is the "technical" term
17:53:05Watusimototechnicalish
17:53:09Watusimotoisland polygons
17:53:19Watusimotoor, rather, complex polytongs
17:53:20raptorpoly2tri is blazing fast... maybe faster than Triangle - but not as robust, obviously
17:53:23Watusimotothey handle simple polygons
17:53:26raptorwhat?
17:53:35Watusimotoi think a complex poly is one with islands
17:53:52Watusimotoand a simple poly is one with just a border (of whatever complexity)
17:54:22raptorcomplex polys have lines that cross themselves
17:54:35Watusimotoso an outer area walled off from an inner area would create a complex polygon
17:55:12raptori wonder if there'd be a way to detect things like this...
17:55:19raptorthere's got to be
17:55:56Watusimotoyour terminilogy seems to have some external support
17:56:15Watusimotoremmeber that we could have many levels of islands within islands
17:56:20raptoryep
17:56:26raptorand Triangle is magic
17:57:20Watusimotoso if you could identify the islands... then what... triangle those separately?
17:57:38Watusimotothen the islands within the islands... and so on
17:57:53raptoryeah, add the interriors as a new exterior polyline to triangulate
17:59:15Watusimotoso does poly2tri mention islands at all?
17:59:19raptornone
17:59:30raptorand I just posted this: http://code.google.com/p/poly2tri/issues/detail?id=74
18:00:39Watusimotoso clipper handles making things wind in the proper order?
18:00:44Watusimotothat's actually a big advantage
18:00:46raptoryes
18:00:50raptorclipper is amazing
18:00:58raptorit sanitizes all of our inputs
18:01:00Watusimotoyour questino is good
18:01:14Watusimotothen the solution seems simple
18:01:17Watusimotoconceptually
18:01:25raptorin fact since we've added clipper we could probably get rid of some of our own sanitization stuff..
18:01:27Watusimototriangluate every polygon wound cw
18:01:29Watusimotoor ccw
18:01:42raptorwait what?
18:01:59Watusimotoimagine a set of concentric polygons
18:02:04raptorok
18:02:08Watusimotothat represent a worst case scenario
18:02:13raptorheh, yes
18:02:15Watusimotothe outer one will be wound cw
18:02:18Watusimotothe next ccw
18:02:20Watusimotothe next cw
18:02:21Watusimotoetc.
18:02:24raptorok
18:02:25Watusimotowith me so far?
18:02:28raptoryep
18:02:30Watusimotook
18:02:41raptorahhhh, i see
18:02:43Watusimotoso trianluate the outer one
18:02:52Watusimotogot it?
18:02:54raptoryep
18:03:07raptorso the trick would be how to find what is in what hole
18:03:16Watusimotoyou don't need to know that
18:03:25WatusimotoI don't think
18:03:44raptoreach triangulation of a ccw one requires it knows the holes of anything inside, right?
18:03:59Watusimotowhat if you fed the triangluation holes that were not actually contained in the poly?
18:04:07Watusimotowould it work, or just die?
18:04:13raptorit would probably just work
18:04:24Watusimotothen feed it everything. it might work
18:04:24raptoractually, not sure - but we could always do bounds checking..
18:04:33WatusimotoI'd try wihtout that first
18:04:41raptorhmmm....
18:04:42Watusimototake our concentric polys again
18:04:50Watusimotothe outer one is A, the next one is B, etc.
18:04:54WatusimotoA is easy
18:04:57Watusimotofeed it everything
18:05:03Watusimotoyou get triangles btwn A and B
18:05:12WatusimotoB is wound wrong so you skip it
18:05:17Watusimotonext comes C
18:05:23Watusimotoyou feed it everything
18:05:29raptoryes
18:05:30Watusimotowhat would it do?
18:05:33WatusimotoA and B are completely outside C
18:05:35Watusimotoso might be ignored
18:05:47WatusimotoI would hope you'd get the space btwn C and D
18:06:02raptorok yes
18:06:09Watusimotowe have no intersections
18:06:14Watusimotoso our input is clean in that sense
18:06:18raptoryay clipper
18:06:22Watusimoto:-)
18:06:34Watusimotothat would be the next thing to try, anyway
18:06:46Watusimotoand should be relatively easy
18:06:50raptorI guess my brain was thinking about performance too much :)
18:07:15Watusimotoidelaly, clipper would give us a way to distinguish the CW polys from the CCW ones
18:07:28Watusimotoso we don't need to examine each
18:08:00raptorthere is a isWoundClockWise method or something in CLipper
18:08:12raptorbecause it just spits out points
18:09:47Watusimotothat should work
18:09:54Watusimotoso long as we don't need to visit each point
18:10:56Watusimotoon your question, you might want to clarify (if you can at this point) that you are hoping for triangles on the entire black area of the image
18:11:02Watusimotoat least the inner area
18:11:14raptori didn't write that? let me check
18:11:38raptorah, i guess not so explicitly
18:11:51Watusimotoyou sort of did
18:12:06Watusimotojust thinking peopel don't read questions before answering!
18:12:26Watusimotonot a huge deal, just might make the image clearer
18:12:54Watusimotobecause at a glance, it seems to ahve worked inversely... triangles outside the poly, no triangles in
18:13:02Watusimotowhich is a completely wrong interpretation of the image
18:15:33raptoractually...
18:15:40WatusimotoI have a whole page of mapping out how our player names and passwords get set
18:15:42Watusimotowhat a mess
18:15:49Watusimotoeverything calls soemthign else
18:15:51Watusimoto]blech
18:15:58Watusimotodeleting functions like crazy!
18:15:59raptorif we just always triangulate ccw walls... then maybe we don't need the outer rect!
18:16:10raptoractually no - many maps are open
18:16:15Watusimotowe would if there were an exit to the outside
18:16:28raptoroh yeah, the pasword/playername stuff is nuts
18:16:30Watusimotowhich is why we have that outer rect in the first place
18:16:37Watusimototrying to clarify it
18:19:08raptoroh good
18:19:13raptoralso, yay for options menus!
18:19:27raptorthat might be an old bug that you solved...
18:23:51Watusimotowith just a tiny bit of duplicated code, things become much clearer
18:31:37sam686 has joined
18:31:37ChanServ sets mode +v sam686
18:46:37Watusimotodinner... back later
18:51:08Watusimoto Quit (Ping timeout: 245 seconds)
18:58:38bobdaduck has joined
19:40:16bobdaduckAny progress on the death forcefield snapping bug?
19:40:30raptorhttp://code.google.com/p/bitfighter/source/detail?r=84ed46702cde5e0c253cfbb62bf8cedc19d56886
19:40:50bobdaduckWhoo!
19:40:59bobdaduckWhat was the problem? How'd you fix?
19:41:37raptori could explain - or I could defer to the code changes I made in which I document it... mut maybe it's best summed up by one word: fuzzy math
19:41:42raptor:)
19:42:01bobdaducklol
19:42:11raptoralso, I have a meeting - back later
19:42:15bobdaduckk
19:50:50Watusimoto has joined
19:51:07bobdaduckSo what's all this I hear about triangles being magic?
19:55:42Watusimoto3-4-5
19:57:51bobdaduckpathagorean theorem
19:58:46bobdaduck?
19:59:01bobdaduckAlso serious question: How is /nextmap determined?
20:06:47raptor /next just pulls the next map, alphabetically by filename
20:06:59raptorunless it fails to meet certain criteria
20:07:08raptorlike if it provides min/max players
20:08:20bobdaduckSo we could potentially set up a map order...
20:08:38bobdaduckOh by the way
20:08:39raptoractually yes - I did that somehow with the BBB
20:08:43bobdaduckBBBX map list complete
20:08:52raptoroops, gotta run - meeting!
20:09:07raptoryay, also I think we should not do endless war
20:09:20bobdaduckI will win that debate.
20:09:23raptornow we just need to start editing maps for scores/etc and set up an order
20:09:33raptorback later
20:09:38raptorand Triangle is magic!
20:09:59bobdaducklol
21:08:30Watusimoto_ has joined
21:09:16Watusimoto Quit (Ping timeout: 264 seconds)
21:16:13BFLogBot Commit: 147dd6dabb50 | Author: watusimoto | Message: Rather sprawling update that simplifies the way usernames and passwords are stored/managed
21:48:14bobdaduckSo wassup with triangles?
22:35:25raptorhi
22:40:36kaenhello
22:40:49raptorhey kaen
22:41:02raptoryou've probably read my triangulation monologues
22:41:10kaenI believe so
22:41:27kaenI'm just about to give subtriangulation with PP a try
22:41:47raptorwhat does that mean?
22:42:07raptora different algo, or finding the internal hole holes that need to be triangulated?
22:42:44kaentake the outside polygon of circuitous barriers as a polygon and in the inside polygon as hole, run it through PP, and the resulting triangles to the main triangulation call as holes
22:43:15raptorhuh
22:43:32raptor'circuit'! that's the word!
22:43:40kaeni just got off of a 12 hour shift so that came out kind of fuzzy...
22:43:49raptorno i get it
22:44:06kaenvery useful that the metaholes are wound in the opposite direction
22:44:09raptoralso, if you didn't see, I opened an issue with poly2tri about that: http://code.google.com/p/poly2tri/issues/detail?id=74
22:44:14raptorah, you did see :)
22:49:12SolumnMushroom has joined
22:49:24SolumnMushroomHello all!
22:50:38bobdaducksup mush
22:53:24SolumnMushroom Quit (Client Quit)
22:55:35raptorheading home!
22:56:16raptorkaen: we should compare notes later because I was planning on implementing your idea somehow with poly2tri, as well...
22:56:52raptorlater!
22:56:54raptor Quit ()
22:58:21SolumnMushroom has joined
22:58:38SolumnMushroomSorry about the abrupt exit
22:59:08SolumnMushroomThe library computer I was on was not making my left ear happy...
23:40:25BFLogBot Commit: a4e8db09b7eb | Author: watusimoto | Message: Spelling
23:40:26BFLogBot Commit: ca97ac38afbf | Author: watusimoto | Message: Shuffle things around a bit to be more coherent and more isolated
23:40:28BFLogBot Commit: ae027fdd5f97 | Author: watusimoto | Message: More shuffling and isolating... UIManager completely out of GameType, still a little UI stuff left in there, but not much
23:43:37BFLogBot Commit: 7f0e41c175f0 | Author: watusimoto | Message: Pass by ref
23:44:06Little_Apple has joined
23:48:16Little_Apple Quit (Ping timeout: 245 seconds)
23:54:27SolumnMushroomGoodbye
23:54:30SolumnMushroom Quit (Quit: Page closed)

Index Search ←Prev date Next date→

These logs were automatically created by BFLogBot on irc.freenode.net.