Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Making a game's website using Unity3D WebGL

Discussion in 'General Discussion' started by Shbli, Mar 6, 2015.

  1. Shbli

    Shbli

    Joined:
    Jan 28, 2014
    Posts:
    126
    Hello everyone,

    Today I got this Crazy idea on my mind, thinking of creating a website using the Unity3D WebGL

    The Website is not a game, it's a website about the game, but thinking to create the website with some 3D visuals.

    I'm not serious about this idea, but wanting to hear opinions about what do you think guys!
     
  2. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    3,510
    As a web developer by profession, I've considered doing something like this for a while. Not even just with Unity, but using HTML Canvas, Flash, whatever.

    The support for WebGL is surprisingly good, so it is feasible. A few downsides I see, though:
    • SEO - You could add search terms and keywords and such for your actual web page, but as far as internal "virtual" pages of content, there's no way to indicate to search engines what's there. So getting visitors organically will be difficult
    • Loading times - The more content you have, the longer your page takes to load
    • Old browser support - Ah, screw 'em.
    • Internal links - Not sure if you can pass query string parameters to the WebGL application or not, but if you can't, you wouldn't be able to link to specific content
    Sounds like it could be an exciting challenge, though, and would definitely provide an interesting presentation for the content. I say give it a shot!
     
    Ony and Ryiah like this.
  3. Tanel

    Tanel

    Joined:
    Aug 31, 2011
    Posts:
    508
    All of this.

    Also, I wouldn't probably do a whole site with just WebGL. Using it in places for fancyness seems like a better idea to me.
     
    Ony likes this.
  4. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    You can do it (the concerns written above all apply, of course, you need to find out if you care).

    Whether it makes sense is a question of what your web page is - if the goal is mostly to promote something by using nice visuals, or to interact with data in visual ways, then it may be a good fit. If it is a page handling a lot of text, it would probably alienate users who would find that the page does not quite match their expected look & feel (ie, trying to recreate this forum in Unity WebGL would probably be a very bad idea).
     
    Kiwasi likes this.
  5. Shbli

    Shbli

    Joined:
    Jan 28, 2014
    Posts:
    126
    Thanks everyone for the feedback, I'm no expert at web development but thought it will be a good idea to do that, anyways it seems that it'll workout for a game commercial site!

    Keep the posts coming and I'll post an update if I've done something, properly it's too early for me!
     
  6. Squiggledome

    Squiggledome

    Joined:
    Jul 3, 2012
    Posts:
    12
    Meltdown likes this.
  7. darkhog

    darkhog

    Joined:
    Dec 4, 2012
    Posts:
    2,218
    SEO? Easy, hidden divs that replicate what is said on the page (display:hidden) Google parses pages like text browser such as Lynx would so it's enough.
    Loading times? That may be a problem unless Unity allows you to load resources as you need it, not as a big lump like it is/was case with webplayer.
    Internal links? That MAY pose some difficulty. But if Unity can talk to "on site" Javascript (as in inside script tags), JS with jQuery could be used to "decode" query strings (GET only though) and pass it to Unity upon request.
     
  8. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    3,510
    Is this current information? I know Google used to be easily fooled with that trick, but I believe they've since updated their page parsing to be more sophisticated in order to defeat gaming of hidden content to increase page rank. By my understanding, Google views your page the same way a human would (with exceptions of alt and title attributes and such) when it comes to evaluating page content.

    I guess one way around that would be to have a complex .htaccess/server script framework that detects incoming URL requests and builds each page with appropriate embedded search terms, heading tags, etc. You'd have to maintain that content in a database or something, and also provide a sitemap to guide Google where to go. And this, of course, assumes the URL query strings can be processed as well.

    I have enough headaches with just getting CSS to match designers' standards... Maybe some day when I'm feeling masochistic I'll give this idea a shot, though.
     
  9. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,834
    Wow thats an awesome site, you go there and instantly it's in full high-res 3D. Exciting. It also looks like there's a way there for the scroll position of the web page to communicate to the 3d elements.. although I guess it depends if unity will support that (like in the unity web player).