Search:

Type: Posts; User: smasherprog

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    12,870

    check out assimp

    Check out ASSIMP for model loading. It can load more model formats than you know what to do with.. Open Asset Import Library
  2. Replies
    4
    Views
    3,132

    tcp and udp

    Running both tcp and udp is fine, but it sounds like you want a way to have a way to send reliable UDP packets and unreliable as well. It would be much simpler if you could stick with either tcp or...
  3. sockets

    firstly, networking is mostly a serial process, meaning only one thing should be going on at a time. Especially, for a single connection to an ftp server. For that single connection you should only...
  4. Replies
    6
    Views
    2,159

    I made a typo when I said left handed, I meant to...

    I made a typo when I said left handed, I meant to say Opengl uses a right handed coordinate system.

    I realize the name of the variable does not fit the right handed system, which is why I asked...
  5. Replies
    6
    Views
    2,159

    Are you sure that you are using the correct order...

    Are you sure that you are using the correct order of operation on your matrix'? Open gl uses a left handed coordinate system, so you have to do your matrix multiplication as Projection * View *...
  6. Replies
    5
    Views
    37,444

    yes, i am

    Funny you should say, yes I am building a game engine :P
  7. Replies
    5
    Views
    37,444

    here is my code. This function APPENDS a cylinder...

    here is my code. This function APPENDS a cylinder onto the data passed to the function. Generates normals, correct texture coords as well. The caller has to pass a 2 or 4 for the index stride as...
  8. Replies
    9
    Views
    3,524

    Ideas for speedups . . . decrease the texture...

    Ideas for speedups . . .

    decrease the texture layers to two. Also, if you want additional speedup, don't let the gpu read the height map in the vertex shader. Let the cpu build a static mesh and...
  9. Replies
    6
    Views
    2,568

    restate

    well, just divide the position by two before you transform it into viewprojection space.


    Remember, the ordering of matrix is typically: Scaling*Rotation*Translation*View*Projection

    So, add...
  10. Replies
    10
    Views
    2,221

    exiting

    You should make sure you have code to wait on those threads to complete -- I didnt see that. This would cause your program to exit
    This is merely psudo code to explain why your program might be...
  11. Replies
    10
    Views
    2,221

    while loops

    Well, looking at your code for 20 seconds, I noticed that you have while loops that will never exit.

    Do your threads get created?

    or do you get the "Could not create writing thread" ?
  12. Replies
    4
    Views
    2,603

    wellll

    The possible reason is because a non blocking socket will return immediately when a recv is called and there is no data to retrieve. Blocking socket will wait until there is data to receive. So,...
  13. To fix your problem, you have to move the...

    To fix your problem, you have to move the problematic code into a .cpp file. In order for your code to work correctly as is now, you need to have it all in the same header otherwise it will not work....
  14. Replies
    4
    Views
    1,138

    book

    check out this book. I learned from it.


    C++ primer [Book]
  15. Replies
    7
    Views
    3,581

    I should have been more clear:I was responding to...

    I should have been more clear:I was responding to hosseinyounesi because he gave the smallest about of information. It tires me when people ask for help and give so little information it makes the...
  16. Replies
    7
    Views
    3,581

    you also posted the least amount of information,...

    you also posted the least amount of information, so no one will try to help if you post something like: I have a problem with windows, it crashes when I run Microsoft word, help me!


    yeah... Ok.....
  17. Replies
    7
    Views
    5,464

    Simple. Move the object, check for collision,...

    Simple.

    Move the object, check for collision, if there was a hit, move the object to its previous location. If there was no hit, move onto the next object. You should update this each frame. The...
  18. Replies
    1
    Views
    1,475

    well, lists are not array based. They have slow...

    well, lists are not array based. They have slow random access to each element. Vectors will give you faster random access. Lists are good for fast erasing and fast insertion.

    In your code, just...
  19. Replies
    2
    Views
    2,415

    This question is far too advanced for anyone here...

    This question is far too advanced for anyone here to answer! It just makes my head hurt thinking about the possibilities . . . . all the searching on the internet of how to program, it would be...
  20. Replies
    14
    Views
    1,477

    On the Windows platform, in c/c++ if you allocate...

    On the Windows platform, in c/c++ if you allocate memory with the new, and DO NOT release it with a delete, the memory WILL NOT BE FREED with the program terminates.

    Please, read up,...
  21. Replies
    13
    Views
    1,779

    Well, 576 is the total maximum size of a UDP...

    Well, 576 is the total maximum size of a UDP packet that will be guaranteed NOT to be fragmented (this 576 includes the headers as well). So, you are left with . . . ..

    -20 bytes for the IP...
  22. Replies
    14
    Views
    1,477

    Well, just to make sure you understand. In...

    Well, just to make sure you understand.


    In the c/c++ programming languages, if you create (allocate) an object with the new operator, and you do not destroy (de allocate) the object with the...
  23. Replies
    5
    Views
    1,990

    Is this a trick question? If you have a server...

    Is this a trick question? If you have a server and client setup already, then you know how to do it.

    What is the question ?
  24. Replies
    3
    Views
    1,440

    I know you may take this as me being a prick, but...

    I know you may take this as me being a prick, but here goes: don't attempt to do that.

    There is absolutely no good reason to create a browser in any game --that's why there are so many browsers...
  25. Replies
    7
    Views
    3,366

    3d objects are always in local space. You...

    3d objects are always in local space. You translate them to world space when you apply a rotation, scale or translation, which you do in your code.

    So, your castle is in world space.
Results 1 to 25 of 68
Page 1 of 3 1 2 3