Slashdot Mirror


Voxel.js: Minecraft-like Browser-Based Games, But Open Source

Paul Fernhout writes with a snippet from Joystiq: "Voxel.js is a new open-source project designed to allow anyone to create 3D games that run directly in a browser. Created by Max Ogden and James Halliday, Voxel.js is based on JavaScript and WebGL, and makes it relatively easy to build Minecraft-like games that play in browsers like Chrome." Paul adds a link to this interview with Max Ogden about the creation of Voxel.js in 22 days. The main site is at Voxel.js.

110 comments

  1. ChromeOS criticism got knocked down a bit by eksith · · Score: 4, Insightful

    Call me silly, but I think there is something to this "everything through the browser" malarkey. That's not to say everything should be on the cloud, but I don't see why we can't push non-critical functionality on rendering engines. A lot of mobile apps are just native interfaces to webservices anyway.

    --
    If computers were people, I'd be a misanthrope.
    1. Re:ChromeOS criticism got knocked down a bit by Anonymous Coward · · Score: 1

      I don't see why we can't push non-critical functionality on rendering engines

      Because it's a sad waste of system resources.

    2. Re:ChromeOS criticism got knocked down a bit by DavidClarkeHR · · Score: 1

      Call me silly, but I think there is something to this "everything through the browser" malarkey. That's not to say everything should be on the cloud, but I don't see why we can't push non-critical functionality on rendering engines. A lot of mobile apps are just native interfaces to webservices anyway.

      Wait, you want everything to run on a common software platform? How revolutionary. We could call it "Doorways", because the browser would provide a path to see into the possibilities. We could have a common add-on called "Glimmer" that provides additional functionality.

      I can't picture any problems with such an approach.

      --
      - Nec Impar Pluribus, or so I'm told.
    3. Re:ChromeOS criticism got knocked down a bit by Anonymous Coward · · Score: 1

      You're silly

    4. Re:ChromeOS criticism got knocked down a bit by Anonymous Coward · · Score: 0

      Woosh!

    5. Re:ChromeOS criticism got knocked down a bit by Anonymous Coward · · Score: 3, Insightful

      So is everything that's not hand coded in assembly language.

      Which is to say, so is very nearly everything.

    6. Re:ChromeOS criticism got knocked down a bit by Anonymous Coward · · Score: 0

      Maybe because I don't want to run your spyware that calls itself a browser?

    7. Re:ChromeOS criticism got knocked down a bit by Jane+Q.+Public · · Score: 2

      "How revolutionary."

      Haha. I also like the subtle little plug: "... browsers, like Chrome."

      Chrome. Not Safari, or Firefox, or Opera, or Konquerer.

    8. Re:ChromeOS criticism got knocked down a bit by eksith · · Score: 1

      Chromium, Firefox (and kids), Opera, WebKit (and co)... pick your poison. My point was that the browser is a handy tool to publish applications and a lot of native applications can be made more easily cross-platform through web standards.

      Think of it as the corollary to "everything is a file": "Everything is a service*" to be consumed by the browser.

      *And by everything, I mean what makes sense to be on the browser. I.E. Documents, chat etc...

      --
      If computers were people, I'd be a misanthrope.
    9. Re:ChromeOS criticism got knocked down a bit by hairyfeet · · Score: 2

      Because the carriers are gonna buttfuck us with ever worsening caps instead of spending any of their massive profits to lay the lines we already paid 200 billion plus to have laid down?

      All this "in the cloud" horseshit requires that we have a steady, reliable, fast and CAP FREE net connection or at least caps that are sane and which go UP in time. What we are seeing is the exact opposite with many places giving crappy caps to start with and as they oversell the shit out of their lines the caps get smaller NOT bigger. Everybody said "Oh the carriers won't want to lose all that business with the 6 strikes law" bullshit the carriers WANT THE EXCUSE because it gives them a legal reason to punt anybody that dares uses even half of what they pay for since they can just say "Oh he's a pirate...what? Prove me wrong!" and will kick you to the curb.

      All this cloud shit is gonna die a VERY ugly death as the carriers cut the bandwidth, in my own area the carriers steer the shit out of you, use THEIR VoIP? NO cap, Vonage? Cap. Use THEIR PPV? NO cap, Netflix? Cap. These carriers, who ALL have interest in media companies BTW, sure as fuck ain't gonna want people spending all their time on the net instead of buying TV packages so any of this stuff that they don't get a check from is gonna be so bandwidth starved it'll end up costing you more to play some game in the browser than it would to just go buy a fucking boxed game and have it shipped.

      I have seen the future that this corporatism shall bring and it does truly suck. i know I ended up paying more in bandwidth charges than I did for the fucking games i bought during the big Steam Xmas sale, I don't even want to know how much of a bill I would have gotten if everything was run over the net.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    10. Re:ChromeOS criticism got knocked down a bit by Crosshair84 · · Score: 1

      Well what did Congress honestly expect? They did the same frigin thin in the 19th century. Subsidized the fark out of the railroads. Remember the transcontinental railroad? What the history books don't mention is that it was so poorly constructed that it was next to useless. Once completed it had to be completely rebuilt in order to actually be useable, a process that took over half a decade. Even then it was so inefficient that turning a profit was difficult

      Compare that with James J Hill, who built his railroad completely with his own money. It took him decades to build out to the west coast, but the reward for that was that he had the most efficient railroad in the country. in 1893 when virtually every other railroad went bankrupt, Hill turned a profit.

      Politicians who think they can pass regulations that don't make things worse combined with a lack of competition caused by those regulations make for a messed up network. Sure there's obvious stuff, like don't steal stuff, but at work we have to route customers phone calls across state lines because interstate is so much cheaper than intrastate because the way the regulations on rates are done.

    11. Re:ChromeOS criticism got knocked down a bit by eksith · · Score: 1

      That's not to say everything should be on the cloud, but I don't see why we can't push non-critical functionality on rendering engines.

      Seriously, clam down. :/ I mentioned cloud once and I understand the pitfalls. Outside the U.S. ulimited data is very rare and in the UK especially it's bad.

      --
      If computers were people, I'd be a misanthrope.
    12. Re:ChromeOS criticism got knocked down a bit by hairyfeet · · Score: 1

      Funny Crosshair as I would say it is LACK of regulations that caused this mess. When the fed forced ma bell to open up their lines suddenly dialup went from an expensive hobby VERY few could enjoy to something so cheap many places would give you free time limited dialup in the hopes of selling you other services.

      Then along comes Reagan and the DEregulators and suddenly it isn't illegal for these corps to just buy up the competition, or to buy services and media cartels that would put them in obvious conflict of interest and WHAM...now instead of competing they just buy out the competition and close it down or do like AT&T has done in most places which is divide the place up with the cablecos so they "cherry pick" the places they give a shit about and the rest? Fuck 'em if they don't like dialup. When my mom built her place she was less than a block from the cable junction, guess how many feet they've run since then? ZERO.

      ALL of the places that have truly crazy speeds the lines were NOT done by private corps they were done by governments, either nationally or local co-ops. As we saw during the age of the robber barons a "free market" simply cannot exist as those with money without regulation will simply buy up all competition until they are the only game in town. And if the rumors are true that AT&T is thinking about walking away from landlines (since they can assrape much more with wireless than they ever could from landlines) then things will only be getting worse from here on in.

      What we NEED is a national broadband initiative where We, The People have it laid down just like we had freeways built and then the various corps can COMPETE by leasing the line and selling us service. If they want a monopoly? Then they better lay FTTH to an area before we get there and they'll be given X number of years as the only game in town in return for laying the lines, otherwise they can fuck right off.

      But we already tried completely unregulated markets, in the late 1800s you could do whatever you wanted, dump toxins, work children, hell there wasn't jack shit for regulation...what happened? A handful of rich scumbags got together and formed trusts and carved the entire country up. For a truly free market to work you'd have to have players that AREN'T sociopathic scumbags but history proves that is never gonna be, the more regulations you remove the worse things get, NOT better. Perhaps Cornel West can explain it better.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    13. Re:ChromeOS criticism got knocked down a bit by SteveFoerster · · Score: 1

      The problem here is that legislation and regulation doesn't come about for the benefit of you and me, it's designed to benefit the policy makers and corporate executives who work hand in hand for mutual advantage. And the only way to avoid that is for there to be less political power for them to grasp.

      --
      Space game using normal deck of cards: http://BattleCards.org
    14. Re:ChromeOS criticism got knocked down a bit by Anonymous Coward · · Score: 0

      Uhh...I think Australia, New Zealand and Belgium were the last three places in the world without unlimited (usage, not rate) internet connections. I know we have them in Australia now. Not cellularly but I don't sew that as restrictive.

    15. Re:ChromeOS criticism got knocked down a bit by knuthin · · Score: 1

      If it's about the engine, anything that works on Chromium should also work on Safari and Konquerer.

      Also I have got several of these "works only with Chrome" webapps working just fine on Firefox.

      --
      Some apps are WYSIWYG. Some others are WYSIWTF.
    16. Re:ChromeOS criticism got knocked down a bit by fireylord · · Score: 1

      . Outside the U.S. ulimited data is very rare and in the UK especially it's bad.

      Want to cite some sources for this? Coz i'm in the UK, and this is utter horse shit

    17. Re:ChromeOS criticism got knocked down a bit by robsku · · Score: 1

      ...and here I thought it was pretty much the norm, at least in 1st world (and well, anything not 3rd world), for internet connections - I know it is in Finland, and we don't have no stinking data caps either.

      --
      In capitalist USA corporations control the government.
    18. Re:ChromeOS criticism got knocked down a bit by Crosshair84 · · Score: 1

      I think you and I are both agreeing on this subject, we're just interpreting it differently. You see it as a lack of regulations. I see it as too many ineffective and special interest regulations mixed in with politicians who think they're smart enough to understand all this. I would agree that things need to be setup to have the barrier to entry be set as low as possible. Relying on regulators is a fools errand because they face no repercussions for failure.

      What I think should be looked at is how the telephone service contracts are done in the jails I work in. Every 3 to 5 years the contract comes up for renewal. If you're doing a good job you get renewed, if someone else comes in with a better bid and a better service contract, then they get to have the contract. Whatever the solution, we're not going to be able to just copy what another country does. (Especially not South Korea's internet police state.) We're going to need to look around and customize what works for each individual situation.

      That being said, Midco has great internet service here in North Dakota.

    19. Re:ChromeOS criticism got knocked down a bit by Anonymous Coward · · Score: 0

      Compilers can do a better job at optimizing assembly than most humans these days.

    20. Re:ChromeOS criticism got knocked down a bit by Anonymous Coward · · Score: 0

      And the Internet can do a better job at optimizing deployment procedures than most humans these days.

    21. Re:ChromeOS criticism got knocked down a bit by Archenoth · · Score: 1

      Browser sniffing, without feature sniffing always drives me crazy...

      Opera has a built-in User Agent switcher... And I find myself using it much more commonly than I would like.

      --
      The arch foe.
    22. Re:ChromeOS criticism got knocked down a bit by Anonymous Coward · · Score: 0

      Because there's nothing between assembly and ruby. Okie dokie.

  2. WebGl by Anonymous Coward · · Score: 0

    needs webgl to run, I think that would have been more important to mention than the whole js thing?

    1. Re:WebGl by Paul+Fernhout · · Score: 1

      AC wrote: "needs webgl to run, I think that would have been more important to mention than the whole js thing?"

      Good point, AC. I should have mentioned WebGL in the article summary. That is the probably the biggest stumbling block for lots of people running this. That was a problem I myself encountered with a crashing problem with Firefox 18 when I enabled WebGL, and worked around that by trying Voxel.js in Chromium, the open source version of Chrome. Still, in another couple of years, I would think WebGL might be fairly well supported in lots of browsers?

      --
      A 21st century issue: the irony of technologies of abundance in the hands of those still thinking in terms of scarcity.
  3. hurrah its like the 90's again by Anonymous Coward · · Score: 2, Insightful

    this comment is best viewed in ________

    and they recommend you install a web browser that is made by the largest advertising company in the world.

    this generation is nuts

    1. Re:hurrah its like the 90's again by Anonymous Coward · · Score: 1

      Those who do not forget the past are doomed to be ignored by those who do.

    2. Re:hurrah its like the 90's again by petsounds · · Score: 3, Insightful

      DHTML wars -> HTML5 wars
      rinse, repeat

      Flash took us out of the browser ghetto. Now we're back in it.

    3. Re:hurrah its like the 90's again by Anonymous Coward · · Score: 0

      and they recommend you install a web browser that is made by the largest advertising company in the world.

      this generation is nuts

      Chrome is mostly open source, and Chromium (which I use, with firefox) is totally open source. That matters a lot

    4. Re:hurrah its like the 90's again by Anonymous Coward · · Score: 0

      Oh, go get fucked. Flash was the biggest CPU-sucking ghetto to ever exist. Yes, past tense.

  4. Blog post with more background info by maxogden · · Score: 5, Informative

    Hi, I'm the Max mentioned above. Here is a post I did yesterday with more background details on the project: http://maxogden.com/bringing-minecraft-style-games-to-the-open-web.html

    1. Re:Blog post with more background info by Cerium · · Score: 1

      "Reeks of Java"?

      I stopped reading and started skimming there. Can't take you seriously when there are subtle jabs at a tool with no justification for your disposition.

      I have other gripes with the article and project as well, but I can't think of a way to word them in a way that they can be perceived as constructive criticism, so I'll just leave it at that.

    2. Re:Blog post with more background info by maxogden · · Score: 1

      Someone else called me out on that as well, my response was: "Sorry about the tone, I definitely could have said that part more nicely. To me Java smells like too many abstract interfaces, lots of boilerplate and hard to use build tools. Java was the first language I learned so I may very well be scarred from the experience." from http://news.ycombinator.com/item?id=5119259

    3. Re:Blog post with more background info by Anonymous Coward · · Score: 0

      There is no need to apologize when you speak the truth.

    4. Re:Blog post with more background info by sproketboy · · Score: 1, Insightful

      His justification is that he's retarded and doesn't understand Java.

    5. Re:Blog post with more background info by Cerium · · Score: 1

      Well, the statement itself wouldn't have been bad if you had linked to something else (as you had done quite a bit in that article).

      In any event, it's still a bit silly to me that your opinion on the matter is based on (what seems to be) others misusing it. Moreover, that said opinion makes you more partial to other languages and platforms that give you more rope to hang yourself with (and, in this case, require more work to achieve any semblance of stability/consistency), is even stranger to me -- it seems like it's a self-perpetuating problem. But, to each their own, I suppose. :)

    6. Re:Blog post with more background info by Cerium · · Score: 1

      And statements like that are just as bad as his, and mister AC above.

      No language is safe from misuse and shit code. Some are simply more prevalent, and thus, have more opportunities to be bastardized.

    7. Re:Blog post with more background info by robsku · · Score: 1

      And statements like that are just as bad as his, and mister AC above.

      Worse. A simple sentence implying the writer does not like particular language without giving any explanation in article where it's not really even the subject is minor flaw, if even that. Calling someone a retard for this is sign of some major behavior issues.
      I know I would be slightly annoyed if someone said the same, but about perl - I would not automatically think that the person is retard or even that he doesn't understand perl (although it's a possibility). All in all it would be of very small significance.

      --
      In capitalist USA corporations control the government.
  5. Slow as hell. by Anonymous Coward · · Score: 0

    Slow as hell.

  6. Installation is the big bottleneck these days by Paul+Fernhout · · Score: 1

    The cross-platform install process is easier with Javascript than just about anything else. That is the biggest win here -- beyond the idea of open source virtual worlds which others have done before. Perhaps that didn't used to be the case years ago, but it is now for any software that is going to quickly get mass adoption. Still, it's true that Android and iOS both try to make that easy -- if you've bought special hardware. HTML5 and related technologies like WebGL are trying to create standards for being able to use back-end engines, and Voxel.js taps into that.

    Here is Alan Kay talking about why Dan Ingalls started working on the next generation of Squeak (the "Lively Kernel") in Javascript:
    http://bitworking.org/news/290/JavaScript-is-the-new-Smalltalk

    Still, I tried to run Voxel.js in Firefox 18 on the Mac, with having to turn on "experimental" (for my mac) WebGL support just for this, and it crashed my browser every time. Nonetheless, it's only a matter of time before good 3D support is in browsers everywhere. Personally, I'd have rather seen a well-sandboxed virtual machine as the standard in the browser (whether Java, Parrot, Lua, or anything else), but Javascript is what we got.

    Actually, I've been wondering if I could run Voxel.js on top of Java running a Javascript engine that talks to a 3D backend? As a software developer, I'm willing to go through more install hassles, even if I know most people aren't.

    --
    A 21st century issue: the irony of technologies of abundance in the hands of those still thinking in terms of scarcity.
    1. Re:Installation is the big bottleneck these days by msclrhd · · Score: 1

      For me, Firefox 18 was unresponsive for a minute or so while loading one of the voxel.js demos. It eventually loaded. I have reported the issue as https://bugzilla.mozilla.org/show_bug.cgi?id=835076.

    2. Re:Installation is the big bottleneck these days by eksith · · Score: 1

      Everything has hiccups at first. I think we'll see more of this as WebRTC takes off.

      --
      If computers were people, I'd be a misanthrope.
    3. Re:Installation is the big bottleneck these days by maxogden · · Score: 2

      Sorry about this, in that demo we are using a few very computationally expensive functions to generate the world. The problem you experienced can be solved through the user of HTML5 Web Workers but we have not yet implemented them at this time.

    4. Re:Installation is the big bottleneck these days by Paul+Fernhout · · Score: 2

      Good points. I've been feeling more-and-more lately that "if something does not have a URL, it is broken". :-)

      And Minecraft worlds don't have URLs. Voxel.js world do. A simple seeming difference, but the implications are huge about sharing, discovering, mashups, archiving, expanding, and so on.

      Here is a discussion where I explain that idea in more detail, that it's not so much the idea of a desktop app that is broken as the idea of an app without book-markable exchangeable URLs:
      http://barcamp.org/w/page/61193582/CapCamp2012_Open_Data_Standards

      --
      A 21st century issue: the irony of technologies of abundance in the hands of those still thinking in terms of scarcity.
    5. Re:Installation is the big bottleneck these days by Rockoon · · Score: 1

      Thats a solution to the side-effects, not the problem.

      --
      "His name was James Damore."
    6. Re:Installation is the big bottleneck these days by msclrhd · · Score: 1

      I reported the issue to Mozilla (as per the link in my previous post) so they can investigate and improve things on their end. This should then benefit other complex JavaScript/WebGL applications, especially if the voxel.js code is used in web-based games and other applications.

  7. I don't get the blocks by terec · · Score: 1

    In terms of graphics, it wouldn't be so hard to make surfaces a little bit more varied. Why the blockiness in Minecraft? Why not give people roundish and triangular things to play around with too?

    1. Re:I don't get the blocks by pushing-robot · · Score: 4, Funny

      And why was Schindler's List in black and white, anyway? Couldn't they afford color film?

      --
      How can I believe you when you tell me what I don't want to hear?
    2. Re:I don't get the blocks by bWareiWare.co.uk · · Score: 1

      The goal of Minecraft et al. is to provide very large (or sometimes truly infinite worlds). To achieve this you have to use extremely efficient memory storage. I don't know the actual figures but I assume Minecraft stores one or two bytes per voxel, which are approximately 1 cubit-foot, so a very efficient representation.
      This simply isn't enough memory to store more then a few shapes (though a sphere dose seem a good choice).

    3. Re:I don't get the blocks by Agent+ME · · Score: 1

      The same reason legos are square / rectangular. It's much easier to build with squares than spheres or whatever.

    4. Re:I don't get the blocks by Anonymous Coward · · Score: 0

      Voxels are meant to be 3d Pixels. Its not just the style or memory concerns, its a design choice. Squares make building things a lot easier for most people.

    5. Re:I don't get the blocks by Anonymous Coward · · Score: 0

      Minecraft must be populated with REALLY tiny people if they can fit in a 2'x1' space.

    6. Re:I don't get the blocks by zippthorne · · Score: 1

      A cubic meter, actually, I believe.. two blocks are just bigger than the player.

      But that's not really all that efficient of a storage representation. By far, most of the blocks in the game are of two main type - air and stone - and almost every structure in the game is composed of some volume of mostly homogeneous blocks with perhaps smaller volumes of homogenous blocks suspended almost vacuole-like inside it - It might well be possible to more efficiently describe the landscape using the surfaces rather than the volumes.

      Of course, then it's not really a voxel game any more, but was it ever? Isn't it really just that voxel games seem like the simplest to implement 3D deformable terrain games?

      --
      Can you be Even More Awesome?!
    7. Re:I don't get the blocks by Lehk228 · · Score: 1

      it would not take additional memory to have other shaped blocks, that goes into the rendering not the memory, there are already various shapes of flowing water and lava, and fences glass panes etc.

      the blocky appearance of everything is a style choice

      --
      Snowden and Manning are heroes.
    8. Re:I don't get the blocks by Anonymous Coward · · Score: 0

      In terms of graphics, it wouldn't be so hard to make surfaces a little bit more varied. Why the blockiness in Minecraft? Why not give people roundish and triangular things to play around with too?

      Remember that Minecraft is a huge matrix of "3D pixels" -- voxels. Keeping track of, allowing free modification, and presentating that is a resource-intensive process already.

    9. Re:I don't get the blocks by terec · · Score: 1

      individual Lego blocks still come in a variety of shapes other than rectangular.

    10. Re:I don't get the blocks by dissy · · Score: 1

      In terms of graphics, it wouldn't be so hard to make surfaces a little bit more varied. Why the blockiness in Minecraft? Why not give people roundish and triangular things to play around with too?

      If you don't want to play the game, that's perfectly OK. Not every game is everyone's cup of tea.
      But you could at least look at it before passing judgement.

      There are far more shapes in Minecraft than just blocks. In fact of all the items, blocks are a minority.

      Look at the bottom of this wiki page: http://www.minecraftwiki.net/wiki/Items
      Each and every one of those things is a non-block shape!
      Or here for larger icons of items (including blocks):
      http://www.alymma.com/minecraft_icons/

      Slimeballs and snowballs are spheres, tools look roughly the shape of the tool they represent, food is pretty much all irregular shaped except for the cake, which is not only a lie but a circle!

      Only the world itself is subdivided into a grid of blocks, and even then it's far from "one grid square, one item/block"

      In fact it's not that much different from any other game, except where in most games each voxel is a single pixel and you are limited in the total number of pixels allowed in the game world, a Minecraft voxel represents 1 meter cubed of world space and uses a stacking addressing scheme so as to be infinite yet your save files do not grow insanely huge.

    11. Re:I don't get the blocks by linuxgeek64 · · Score: 1

      Minecraft blocks are 1 cubic meter.

    12. Re:I don't get the blocks by Bing+Tsher+E · · Score: 1

      Minecraft isn't infinite. You can build up to 256, dig down to bedrock (near zero) and travel x and y to new sectors.

    13. Re:I don't get the blocks by omglolbah · · Score: 1

      The rudimentary blocks are just a few bytes each.
      But there are a lot of them.

      Just one player has about 4 million blocks around them loaded, more if they're moving around a bit. Then there are all the entities, light values, special blocks and such. The world is split into 'regions' and 'chunks'. A chunk is 16x16 blocks, from 0 to 255 height.

      The blockiness is to make it a hell of a lot easier to modify the environment in predictable ways. It also lends itself to modding.
      You get things like 'Feed the Beast', a modpack which seems to be taking off quite well at the moment. I have clocked 200+ hours in the past few months...

      As you can see at this url there is a lot more than simple square blocks here: http://omglolbah.net/ksh/minecraft/
      Redpower2 (a mod) introduces 'microblocks' which allow you to do all sorts of things. In one of the screenshots there are narrow white 'bars' separating the redpower alloy wire on the wall (red wiring). These microblocks come in a variety of sizes and shapes. For simplicity all of them are rectangular in shape, but with the different sizes you can build quite complex shapes out of them :D

    14. Re:I don't get the blocks by omglolbah · · Score: 1

      Not infinite in vertical space no, but practically infinite in horizontal plane.

      Y is vertical (0 to 255), X and Z are north/south, east/west axis.

    15. Re:I don't get the blocks by terec · · Score: 1

      All you would need to make it look smoother is diagonal, corner, and rounded blocks. There are maybe 64 or 128 different types of those, so less than a byte per block.

    16. Re:I don't get the blocks by Tatarize · · Score: 1

      They would be really flat people too.

      Really it's 1.6 tall. And it's in meters, which is actually legit.

      As XKCD teaches us 1.6 meters is about a CD diameter shorter than Summer Glau and about doorway width longer than a light saber blade.

      --

      It is no longer uncommon to be uncommon.
    17. Re:I don't get the blocks by drinkypoo · · Score: 1

      This is true. So play minetest with mesecons, moreores and moreblocks (At least)

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    18. Re:I don't get the blocks by Anonymous Coward · · Score: 0

      They didn't use to, and it was more fun back then.

    19. Re:I don't get the blocks by Anonymous Coward · · Score: 0

      Y is vertical (0 to 255), X and Z are north/south, east/west axis.

      (facepalm)

  8. Style. by Anonymous Coward · · Score: 0

    It's 8-bit retro.

    1. Re:Style. by Anonymous Coward · · Score: 0

      Funny.

  9. Thanks, Max! by Paul+Fernhout · · Score: 2

    Great blog post, Max. Thanks for chiming in. I've enjoyed your previous instructional materials about CouchDB and other things like "JavaScript for Cats".
    http://jsforcats.com/

    So far our cat has only expressed limited interest in that website, but maybe over time interest will pick up? :-)

    For some reason, I think it would be really cool to put some sort of Couch-like database backend to this, even though I can't think of what it could be used for? :-) But that is the beauty of your well-architected modular approach to Voxel.js (which you mention in comparison to other systems out there). It should be relatively easy to make an interface to any data source (whether hosted using CouchDB or anything else) using standard web protocols.

    An example of that is what you did when you made a module that "dynamically renders any area of San Francisco into a crude voxel world". My wife worked towards doing that with data from the USGS for Minecraft, but there were various difficulties trying to transform the data. As a trustee of a local small community historical society, which has trouble competing for attention of the younger crowd against the web and apps and such, I've been thinking that it would be great if communities could make virtual worlds that local residents could visit. There could be different versions of these worlds, for the past, the present, and the future. Then people could discuss history, current issues, and long-term planning in them.

    Although there is a lot to be said for face-to-face get-togethers too, like with your Gather project.
    https://gather.at/

    This modular extensibility of Voxel.js seems like a huge win long-term, as does being easy to install as more and more browsers improve their support for WebGL. I feel it also might be cool to run Voxel.js on Java using the Rhino JavaScript engine and some Java 3D backend, for people to use if their web browser still struggles with WebGL.

    Anyway, thanks for making this fantastic hopeful project! I hope being on the front page of Slashdot brings in more developers and users.

    --
    A 21st century issue: the irony of technologies of abundance in the hands of those still thinking in terms of scarcity.
    1. Re:Thanks, Max! by maxogden · · Score: 1

      Thanks, Paul. Hopefully the cat will submit some voxel.js modules and get on Github soon! I'm definitely interested in the real-world data application that you explained in your comment. Some of the new fellows this year at Code for America are working on importing Open Street Map data into Voxel.js as a matter of fact. One idea I had was an app to let kids design and add voxel trees (or other public objects) to their city/neighborhood.

    2. Re:Thanks, Max! by Paul+Fernhout · · Score: 1
      --
      A 21st century issue: the irony of technologies of abundance in the hands of those still thinking in terms of scarcity.
  10. Source Code by Anonymous Coward · · Score: 0

    Did anyone else look through the examples on Github? There are basically 0 comments within the example source code.

    1. Re:Source Code by Anonymous Coward · · Score: 1

      Yeah but most of the examples are only like 200 lines of code. Do you really need comments? Also most of the examples have readme files.

    2. Re:Source Code by Jmc23 · · Score: 2

      The code is pretty straightforward. Horribly, imperatively, straightforward in fact. With good Readme's and docs. The main modules even seem to have some comments. What more do you want?

      --
      Don't complain about syntax, grammar, or spelling. There is no.hell like input on android.
    3. Re:Source Code by Anonymous Coward · · Score: 0

      It not being written in Javascript. Better yet, nothing being written in Javascript.

    4. Re:Source Code by Anonymous Coward · · Score: 0

      Javascript killed his parents.

  11. Very Good Work. However .... by Anonymous Coward · · Score: 0

    The author has made it fun for a lot of people to mash up and build their own Minecraft like games with it.

    Unfortunately, we are better off putting these innovations in a generic format, as opposed to a Minecraft like one. E.g.: Handling of spatial/streaming data, LoD/rendering optimizations for big 3D games, Libraries for efficient sparse representation of world/multiplayer data ...

    I think the idea itself is so-so, but the potential of useful code coming out of it are huge.

    1. Re:Very Good Work. However .... by maxogden · · Score: 1

      I agree. If you look more closely you will see that many of the modules associated with the project are in fact very generic.

    2. Re:Very Good Work. However .... by Paul+Fernhout · · Score: 2

      Max, on voxeljs.com, there are two demos which work fine but have broken source code links to go to missing GItHub pages (the first and eighth demo):
      http://maxogden.github.com/voxel-engine/
      http://shama.github.com/voxel-drone/

      Anyway, it's been great fun playing with the demos -- especially the surprising voxel-portal one. At first I thought the behavior was a bug, and then I realized it was a feature -- wow! :-)
      http://substack.net/projects/voxel-portal/

      It's just amazing to think I can, as above, supply people with URLs that with one click will put them in a virtual world of some sort.

      Well, assuming their browser supports WebGL well, but that will just get better over time. I downloaded Chromium just to run this since Firefox 18 had problems on my Mac with WebGL. I've tried WebGL before, but never had seen anything really compelling to use it for. Voxel.js may just be the breakthrough app for WebGL -- you and James Halliday have put together something that amazing.

      --
      A 21st century issue: the irony of technologies of abundance in the hands of those still thinking in terms of scarcity.
    3. Re:Very Good Work. However .... by Anonymous Coward · · Score: 0

      I envision minecraft-like 3D file indexes for web servers. It's Unix!

  12. Looks they they are using standards to me by Paul+Fernhout · · Score: 4, Informative

    First, they say "Chrome version 23 or above or Firefox version 17 or above are recommended." So, you can try either.

    I had problems using Voxel.js in Firefox 18 on the Mac, so I downloaded Chromium (the open-source fork of Chrome) from FreeSMUG , and Voxel.js ran fine it it. It was actually snappier than Minecraft on my machine, but that may just be because of a smaller world?

    I feel I'd probably rather download Chromium once and then surf to web pages than download a Java application like Minecraft and deal with all sorts of issues when trying to use Minecraft add-ons (given Minecraft has not prioritized supporting community add-ons). It has been a pain to manage lots of incompatible Minecraft add-ons (my wife even wrote a tool to help our kid deal with that). Also, when you download Minecraft addons, they presumably with full permissions and so could do anything to your system like read or delete files. I presume that web pages in Chromium are much more limited in what they can do (even though I have heard about theoretical WebGL exploits).
    http://news.slashdot.org/story/11/06/17/121236/microsoft-brands-webgl-a-harmful-technology

    Here is a pre-built download link for Chromium if Mac users need it:
    http://www.freesmug.org/chromium
    Or people can build it from source:
    http://www.chromium.org/

    It would probably be fair to say WebGL is not that well supported everywhere. I had problems with it in Firefox as above. Still, it seems to me like this group is trying hard to use open standards with JavaScript and WebGL, so I'm not sure your criticism is fair in that sense. WebGL is supported by multiple browsers, but probably just not very well yet:
    http://en.wikipedia.org/wiki/WebGL

    Still, give it time, and I expect WebGL (or something similar) will run most anywhere.

    Anyway, this generation may be "nuts" in their own way, true. :-) The question is, is the "nuts" of a bunch of people across the planet getting together virtually to write free and open source software (for shareable virtual worlds of abundant virtual resources) more "nuts" than a bunch of people getting together to give us, say, the "Cold War" and the artificial scarcity of software patents and endless copyrights etc.?

    --
    A 21st century issue: the irony of technologies of abundance in the hands of those still thinking in terms of scarcity.
    1. Re:Looks they they are using standards to me by Anonymous Coward · · Score: 0

      Go to http://www.feed-the-beast.com and watch your "it's a pain to manage lots of incompatible Minecraft add-ons" blues fade away.

  13. Works fine in Chromium by Paul+Fernhout · · Score: 1

    Thanks for the info. I ended up installing Chromium to run it.

    As "eksith" points out in another reply, everything has hiccups at first. The important thing is that this is working with technology that is based around open standards. And the design is modular and expandable.

    --
    A 21st century issue: the irony of technologies of abundance in the hands of those still thinking in terms of scarcity.
  14. Faster than Minecraft for me by Paul+Fernhout · · Score: 2

    You may have found it slow, but I have found it faster than Minecraft on a desktop (Mac Pro with eight 2.8 Ghz Intel Xeon cores, where only 60%-75% of one core seems to be used by Voxel.js under Chromium). Granted, Voxel.js may be doing a lot less than Minecraft, or the demo worlds may be smaller, I don't know, so this is not a comprehensive comparison. But at least for something simple, Voxel.js seems very useable on a Mac desktop that is more than four years old and does not have especially fancy graphics cards in it. I have not seen any lag in it.

    Which demos did you try from here?
    http://voxeljs.com/

    What browser, OS, and hardware did you try with?

    I have noticed an issue where I don't see a hand or pointer. I'm not sure if that is a limit in the software or an issue with my configuration.

    --
    A 21st century issue: the irony of technologies of abundance in the hands of those still thinking in terms of scarcity.
  15. Tee hee! I felled out of teh world! by Anonymous Coward · · Score: 0

    I was messing with the Voxel Forest one, and I wanted to see where digging got me. Needless to say, I squealed with delight when I realized "OHSHI-! I'm FALLING!!!!!" I wonder when you stop falling though because it would seem you keep falling forever. Where's a space-time loop when you need it? :-P

  16. I don't really see the point by devent · · Score: 1

    I don't really see the point. it's nice, but it's not novel.
    Why not just a Java Web Start with http://jmonkeyengine.com/
    You could even run that in the web browser with a Java Applet.
    It would run with 200 fps (or more) and not with the lousy 22 fps what I get in the browser. And it would be cross-platform, too.

    Sorry, I don't really see the point to re-implement everything we have on the desktop now in the browser. It's like we throw everything we achieved in the last 25 years on the desktop in the trash for what? For iPhone? Instead that we use what the desktop have (OpenGL, Java, VLC, etc.) we implement now everything in the browser (Pdf, WebGL, sound, etc.). Mozilla team couldn't be happier of course. But now I have a clone of my system, done badly and ugly, as my browser.

    --
    http://www.mueller-public.de - My site http://www.anr-institute.com/ - Advanced Natural Research Institute
    1. Re:I don't really see the point by ravenlord_hun · · Score: 1

      Given Java's recent track record with security, I'd rather advise to keep java the hell away from any browser...

    2. Re:I don't really see the point by pjr.cc · · Score: 2

      Lets ignore the fact that its 3d for a moment and concentrate on your main points... Is it novel? yes i personally thing so, but novel is in the eyes of the beholder. Is it awesome? absolutely from a developer point of view... is it cross platform - yes it is. Chrome and firefox can both be downloaded for every platform that oracle java can be (and probably built for many more too).

      Then theres the version dependency fun. Consider i wrote a RTF document editor as java applet, im faced with the scenario of 3 very annoying dependencies i have to code for - first the browser version, next the java version and lastly the OS itself. The browser and version of it in that case can be problematic in some cases, but largely they just fork off to java, and this is where the real fun begins because the current version of java out there still rotate around 1.6 and 1.7 and sadly I still have 1.6 because apps written for 1.6 often have problems in 1.7... Next lets just consider windows and macos and the fun (which still exists) of making a java app run on both systems - throw linux into the mix (and i do) and it gets far worse... These days, your chances of the end user actually having java or flash or some other add-on to support your app aren't always the best odd's either.

      But now the browser itself is becoming capable enough of replacing that middlewear dependency. Consider simply this, how many websites do most people go to today that have java applets on them? the answer is so very very small its really not funny. Take a look at google docs for example, how much of that would have to be written in some other addon-required code (such as java) if web browsers didnt become fundamentally more capable at doing things which java does?

      When you add something like 3d into that scenario, your pain levels go up orders of magnitude. How many 3d java app's are there out there? well, theres minecraft and.... 3d in java is painful when you start trying to do something even remotely complex, minecraft is by design very simple in its 3d implementation, it barely uses more then the primitives and so its relatively easy to make work almost anywhere, but you wouldn't have to add many things to minecraft for the 3d cracks to start to appear (shaders for example).

      Lastly, take a look at the code that was written to make the 3d stuff in the article work - if you can do the same with a java applet anywhere near as simply as this has been done, i'd be very very surprised.

    3. Re:I don't really see the point by devent · · Score: 1

      The Google Docs is a very good example for what not do to in the browser. Sure it can open Odf files, but for what? The time when you need to pay 300$ or more for a good Document Writer are long over. LibreOffice or OpenOffice are at least 50 times more capable then Google Docs and are not depending on a good internet connection.

      The problem with the midleware of Java is only because of the Browser (and Sun) developer. They chosen long ego to not support Java as good as Flash in the Web browser. My browser is becoming more bloated and bloated (I don't know why but since Firefox 18 the menus are now very sluggish and I conceder to switch to Chrome). Instead to re-implement everything again in the browser (and make the browser more bloated, more insecure and more of a monolithic monster).

      In my futuristic world, Orcale and the browsers could come together and make Java a seaming-less experience. In my futuristic world you could have had 3D, canvas, storage, database, etc. as good as a desktop application already, if you could bind Oracle Java and browsers together. In Java all the stuff that Mozilla and Google trying to implement in their browsers is already there in a cross-platform and open source way (OpenJDK).

      Why not put your Mindcraft demo as a Java applet and make it seaming-less as here:
      http://jchart2d.sourceforge.net/applet.shtml
      http://www.blakearchive.org/exist/blake/archive/object.xq?objectid=aro.a.illbk.01&java=no

      But that will never happen. Because Mozilla and Google want their own operating system, bypassing Apple and Microsoft. The W3C want to stick to HTML, DOM and JavaScript for everything.

      --
      http://www.mueller-public.de - My site http://www.anr-institute.com/ - Advanced Natural Research Institute
  17. But does it run in ScriptCraft? by Anonymous Coward · · Score: 0

    This really makes http://games.slashdot.org/story/13/01/21/1843232/javascript-comes-to-minecraft much more interesting.

    Well, then again I'm pretty sure ScriptCraft does not support WebGL. But the idea would still be kinda cool...

  18. Looking good by Anonymous Coward · · Score: 0

    As someone trying to get voxels to work in another engine (CryEngine), this might actually be right up my alley. All I'd need to do is code in atmospheric simulation and variable gravity (no mean feat) and then it'd be off to the races.

    (I'm one of the many people interested in bringing SS13 to 3D.)

  19. ROTFLMAO by Corwn+of+Amber · · Score: 1

    And they would go about securing JS code how, exactly? It's cleartext to the browser! You just can't protect that. I just thought of three ways to get the source, in the time it took me to type this sentence.

    --
    Making laws based on opinions that stem up from false informations leads to witch hunts.
    1. Re:ROTFLMAO by flimflammer · · Score: 1

      What's your point exactly? The source is intentionally available.

    2. Re:ROTFLMAO by Anonymous Coward · · Score: 0

      What's the material difference between minimized JS and a disassembled executable?

    3. Re:ROTFLMAO by Corwn+of+Amber · · Score: 1

      My point is, JS code is open source in fact, in all cases ever. Legality notwithstanding, it's just there to read and modify and stuff.

      --
      Making laws based on opinions that stem up from false informations leads to witch hunts.
    4. Re:ROTFLMAO by Corwn+of+Amber · · Score: 1

      Oh, lots. It's much easier to reorganize minimized JS than to figure out disassembled code. Javascript runs several layers of abstraction above the CPU, and every call belongs in a tiny namespace, compared to what happens in assembler. It's comparing apples and industrial orange juice.

      --
      Making laws based on opinions that stem up from false informations leads to witch hunts.
  20. Re:Tee hee! I felled out of teh world! by Tatarize · · Score: 1

    I'd figure your position might overflow at some point and plop you back on the world. Whether it occurs in your lifetime is something that the source code could tell you.

    --

    It is no longer uncommon to be uncommon.
  21. Let's be nice today shall we? by UnresolvedExternal · · Score: 1

    Seems like a few guys did a nice hack - more power to them - I look forward to a Sunday I waste messing about with it when I get the chance.

  22. Re:Tee hee! I felled out of teh world! by chronokitsune3233 · · Score: 1

    Ideally, yes. However, what if it's like many games that detect you're out of bounds and force you back in at the closest point possible? In the simplest case, it would just keep resetting Y to 0 while X and Z would remain constant as long as you're not moving. I'd look at the source code, but I don't care about it. I love the ability to be able to see how it works, but sometimes not knowing is more fun. :-)

    --
    I have been a captive in America my entire life. Everybody and everything uses customary units instead of metric.
  23. Extremely slow by loufoque · · Score: 1

    I just tried it.
    It barely runs at all. It's extremely slow. At 20-25 fps, walking feels more like crawling, and it uses all my computer resources, fans running as loud as they can, showing 100% CPU usage on two threads + GPU usage.

    There is no point if the experience cannot at least as smooth as Minecraft.

  24. add Inflatable Icons (3D shapes from 2D images) .. by the+agent+man · · Score: 1

    ... to get supercool authoring. As part of AgentCubes, a 3D creativity tool supporting Casual 3D design, we have created a new kind of a 3D authoring tool. Casual 3D, similarly to Voxel or Minecraft is not aimed at Pixar animators but at people who have not done any 3D authoring before and would not want to spend more than a minute to get started. Imagine combining Inflatable Icons with Voxel. One could build some pretty cool worlds and program them. You can see an early draft of a short demo video below. I am guessing that AgentCubes may be using similar technology as Voxel. Every game/simulation is turned into a HTML5/WebGL version using the Three.js game engine.

    draft of AgentCubes video http://www.youtube.com/watch?v=85CMrbvIYc8&feature=youtu.be

    The programming built in to AgentCubes is accessible even to young kinds. You can see and run some samples here (the WebGL part is still alpha). The 2D games are Java, the 3D ones are in Javascript and WebGL: http://scalablegamedesign.cs.colorado.edu/arcade/

  25. What hardware/OS/browser? by Paul+Fernhout · · Score: 1

    Can you say what browser, OS, and hardware you tried it on?

    Voxel.js was snappy when I tried it with Chromium on a Mac Pro desktop (vintage about four-five years ago with 2.8 Ghz Intel Xeon, fairly stock graphics card). It seemed to run even faster than Minecraft (granted it was probably doing a lot less with demo worlds).

    --
    A 21st century issue: the irony of technologies of abundance in the hands of those still thinking in terms of scarcity.
    1. Re:What hardware/OS/browser? by loufoque · · Score: 1

      Google Chrome 24, Linux x86_64.
      Recent high-end Intel processor and NVIDIA graphics card.

    2. Re:What hardware/OS/browser? by Paul+Fernhout · · Score: 1

      Thanks. Don't know what to make of that, except maybe the Mac has better 3D WebGL support in Chrome/Chromium somehow?

      If you really wanted to get it to work, you could try it in another browser perhaps (Chromium or Firefox) or maybe with some 3D system options changed (perhaps even under VirtualBox emulation).

      --
      A 21st century issue: the irony of technologies of abundance in the hands of those still thinking in terms of scarcity.
  26. These are not voxels by Anonymous Coward · · Score: 0

    One glaring problem, I don't believe large(relatively) textured cubes can be considered voxels.

    1. Re:These are not voxels by Anonymous Coward · · Score: 0

      I think voxels refer to the way they're stored in this case. They're equivalent to 3D pixels.

  27. Ready Player One by ProfFalcon · · Score: 1

    Am I the only one who caught the names and the tie to "Ready Player One"? http://en.wikipedia.org/wiki/Ready_Player_One James Donovan Halliday and Ogden Morrow are characters in that book. Audio book narrated by the inimitable Wil Wheaton. Good book.

    --
    Simply stating [Citation Needed] does not automatically make you insightful or brilliant.