Thread: Multiplayer OpenGL

  1. #1
    Bonkers
    Guest

    Multiplayer OpenGL

    Ive been too a couple of sites and none seem to give me a proper answer, with OpenGL, can you actually program a full working game WITH multiplayer, or even a MMORPG. As I thought OpenGL was just a graphics API so how do yo get multiplayer with it or will I need to learn DirectX for multiplayer. Im asking this question because im not sure if I should continue learning OpenGL if I will need to learn DirectX later anyway for other parts of multiplayer programming. And if you can make a fully functional game in OpenGL with multiplayer then how? can someone please suggest some site or tutorials I could see?

    Thanks,

    Bonkers

  2. #2
    Registered User dizolve's Avatar
    Join Date
    Dec 2002
    Posts
    68
    DirectX and OpenGL are graphics APIs. That's _it_. You have to do network code to do multiplayer.

      __               &n bsp;      ___ & nbsp;       &nb sp;       &nbsp ;    
     /\ \  __    &nbs p;           /\_ \      &nbsp ;        & nbsp;     
     \_\ \/\_\  ____     _ __\//\ \    __  __&n bsp;    __   
     /'_` \/\ \/\_ ,`\  / __`\\ \ \  /\ \/\ \  /'__`\ 
    /\ \_\ \ \ \/_/  /_/\ \_\ \\_\ \_\ \ \_/ |/\  __/ 
    \ \___,_\ \_\/\____\ \____//\____\\ \___/ \ \____\
     \/__,_ /\/_/\/____/\/___/ \/____/ \/__/   \/____/
            &n bsp; I have a BAD figlet& nbsp;addiction.

  3. #3
    Programming Sex-God Polymorphic OOP's Avatar
    Join Date
    Nov 2002
    Posts
    1,078
    Originally posted by dizolve
    DirectX and OpenGL are graphics APIs. That's _it_. You have to do network code to do multiplayer.
    No, Direct3D and OpenGL are graphics APIs. DirectX is much more than that. Look up DirectPlay.

  4. #4
    Registered User dizolve's Avatar
    Join Date
    Dec 2002
    Posts
    68
    *coughs*
    .. well anyway, I was simplifying it for him. Although, I didn't know about DirectPlay. Thanks for pointing it out.

      __               &n bsp;      ___ & nbsp;       &nb sp;       &nbsp ;    
     /\ \  __    &nbs p;           /\_ \      &nbsp ;        & nbsp;     
     \_\ \/\_\  ____     _ __\//\ \    __  __&n bsp;    __   
     /'_` \/\ \/\_ ,`\  / __`\\ \ \  /\ \/\ \  /'__`\ 
    /\ \_\ \ \ \/_/  /_/\ \_\ \\_\ \_\ \ \_/ |/\  __/ 
    \ \___,_\ \_\/\____\ \____//\____\\ \___/ \ \____\
     \/__,_ /\/_/\/____/\/___/ \/____/ \/__/   \/____/
            &n bsp; I have a BAD figlet& nbsp;addiction.

  5. #5
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,263
    you could also write your own net code, with winsock and BSD sockets. or use a library like HawkNL.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  6. #6
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    I am going to implement network play in BomberLAN with sdl_net. It's a light wrapper around the berkely sockets API so it's portable between linux and windows.

    You can get it here

    http://www.libsdl.org/projects/SDL_net/

    There is documentation is here

    http://jcatki.no-ip.org/SDL_net/

    I contributed the MSVC projects for the version with in the .zip.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM
  2. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  3. OpenGL .dll vs video card dll
    By Silvercord in forum Game Programming
    Replies: 14
    Last Post: 02-12-2003, 07:57 PM
  4. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 10:14 PM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 10:01 PM