The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

Canvex, proof of concept game using W3C standards (in web browser)

GrimReaperGrimReaper Registered User regular
edited August 2008 in Games and Technology
So, I just kind of stumbled across this.

Essentially it's an experimental doom/wolfenstein 3d like engine, at the moment it just seems to be the engine itself.

What's really impressive about this is it uses features of the browser itself. No plugins required.

Okay, yes.. it's pretty primitive but think how we don't have to rely on crappy plugins for certain things when the <canvas> tag takes off.
Canvex is written entirely in JavaScript, with the browser's canvas implementation doing the processing-intensive work of shuffling pixels around. The canvas is limited to 2D graphics, so all the 3D effects are built by Canvex using the 2D operations.

The engine is based on raycasting in a similar fashion to the Build engine. The world is split into sectors (convex polygons of constant floor/ceiling colour and lighting). The edges of the polygons are either solid textured walls, or portal walls leading into an attached sector. To compute a single column of pixels, a ray is cast out from the camera into the surrounding sector, and tracked through portal walls until it hits a solid wall.

It definitely shows how far we've come from using tables to help with the layout of a web page to this.

The funny thing is I think this is pretty old, since it mentions Firefox 1.5+, the only thing limiting this from wide scale adoption? Internet Explorer, it doesn't support HTML5 which is what the canvas tag is from.

canvex.png

Curiously enough Mozilla has released an canvas plugin for Internet Explorer.

PSN | Steam
---
I've got a spare copy of Portal, if anyone wants it message me.
GrimReaper on

