17,504 reputation
23672
bio website sam.zoy.org
location Paris, France
age 36
visits member for 4 years, 1 month
seen 34 mins ago

I live in Paris, France.

I work on video games (computers and consoles) for a living. I write free software and all kind of crazy shit for fun. My interests: image processing, video coding, rendering, game development, maths, physics, compression, cryptography.


Dec
12
comment Objective-C or C++ of game engine header file for iOS developers?
This is not strictly true; you still need to instruct the compiler to build all files that use C++ headers as Objective-C++ rather than Objective-C.
Dec
12
revised How to create adjustable formula for RPG level up requirements?
tweak code and add explanations
Dec
12
answered How to create adjustable formula for RPG level up requirements?
Dec
12
comment Should I write my own physics engine, because of networking integration?
Also note that if you use JBox2D, you will need to use strictfp everywhere, which will seriously impact performance. Otherwise the server and the client may not get exactly the same results. I would recommend using fixed point instead.
Dec
12
comment Simple noise generation
@Xenon06: if you are after performance, I really think you will need native code; thankfully you can write Node.js extensions in C++.
Dec
12
comment Handling random with unique chance in Python
+1 then, and nice improvements to the partialsums building.
Dec
12
revised What kind of environment is expected in elevated, hot areas?
spelling in title
Dec
11
comment How do I find the point of impact with 2D per-pixel collision detection?
If you haven’t yet, add “sweep” to your search queries. Dynamic collision detection algorithms often use a sweep parameter to get the earliest collision point.
Dec
11
comment Handling random with unique chance in Python
Just FTR, the asker is talking about “stupid amounts of code ”, which means it’s not really an optimisation question he’s asking. He actually needs guidance with understanding what a loop invariant is and finding the one he needs.
Dec
11
comment Handling random with unique chance in Python
Shame on you for carefully building a sorted array and then using linear search :-) bisect_left ftw!
Dec
11
comment Handling random with unique chance in Python
Does monsterlist change often?
Dec
11
comment Handling random with unique chance in Python
I suppose you meant targetlist[1][1] in the last line?
Dec
11
comment Optional samplers in shaders
I believe it is about as cheap as changing a texture sampler a few hundred times per frame. Which means that if it starts becoming a problem, you should group your primitives so that they can be sent to the GPU in as few parameter changes as possible.
Dec
11
answered What do the components of gl_TexCoord[0] mean?
Dec
11
comment are there any alternatives to developing android apps other than with eclipse
Your last sentence is just flamebait. There are people who program using a “command prompt”. Actually I do all my game programming from a bash or zsh command prompt.
Dec
11
comment Simple noise generation
If you are doing this on the server, why the javascript requirement? What other technologies can you use?
Dec
11
comment Simple noise generation
FYI, what you want is clearly Perlin noise. The “undesirable” effect you mention consists of several octaves of Perlin noise added to each other (this is sometimes called fractal noise). Do you really just need one image, or do you want it to change over time? If so, what effect are you after?
Dec
11
answered Optional samplers in shaders
Dec
10
comment Orientation while rotating around a point
Please answer your own question and accept the answer so that it is complete; or if you feel it wasn't that interesting, you can delete it. Also, as david says, there is probably a word missing in the last paragraph.
Dec
10
comment Determine the cut sections of a polygonal mesh
This looks good to me. I suggest unprojecting on the fly rather than doing it in a separate step: when you compute the intersection point, you get the Z coordinate for free at step 2.