145 reputation
8
bio website noio.nl
location Netherlands
age 25
visits member for 3 years
seen yesterday
Programmer, web designer, AI student.

Feb
3
awarded  Commentator
Feb
3
accepted Drawing Colored Geometry in OpenGL using SDL
Feb
3
comment Drawing Colored Geometry in OpenGL using SDL
Thanks :) the CreateContext solved my original problem though; I just had to wait to be able to accept my own answer.
Feb
3
comment Drawing Colored Geometry in OpenGL using SDL
@AidanMueller, thanks. It took me a whole day to figure out how to correctly use VBOs; additionally, I migrated to SFML because it messes a little less with the OpenGL state.
Feb
1
awarded  Informed
Feb
1
answered Drawing Colored Geometry in OpenGL using SDL
Feb
1
comment Drawing Colored Geometry in OpenGL using SDL
s/forum/site/ ;) Could you point me to the newer functions I'm supposed to use? I copied this code from an "SDL + OpenGL" example.
Jan
31
revised Drawing Colored Geometry in OpenGL using SDL
added 247 characters in body
Jan
31
accepted Simple Motor Vehicle Acceleration Function
Jan
31
asked Drawing Colored Geometry in OpenGL using SDL
Jan
28
comment Simple Motor Vehicle Acceleration Function
Thanks for the vote of confidence ;) Which of those functions is most realistic with respect to real cars? 1, 2 and 4 all have a very steep decline, is that what actually happens? (Not to say that I am looking for realism per-se, just curious)
Jan
28
revised Simple Motor Vehicle Acceleration Function
added 46 characters in body
Jan
28
asked Simple Motor Vehicle Acceleration Function
Jan
23
comment Creating an unbiased deterministic collision resolution order
@JohnMcDonald, Actually, I'm doing: for each object in x-order: for each object with a higher x-coordinate (sweep-and-prune) :)
Jan
22
comment Creating an unbiased deterministic collision resolution order
True, so it's actually a tiny bit more complicated, I check for swapped versions of the pair too: if (o1, o2) not in collided: collided.add((o2,o1)).
Jan
21
comment Creating an unbiased deterministic collision resolution order
The problem with that is that each collided tuple (object1, object2) has to be identical, so that I can rely on Python's set() to keep only unique pairs (I only want to notify each pair once ). Adding tuple = (random(), object1, object2) would indeed be a solution, but then collided.add(tuple) would no longer preserve uniqueness of the list.
Jan
21
awarded  Scholar
Jan
21
accepted Creating an unbiased deterministic collision resolution order
Jan
21
comment Creating an unbiased deterministic collision resolution order
I could use a sort key, the problem is that I'm using Python's set() to make sure each pair is only added once to the collided set, adding a sort key would break that behavior.
Jan
21
comment Creating an unbiased deterministic collision resolution order
So your suggestion is to shuffle the collision list, but in a deterministic way? I think the problem is that the collision list is in a nondeterministic order to begin with (because it's a Python set), so I actually need to explicitly sort it based on some property.