Posts

  • SzechuanosaurusSzechuanosaurus Registered User, ClubPA regular
    edited August 2008
    No. Fucking. Way.

    Szechuanosaurus on
  • SzechuanosaurusSzechuanosaurus Registered User, ClubPA regular
    edited August 2008
    Hang on, Grim, what are we doing in here? Shouldn't this thread be in G&T?

    Szechuanosaurus on
  • GrimReaperGrimReaper Registered User regular
    edited August 2008
    Hang on, Grim, what are we doing in here? Shouldn't this thread be in G&T?

    Actually, that's a good point. I did start typing this up for G&T, um..

    Cough

    Move please. Any mods around?

    GrimReaper on
    PSN | Steam
    ---
    I've got a spare copy of Portal, if anyone wants it message me.
  • SzechuanosaurusSzechuanosaurus Registered User, ClubPA regular
    edited August 2008
    They are all busy playing Doom in their browser.

    Dayum!

    Szechuanosaurus on
  • darklite_xdarklite_x I'm not an r-tard... Registered User regular
    edited August 2008
    Ugh, it seems that it doesn't work in IE huh? I was really hoping for something I could play at work.

    darklite_x on
    Steam ID: darklite_x Xbox Gamertag: Darklite 37 PSN:Rage_Kage_37 Battle.Net:darklite#2197
  • SzechuanosaurusSzechuanosaurus Registered User, ClubPA regular
    edited August 2008
    GrimReaper wrote: »
    Curiously enough Mozilla has released an canvas plugin for Internet Explorer.

    :?:


    Although, there's not actually much to play there. It's just a tech demo.


    Edit: Wait a fuck. Install Firefox on your work computer.

    Szechuanosaurus on
  • MKRMKR Registered User regular
    edited August 2008
    darklite_x wrote: »
    Ugh, it seems that it doesn't work in IE huh? I was really hoping for something I could play at work.

    Web programming is the process of making something work well in reasonably standards-compliant browsers, then making a broken version for IE. Some people skip that last step.

    MKR on
  • darklite_xdarklite_x I'm not an r-tard... Registered User regular
    edited August 2008
    Edit: Wait a fuck. Install Firefox on your work computer.
    I wish. They've got our comp privileges on lockdown. Like a penitentiary. It's nothing short of a miracle that I can even visit this site. It used to be blocked but I think our network admin is a fan so he unblocked it.

    darklite_x on
    Steam ID: darklite_x Xbox Gamertag: Darklite 37 PSN:Rage_Kage_37 Battle.Net:darklite#2197
  • apotheosapotheos Registered User, ClubPA regular
    edited August 2008
    Heh. Not being able to hit up and right and space simultaneously takes me back.

    apotheos on


    猿も木から落ちる
  • ErandusErandus Registered User regular
    edited August 2008
    Oh man. Once this has a fully working game attached to it, productivity across the US drops sharply.

    Also: How did we ever get buy without mouselook and strafing.

    Erandus on
    [SIGPIC][/SIGPIC]
  • FunkyWaltDoggFunkyWaltDogg Columbia, SCRegistered User regular
    edited August 2008
    darklite_x wrote: »
    Edit: Wait a fuck. Install Firefox on your work computer.
    I wish. They've got our comp privileges on lockdown. Like a penitentiary. It's nothing short of a miracle that I can even visit this site. It used to be blocked but I think our network admin is a fan so he unblocked it.

    If you can manage to download Firefox I bet you can install it. It mysteriously installs without requiring admin access.

    FunkyWaltDogg on
  • darklite_xdarklite_x I'm not an r-tard... Registered User regular
    edited August 2008
    darklite_x wrote: »
    Edit: Wait a fuck. Install Firefox on your work computer.
    I wish. They've got our comp privileges on lockdown. Like a penitentiary. It's nothing short of a miracle that I can even visit this site. It used to be blocked but I think our network admin is a fan so he unblocked it.

    If you can manage to download Firefox I bet you can install it. It mysteriously installs without requiring admin access.
    The problem is that even if I manage to install it, they run daily checks to ensure we don't have shit on our computers they don't want, and if we do...well, you can imagine.

    darklite_x on
    Steam ID: darklite_x Xbox Gamertag: Darklite 37 PSN:Rage_Kage_37 Battle.Net:darklite#2197
  • Zilla360Zilla360 21st Century. |She/Her| Trans* Woman In Aviators Firing A Bazooka. ⚛️Registered User regular
    edited August 2008
    I love the ingenuity that goes into making browsers do this kind of stuff, like DHTML Lemmings. :)

    Zilla360 on
  • ScroffusScroffus Registered User regular
    edited August 2008
    Zilla360 wrote: »
    I love the ingenuity that goes into making browsers do this kind of stuff, like DHTML Lemmings. :)

    This should help with getting through the last few hours of work.

    Scroffus on
  • apotheosapotheos Registered User, ClubPA regular
    edited August 2008
    darklite_x wrote: »
    darklite_x wrote: »
    Edit: Wait a fuck. Install Firefox on your work computer.
    I wish. They've got our comp privileges on lockdown. Like a penitentiary. It's nothing short of a miracle that I can even visit this site. It used to be blocked but I think our network admin is a fan so he unblocked it.

    If you can manage to download Firefox I bet you can install it. It mysteriously installs without requiring admin access.
    The problem is that even if I manage to install it, they run daily checks to ensure we don't have shit on our computers they don't want, and if we do...well, you can imagine.

    Woah. They've got some free time on their hands.

    You could install it to a USB key and then skin it to appear like IE?

    apotheos on


    猿も木から落ちる
  • TychoCelchuuuTychoCelchuuu PIGEON Registered User regular
    edited August 2008
    Opera installs to a USB key quite well too.

    TychoCelchuuu on
  • darklite_xdarklite_x I'm not an r-tard... Registered User regular
    edited August 2008
    apotheos wrote: »
    darklite_x wrote: »
    darklite_x wrote: »
    Edit: Wait a fuck. Install Firefox on your work computer.
    I wish. They've got our comp privileges on lockdown. Like a penitentiary. It's nothing short of a miracle that I can even visit this site. It used to be blocked but I think our network admin is a fan so he unblocked it.

    If you can manage to download Firefox I bet you can install it. It mysteriously installs without requiring admin access.
    The problem is that even if I manage to install it, they run daily checks to ensure we don't have shit on our computers they don't want, and if we do...well, you can imagine.

    Woah. They've got some free time on their hands.

    You could install it to a USB key and then skin it to appear like IE?
    Well the system runs automatic checks when you log in at the start of the day and during those checks it basically raises a flag everytime there's an unauthorized item on our computers. We get busted for having .mp3 files on our computers.

    darklite_x on
    Steam ID: darklite_x Xbox Gamertag: Darklite 37 PSN:Rage_Kage_37 Battle.Net:darklite#2197
  • LoneIgadzraLoneIgadzra Registered User regular
    edited August 2008
    The best performance is in Safari. Unfortunately the page layout doesn't display correctly.

    LoneIgadzra on
  • skaceskace Registered User regular
    edited August 2008
    Why does my FPS drop even though nothing on my PC is taxed, not even a single processor? That seems odd.

    skace on
    http://picasaweb.google.com/skacer | Shiren:5413-0147-4655
    steam_sig.png
  • DehumanizedDehumanized Registered User regular
    edited August 2008
    Reminds me of this:

    http://www.p01.org/releases/DHTML_contests/files/DEFENDER_of_the_favicon/

    Defender (the old arcade game) in favicon (those little images that show up next to the address bar in your browser) form.

    Dehumanized on
  • skaceskace Registered User regular
    edited August 2008
    Reminds me of this:

    http://www.p01.org/releases/DHTML_contests/files/DEFENDER_of_the_favicon/

    Defender (the old arcade game) in favicon (those little images that show up next to the address bar in your browser) form.

    Wow, a game so small you can't even play it.

    skace on
    http://picasaweb.google.com/skacer | Shiren:5413-0147-4655
    steam_sig.png
  • UncleSporkyUncleSporky Registered User regular
    edited August 2008
    Eh, I prefer games that do require a plugin or two, like Shockwave, that can still run in just a browser.

    UncleSporky on
    Switch Friend Code: SW - 5443 - 2358 - 9118 || 3DS Friend Code: 0989 - 1731 - 9504 || NNID: unclesporky
  • GrimReaperGrimReaper Registered User regular
    edited August 2008
    skace wrote: »
    Why does my FPS drop even though nothing on my PC is taxed, not even a single processor? That seems odd.

    It's purely down to the browser and its implementation of <canvas> and javascript. Yes, a faster processor will obviously play a big part.

    You have to remember it's doing the rendering using a bit of HTML5 and javascript, this is very abstracted from native cpu code.

    Also, has anyone seen the news about the seriously massive javascript speed boosts in Firefox 3.1?
    They aim to improve execution speed so that it is comparable to that of native code. This will redefine the boundaries of client-side performance and enable the development of a whole new generation of more computationally-intensive web applications.

    GrimReaper on
    PSN | Steam
    ---
    I've got a spare copy of Portal, if anyone wants it message me.
  • DusdaDusda is ashamed of this post SLC, UTRegistered User regular
    edited August 2008
    ...There is a reason why most people don't make games running entirely in native HTML/JavaScript. You see that video card of yours? Yea, it aint doin shit while you play this game.

    Dusda on
    and this sig. and this twitch stream.
  • DehumanizedDehumanized Registered User regular
    edited August 2008
    It's a proof of concept thing. The goal isn't something that works great, the goal is something that works in an unorthodox way.

    Dehumanized on
  • DusdaDusda is ashamed of this post SLC, UTRegistered User regular
    edited August 2008
    It's a proof of concept thing. The goal isn't something that works great, the goal is something that works in an unorthodox way.

    Oh don't get me wrong, I love seeing people make crazy shit like this. I'm just making sure nobody around here starts thinking this is the wave of the future or something.

    Dusda on
    and this sig. and this twitch stream.
  • mrflippymrflippy Registered User regular
    edited August 2008
    This would be much better if the levels were based on the current page and links were represented by doors or something.

    mrflippy on
  • potNPanpotNPan Registered User regular
    edited August 2008
    mrflippy wrote: »
    This would be much better if the levels were based on the current page and links were represented by doors or something.

    I want something like this to happen so much.

    When I was about 10 years old (1996?), before I started using the Internet, I saw something on TV that showed the camera flying through a starry background moving to different websites and I thought the Internet was like that. I was quite disappointed when I was introduced to web browsers. :|

    This idea here would be so cool. :shock:

    potNPan on
  • DusdaDusda is ashamed of this post SLC, UTRegistered User regular
    edited August 2008
    NPan, you should play with this site. Built entirely in Silverlight.

    EDIT: Also, the Olympic Games coverage on NBC here.

    Dusda on
    and this sig. and this twitch stream.
Sign In or Register to comment.