Search:

Type: Posts; User: CrazyNorman

Page 1 of 11 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,029

    Fun Fact: The flash version is actually very...

    Fun Fact: The flash version is actually very similar to the first version of UberTube I wrote (in C++/GL), while this second version is probably the better game.

    Also funny you mention SkyRoads,...
  2. Replies
    3
    Views
    1,029

    I can't find the source code at the moment, but I...

    I can't find the source code at the moment, but I did find a copy of the EXE for it, so that's something. The website is down so high scores don't function but it's playable :)

    ...
  3. HAHAHAHAHAHAHA. I take it you haven't...

    HAHAHAHAHAHAHA. I take it you haven't interviewed many college grads ;-)
  4. Replies
    4
    Views
    3,765

    What you're looking for is called volumetric...

    What you're looking for is called volumetric light. I've never attempted it before, but there's lots of info on google. Looks like you might need some complex math with shaders.
  5. Replies
    18
    Views
    4,870

    My friend solved a similar problem in 2-d for...

    My friend solved a similar problem in 2-d for turrets firing at moving targets.
    You have a few equations for the motion of the bullet


    bulletX(t) = initialX + bulletVelocityX * t
    bulletY(t) =...
  6. Replies
    37
    Views
    2,542

    Can we see the code that you are using to load...

    Can we see the code that you are using to load the entire file and then search it? Even for 11,000 entries, I can see this taking a few seconds, not a few minutes... There might be something wrong...
  7. Replies
    10
    Views
    1,463

    Any form of "delete this" is never safe, because...

    Any form of "delete this" is never safe, because the object does not know whether it is allocated on the stack or on the heap. If it is allocated on the stack, first off, the destructor will be...
  8. Replies
    3
    Views
    1,092

    First off, you'll need to learn some of the IRC...

    First off, you'll need to learn some of the IRC protocol in order to connect to the IRC server. While the official standard is here, http://www.irchelp.org/irchelp/rfc/rfc.html, this may be a...
  9. "eyesDown2.png" is a (const char*), while you are...

    "eyesDown2.png" is a (const char*), while you are trying to copy it into a non-const char*.
    You either have to make ghostEyesDown2 const, use strcpy, or use a C++ style string.
  10. Replies
    76
    Views
    25,314

    If I remember, O(f(x)) = g(x) if there exist...

    If I remember, O(f(x)) = g(x) if there exist constants c, d, and e such that c * f(x) + d >= g(x) for all x > e. Thus, O(n / 8) = O(n), because 8 * (n / 8) + 0 >= n, for all x > 0. (c = 8, d = 0, e...
  11. Thread: Forloop

    by CrazyNorman
    Replies
    8
    Views
    936

    You could just change the comparison operator...

    You could just change the comparison operator you're using '<' vs. '>' in your bubble sort, and it should be sorted in the reverse order of you're sorting it now.
  12. Replies
    6
    Views
    882

    You could use a string stream #include...

    You could use a string stream



    #include <sstream>
    #include <iostream>

    using namespace std;
    int main(int argc, char **argv)
    {
  13. Replies
    4
    Views
    714

    Array Member Syntax

    While going over my friend's code, I noticed he had


    class A
    {
    public:
    ...
    private:
    int counts[];
    };
  14. Replies
    2
    Views
    5,594

    Minimum Positive Subsequence Sum

    I'll preface this by saying this is a homework problem for a data structures class. I'm not looking for you to do the whole problem for me, it's frowned upon, a waste of your time, and a waste of...
  15. Replies
    22
    Views
    2,937

    If you want to get into 3d modeling, both Anim8or...

    If you want to get into 3d modeling, both Anim8or and Blender are free. Anim8or is easier to learn while Blender is more powerful, but both have options to export your models into relatively easy to...
  16. Replies
    5
    Views
    1,187

    If you have a set line width, ie, every line is...

    If you have a set line width, ie, every line is exactly 80 characters, you could easily overwrite specific chunks of data using random access binary operations.
  17. Replies
    22
    Views
    2,493

    I'm guessing most keyloggers are looking at the...

    I'm guessing most keyloggers are looking at the software messages which go along with keyboard events, not the low level keyboard driver. This approach would be simpler to implement and require...
  18. Replies
    10
    Views
    1,817

    Let's say you have a 640x480 texture. You would...

    Let's say you have a 640x480 texture. You would load it, then create a blank 1024x1024 texture (the smallest power of two <= the textures largest dimension). Then, blit your texture to the blank...
  19. Thread: Ray Tracer

    by CrazyNorman
    Replies
    0
    Views
    1,502

    Ray Tracer

    I've been working on a ray tracer for the past two or three days. At this point, I have ambient, diffuse, and specular lighting, along with reflections. Finally, I have multisampling/antialiasing. ...
  20. Replies
    11
    Views
    4,747

    Running Windows 2000, I can assure you that...

    Running Windows 2000, I can assure you that "Windows Key L" did not become a shortcut for lock screen until Windows XP. Instead, on previous versions, you must first press "Ctrl+Alt+Del" and then...
  21. Replies
    11
    Views
    2,704

    Considering the fact that any computer you are...

    Considering the fact that any computer you are likely to deal with will be running a pentium or later at this point, why not look at the places that call this function, and see if you even need to...
  22. Replies
    9
    Views
    2,146

    When you reserve an array that large, if every...

    When you reserve an array that large, if every "bool" takes up one byte, then the array of bools will take up 4 GB. Most machines don't have this much RAM, so you end up with swapping, and a general...
  23. Replies
    9
    Views
    2,146

    Your code is a near replica of the wikipedia...

    Your code is a near replica of the wikipedia pseudocode. Note the following from wikipedia:


    Try writing your own version of the Seive of Eratosthenes, as it is simpler to implement. A well...
  24. Thread: Colleges

    by CrazyNorman
    Replies
    7
    Views
    1,029

    Colleges

    I'm trying to decide which school to attend. Its looking like a choice between Rensselaer Polytech and Worcester Polytech. WPI is closer to home, but RPI is generally considered to have better...
  25. Replies
    47
    Views
    5,404

    Just for the sake of keeping a flamewar going, it...

    Just for the sake of keeping a flamewar going, it can be a good habit to use ++n within loops, not for performance reasons, but because of iterators. Although all of the standard iterators will be...
Results 1 to 25 of 257
Page 1 of 11 1 2 3 4