Putting the web in OpenGL games

This is a discussion on Putting the web in OpenGL games within the Game Programming forums, part of the General Programming Boards category; Hey guys, I'm writing 3d game and would like for my users to be able to surf the web from ...

  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    1

    Putting the web in OpenGL games

    Hey guys,
    I'm writing 3d game and would like for my users to be able to surf the web from within the game. I'm just wondering if this is possible and if it is, what should be my first step. Thanks in advance.

    -Charles

  2. #2
    Registered User
    Join Date
    Mar 2010
    Posts
    68
    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 out there.

    You will be reinventing the wheel. Why would anyone want to use your browser over firefox, or chrome? Because its integrated into the game? What does that mean for the people playing it? That they can now access the internet? Well they already could.


    Sorry if I sound like a prick, but there just isn't any reason to do this.

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    399

  4. #4
    Registered User
    Join Date
    Sep 2010
    Posts
    4
    Quote Originally Posted by smasherprog View Post
    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.
    There's actually several good reasons to embed a browser in a game-- a couple off the top of my head:
    • You could use it to power your GUI via HTML/JS.
    • You could use it to embed mini-games or other additional content inside your game.
    • You could use it for in-game chat (Meebo, IRC, Facebook chat, etc.)
    • You could use it for in-game advertising (not really a big advocate of this, but hey, it's a possibility).
    • You could use it to display tutorials, game-guides, or community boards from within the game
    • You could design special web pages that users could visit in-game that are "aware" of certain in-game information and that could potentially communicate back with the game client. (For example, your users could use this to load mods from third-party sites without ever leaving the game)


    There's a whole range of possibilities beyond the obvious "put a web-browser in your game"-- you just gotta think outside the box a bit.

    @ gamecoder:

    Check out Awesomium, it does what you want, is free for non-commercial use, and has a simple OpenGL sample included in the latest SDK-- lots of big game companies are beginning to use it. (Disclaimer: I work as a programmer on the project)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 09-22-2006, 04:39 PM
  2. Replies: 3
    Last Post: 06-12-2006, 04:51 PM
  3. Video Games Industry. 5 years left.
    By Cheeze-It in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 12-10-2002, 10:52 PM
  4. OpenGL question
    By Malek in forum Windows Programming
    Replies: 1
    Last Post: 09-10-2001, 01:00 PM
  5. Game Company Web Sites
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-17-2001, 09:32 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21