Unofficial Hacker News companion — get notified on comment replies, and more.

Show HN: ArchLang – floor plans as code, compiled to SVG/DXF/PDF (opens external site)

262 points by chanmeng 3 days ago playground.archlang.uk 68 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (4)

  1. I am currently making the floorplan of my home for a better home assistant dashboard.

    I used sweethome3d to design the plan of my house. I used blender to add the lights and to generate the renders for each light when on/off and gimp to add buttons that I can click once the floor plan is imported in home assistant.

    Each of these has app have mcp that are available, blender is a first party one but not the other 2 but they still work great and it did speed up the process quite a bit.

    I guess this could have been a good alternative to sweethome3d even though sweethome3d really is very very simple to use.

    Replies (1)
    1. This just reminded me of my little brother who made a hyperrealistic visualisation of his new flat using three.js + Claude. I don't think he even touched Blender.

      And it looks really well: exact shape/dimensions, materials, light, raytraced rendering for screenshots. You can walk around (FPP), control the environment incl. the lights, and even grab a beer from the fridge (and you have to put it in a recycling bin). It's honestly quite impressive given that he doesn't code. (He is a designer, however, and he used SH3D before.)

      Personally, I would lean towards keeping the plans in dsl because it's easier for me to tweak, but I don't think he's regretting his technical choice. And I think I overcomplicate things.

      Regarding rendering: I also noticed that Opus is quite decent at reconstructing plans from a screenshots and then cleaning them up, turning into whatever presentation later.

      Btw, did you try using image generation to control lighting instead of Blender? I noticed that the new nano banana does a really good job at this (i.e. in my case, the generated lighting was weirdly realistic).

      Replies (1)
      1. No, I haven't tried using image generation as there is no image generation in the ai subscription that I use.

        As I never really used image gen It didn't even occur to me that I could use it just for that.

        It sounds like it could be really usefull to quickly experiment on stuff, like quickly add/remove/edit stuff from an image to see what it could look eventually like.

        Do you have any recommandations on what to use for this (I don't want to selfhost)? I found comfy.org which is the cloud option that comfyui offers which looks good but I am not very familiar and up to date with all the image/video gen stuff.

        Replies (1)
        1. I used Google AI Studio / Nano Banana 2.1 -- the UX is a bit annoying, since there's the entire API key song and dance you'll need to deal with first. But, the model is pretty good at making gradual edits, and, once you set up the keys, easy to use.

          I haven't played with any multimodal image gen models besides this one, but I imagine there's competition or repackaged products with it, with a nicer UX.