4 comments

  • tomaytotomato31 minutes ago
    Always thought it would be cool to make an RTS or simple city builder game in the browser.<p>Would you recommend this for hacking around or not?
    • thih910 minutes ago
      It’s a wide range from an RTS to a city builder. Perhaps try it for a couple of hours and see whether you like it or not.
  • Rohansi1 hour ago
    But why not use WebGL? It&#x27;s widely available, more efficient, and can render at a much higher quality.<p><a href="https:&#x2F;&#x2F;polycss.com&#x2F;gallery&#x2F;?model=2843066616" rel="nofollow">https:&#x2F;&#x2F;polycss.com&#x2F;gallery&#x2F;?model=2843066616</a><p><a href="https:&#x2F;&#x2F;threejs.org&#x2F;examples&#x2F;#webgl_animation_multiple" rel="nofollow">https:&#x2F;&#x2F;threejs.org&#x2F;examples&#x2F;#webgl_animation_multiple</a>
    • rofko1 hour ago
      Hi there! This is not trying to be a three.js replacement, scenes with huge polygon counts naturally should render in canvas.<p>For me, the interesting case is smaller low-poly or voxel scenes where loading a full 3D stack may be overkill, and where keeping the scene in DOM&#x2F;CSS gives you easier integration with normal layout, styling, events, etc. Once you have the HTML, you don&#x27;t even need to load the library to render a static model.<p>Also, part of the experiment is testing the browser’s limits and getting a clearer sense of where this approach works, where it breaks down, and what the tradeoffs are.<p>Cheers!
      • woodrowbarlow11 minutes ago
        ha, so you could run this on the server and send down a page with no javascript at all? (with, i assume, a static camera only.) that&#x27;s fun. i mean, you could also just render the model to an image at that point, but still, this is neat.
    • socalgal21 hour ago
      Same thought. Even that simple Apple on the front pages runs &lt; 60fps on my M1 Mac. Rendering 3D objects with CSS is like rendering Doom in Excel Cells. Yes, you can do it. No you should not do it except as a joke&#x2F;curiosity.
  • cush1 hour ago
    I give it 15 minutes before someone on here ports Doom
    • bryanrasmussen1 hour ago
      <a href="https:&#x2F;&#x2F;github.com&#x2F;NielsLeenheer&#x2F;cssDOOM" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;NielsLeenheer&#x2F;cssDOOM</a>
  • sgm101851 minutes ago
    wow thats cool