sam hocevar
Reputation
19,174
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
 Feb 1 comment Implementing cheat safe loot algorithm at clientside I don't believe that to be true, for two reasons: 1) any remotely sane big company will implement critical gameplay on its server because cheaters can ruin a whole community, and 2) finding modified versions is absolutely impossible without implementing server-side checks anyway. Feb 1 comment Implementing cheat safe loot algorithm at clientside It only takes one person to decompile the game, implement a modified version, a runtime patcher, or a protocol proxy, and then share it with the rest of the world. Feb 1 answered Implementing cheat safe loot algorithm at clientside Jan 31 comment Imports in python This question would belong to stackoverflow, but I am afraid it does not seem like you even did any basic research. Jan 25 comment Concerning The Minecraft Skybox @Darestium: for a sphere of radius `R`, just multiply the final vector by `R`. Jan 24 revised Enconding/Decoding bit value in Texture Alpha Channel clarify validity Jan 24 revised Enconding/Decoding bit value in Texture Alpha Channel alternate method Jan 24 answered Enconding/Decoding bit value in Texture Alpha Channel Jan 23 comment Concerning The Minecraft Skybox @PrinceCharles: this test is a way to pick `(x1,x2)` uniformly on a disk of radius `1` centred at the origin: we pick points in a square, and just re-roll (try again) if they lie outside the disk. There are other ways to pick points on a disk but this one is computationally cheap. I am afraid I don’t know of an easy way to explain the rest of the computations. You could view them as a process of stretching the disk so that it maps onto a sphere, but that’s really oversimplifying. Jan 23 comment Concerning The Minecraft Skybox @PrinceCharles `1 - (A + B)` is `1 - A - B`. Jan 22 comment How do i calc what side the ball is of the rect? Is the rectangle always axis-aligned, or does it have an orientation? Jan 22 comment Concerning The Minecraft Skybox @PrinceCharles: you are right, but that is precisely `2.0f * sqrt(1.0f - p)`. Jan 21 comment Concerning The Minecraft Skybox I am afraid all three suggestions from Kevin, from PrinceCharles and from BiAiB are wrong. You cannot just pick uniform random values, normalise things, and hope the resulting distribution will be uniform over your destination space. Jan 21 answered Concerning The Minecraft Skybox Jan 20 comment Could a large number, such as 255.000255 be converted to it's RGB channels in a Shader language? Note that 16777215 does not exceed the “6 or 7 digits” limit on IEEE 32-bit floats. That limit is actually 7.2247 decimal digits, ie. 24 binary digits. 16777215 happens to fit exactly in those 24 digits. It does, however, exceed the minimum requirement for high resolution floats in GLES 2.0 shaders, which is 16 binary digits. Jan 18 comment Essential skills to be a games programmer Jan 11 comment vector.size() instead of literal type breaking my draw code @AsherEinhorn: well I don't know the return value, you do :-) Which one is it? Jan 11 comment D3DXVec3Project returns odd values How do you print the values? Are they from the debugger or from `printf`/`std::cout`? Jan 11 answered vector.size() instead of literal type breaking my draw code Jan 11 comment Understanding log/exp formula for RPG experience @JamesAlex: there is a checkbox on the left of all answers, next to the current vote total.