Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Gatleos

Pages: 1 ... 7 8 [9] 10 11 ... 243
121
Can anyone suggest a good c++ date (or date/time) class implementation?

Hard mode: don't use the word "boost"

122
Other Games / Re: Games you wish existed
« on: July 11, 2016, 06:35:57 pm »
Still waiting on that detailed Cult Management Simulator. I'll probably just end up making it.

123
So when you said some of your polygons were clockwise and some were anti-spinward counterclockwise, I'm wondering: Is there a reason for that?

Yeah, it's a data-entry thing. These polygons are data imported from Tiled and used for collision mapping. I'm getting the Minkowski Sum of an (arbitrarily-sized) AABB and a completely arbitrary polygon pulled from the collision map, so that I can perform predictive collision testing.

124
Quote
I need to merge the list of vertices in the two polygons into one, while maintaining the ordering by angle.
That apparently only works for when the input polygons are both convex. If so, then use 3D vectors and the cross product to determine if the polys are clockwise or counter-clockwise. Then, you can adjust inputs and use the standard algorithm.

EDIT: I thought of a method, but it won't necessarily work if there are non-convex inputs.

Yeah, I already accepted the limitation of convex polygons. I'm just rejecting any input that isn't convex. It's really confusing to visualize how to determine which vertices from polygon A should be placed between which ones from polygon B, and how I should be altering the coordinates to account for the new vertices I shoved in between.

125
So I need to find the minkowski sum of two arbitrary polygons. According to some articles I've read about the subject, I need to merge the list of vertices in the two polygons into one, while maintaining the ordering by angle. The resulting polygon has to be convex, so they have to be sorted by the ϴ (angle) portion of their polar coordinates.

This might be pretty easy if these lists of vertices started at the rightmost point and worked around counter-clockwise, but they start at arbitrary positions and can go clockwise too. This might take a while.

126
Other Games / Re: Games you wish existed
« on: May 20, 2016, 03:58:53 am »
Fallout: New Vegas  +  TLoZ: A Link to the Past

Spoiler (click to show/hide)

127
Creative Projects / Re: StarFighter game - working prototype
« on: May 12, 2016, 10:15:11 pm »
Are you planning on individually generating all those stars? :o

128
General Discussion / Re: Things that made you sad today thread.
« on: May 12, 2016, 02:26:36 am »
Thanks for the kind words. Sorry I just dumped that in here without any explanation, I just needed to write it down somewhere.

129
General Discussion / Re: Things that made you sad today thread.
« on: May 11, 2016, 09:37:38 pm »
My dad just died in a car accident, my life is a fucking mess, we're probably going to lose our house, and this is literally the only place I could think of to talk about it because I hardly have any friends left.

130
General Discussion / Re: MSPA Homestuck
« on: April 29, 2016, 09:37:28 pm »
I was really hoping we'd get to hear this song, set to the appropriate events.

132
DF General Discussion / Re: Y ppl talk about "learning curve" in DF?
« on: April 26, 2016, 04:59:56 pm »
Just gonna leave this here...

I just lost brain cells

133
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: April 23, 2016, 04:12:03 pm »
I'm not even sure PASSTHROUGH is a keyword. It's just an alias for the returned query results or something. Anyway, I can always just perform another query on the results... but you'd think sql would give you every filtering option available to decrease bandwidth.

134
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: April 22, 2016, 08:13:13 pm »
Code: [Select]
SELECT * FROM OPENQUERY (REMOTE_SERVER, 'SELECT * FROM REMOTE.dbo.Person WHERE PersonFirst = ' + @CustomerFirst + ' AND PersonLast = ' + @CustomerFirst) AS PASSTHROUGH
For some reason, sql server won't let me concatenate strings to create a passthrough query. No matter what I do, all it will allow is a single, unbroken string literal. Which means I can't pass those @ parameters in. Is there something I'm missing?

135
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: April 21, 2016, 02:47:29 pm »
If you're learning c++, do yourself a favor and learn how static and dynamic libraries work as soon as possible.

Pages: 1 ... 7 8 [9] 10 11 ... 243