Reputation
Next privilege 200 Rep.
See reduced ads
Badges
8
Newest
 Commentator
Impact
~3k people reached

  • 0 posts edited
  • 0 helpful flags
  • 10 votes cast
Mar
10
comment Why encode floats in RGBA?
Ah! And being a dot product means that an element-wise multiplication (like the 0.5 in my example) would indeed scale the decoded value too! However, an element wise MAX or MIN operation would not make sense...
Mar
10
comment Why encode floats in RGBA?
@AndonM.Coleman , that constitutes an answer as far as I'm concerned :)
Jan
26
comment Discard Transparent Pixels in Z-Buffer
I am starting to think it is indeed another pass that is writing the zbuffer. But I created a scene without lights, and the transparent pixels are still written. What other passes is Unity doing and how can I influence them?
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
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
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
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
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.
Jan
21
comment Creating an unbiased deterministic collision resolution order
This is what I ended up doing. I hadn't even thought about the hashes being unfair too, so I'll do as you suggest and randomize each frame.