This is great if you are designing a house, but less useful for reconstructing an as-built. The main frustration I have is that it's not easy to translate physical measurements into the quantities needed. It's odd to me that rooms are measured from the centerline of the wall, rather than edge to edge, which is what you'd measure with a tape measure or a laser ruler.
I have been trying to vibe code a proof of concept house-to-cad system where you feed it measurements and it uses a SLAM-like process to reconcile your measurements into a coherent house model. If anyone knows of something, let me know. Or please make it!
I've been working on adding a feature like that to my carpentry simulator sawdust.diy (woodworker-native SketchUp, use actual carpentry tools and a global material library instead of extruding rectangles). I've got a feature now where you upload a picture of your scrap wood pile and it solves for the closest match in your materials region and adds all the wood to your scene. I'm trying to extend that to already-built geometry so you can plan a build in your existing space or create a digital twin of your house. I set a constraint on myself of trying to do it without a fancy lidar phone, but the SFM/metric depth models I've tried so far really struggle at the task.
Thank you! It's a full top-to-bottom replacement, inspired by all of the frustration I experienced using SketchUp to design and build my house.
It's designed with full human/agent parity, so every tool has a human UI and an agent UI that can be driven over MCP.
It's also user extensible, we have a bunch of tool types supported. You can link your agent to your tool's user manual and your agent will create a tool definition for your particular model's specifications/constraints, and you'll never be shown a cut you can't actually make.
You can also submit a tool definition for a tool type we don't yet support and I'll get it modeled and rigged and build the ui and animations for it (my target SLA is 48h from me getting the "unsupported tool type definition submitted" page to "tool is live in app"). This is how I discovered people wanted planers and jointers and belt sanders.
What is the problem you're having? I walked around my house with my phone, videoing everything, took a few reference measurements, Codex then derived a 3d model of my house in Blender, and wrote Blender plugins to export per room pdfs with floor layouts. It has layers for my furniture and decorations, detects light switches and lights, etc. It also made hvac and electricity schematics, I had to feed it a bit more info of course, can't derive that only from video.
The reference measurements are an interesting addition. Generally phone AR positioning is not good enough for many applications (let's say you want to size up various areas throughout your house for cabinetry / vanities - you will not get a great fit this way). I'm curious how well the reference measurements improve accuracy. Walls can be crooked, floors aren't level, etc. What's the true "dimension" of a building? Maybe some sort of compressed sensing can work, IDK.
My employer does prefab steel wall framing. We take laser scans of the as-built to ensure proper fit among other things.
No I just made it up as I went along. I didn't think this would be anything special that anyone else would be interested in. Quite frankly I just speak a half-assed idea into Codex and it filters through my braindump. It corrects the things where I skipped over certain details, and then it comes up with better ways to do it.
If you want you can email me and I'll send you the Blender file and you can have a look. It did things like program parts of the Blender user interface so that I could have predefined views, and checkboxes or dropdowns (so that I can turn off the front wall or the side wall, so that I could have cutaways through my house, that sort of stuff).
I wish I could say that I thought of it myself to have it program this sort of stuff into Blender but it actually came up with that itself so I can't even take credit for that.
One thing that I did do is tell it, "Hey, some of the furniture that you found in these videos is from IKEA. If you recognize those, look on the IKEA website and you can use the dimensions for reference for measurements of the other things." It actually worked quite well even. Amazing.
Codex took stills. I told it 'analyse the video', it will bisect it with ffmpeg to find cutovers between 'scenes' (in my case, rooms, and specific angles of rooms) so that it has representative stills of everything. Unless I tell it 'go back to this and this door' or whatever, and then it will find specifically that part.
In fact what I did was even more low-effort. I just took a video with my phone. I have Dropbox on my phone. It automatically uploads and synchronizes with my desktop so I just told Codex, "Look on my camera uploads on my local Dropbox and analyze the latest video I took 10 minutes ago." I use that workflow often nowadays, with photis and videos.
i had similar experience except i sent to codex an ugly 20y.o. floor plan with writings i barely can read myself, as an output i had 3d model, shopping list with prices. all just plain english do me this and that. yeah, ai is that good.
I don't think I could have done this on the $20 plan, I don't really have experience with it. I'm on the $200 and back when I did this (this was with 6 Astra), I only very rarely used up my quota, although with this I may have and used resets, as it's the type of work for which it's very easy to spin up multiple agents (one per room, each working on separate files). Now with 6.2 Astra and heavy use, although coding and not so much 3d the last few weeks, I do tend to hit the limit early if I don't keep an eye on it. I have a little desktop monitor for that though, check out my github :) https://github.com/roel-v/CodexMeter-Companion (fully coded by Codex of course)
Codex did the conversion. I told it 'look at the video' and it then drove Blender through a Blender extension I also wrote (which also lets you annotate Blender models in a way so you can have your agents access those annotations, I haven't written up or published that part yet, maybe I should). So Codex basically generates pyblender code which it then executes inside Blender over HTTP.
I've been working on the exact same thing! Nothing to share yet, but if you find anything great please let me know. If my side project ever succeeds I'll share it.
I've got blueprints and 3d models from the original design of the house, but there are many discrepancies and I want a system for reconciling things using some sort of probabilistic framework.
Two semi-relevant projects that caught my eye when researching this:
Fortran isn't some extinct language that hasn't changed. The latest standard is only three years old.
We're not talking a language trapped on obsolete hardware. We're talking something that is still in regular use for any numeric tower, because that is what it is good at.
If you touch floating point, ever, there is a good chance the library used for processing it is a maintained, probably fairly modern, Fortran codebase.
The oil and gas industry still runs on Fortran code written many decades ago. The mathematicians and physicists got things right way back then in Fortran, no need to rewrite it.
Every time I've heard about a present-day Fortran code base it's because 1) Fortran is really good at those sorts of problems, and 2) lock-in because it's too hard to rewrite to another language, with little career benefit when you could be adding new features.
My experience is that usually it's only 2), for example in large code bases written in MUMPS.
With Fortran it's 1) and 2).
As I understand it, Fortran outperforms other languages for problems like matrix math, especially if you care about issues like portability and memory use.
Not only is Fortran designed for those problems, but the there's been a lot of thought, time, effort, and money used to make the generated code go fast.
Yes, in a language like C++, which has been frequently used to substitute Fortran, the native support for arrays is very bad.
You can eventually obtain the same performance in C++ like in Fortran, by defining your custom array types, with a complete set of operators and functions for them, possibly using inline assembly or SIMD intrinsics for implementing trickier operations. The same may be true for other programming languages that are extensible enough.
But just replacing Fortran with another currently popular programming language is not sufficient, without some extensive support libraries.
None of the programming languages that are popular today is a good replacement for Fortran, because by default they have very poor support for arrays and for many features of the floating-point computations.
The languages that are extensible, like C++, allow the definition of custom data types and of operators for them, with which the defects from the language specification can be compensated.
But that means that it is not enough to choose a programming language to replace Fortran, but also a set of libraries that would provide facilities at least as good as those provided by default in Fortran.
Such libraries introduce additional dependencies, so the choice is not simple.
Julia is one of the very few programming languages that has been intended for the same domain of applications as Fortran, but Julia has made some controversial design choices and it is doubtful that there are many cases where substituting Fortran with Julia would be a definite improvement in comparison with using the latest Fortran standard.
Because modern Fortran has all the goodies as other languages, first class support for CUDA, and a performance Python will never achieve, all coupled with 70 years of production code.
Also lets not forget that the beloved C is only about 10 years younger.
The preliminary Fortran specification was written in 1954, while the first version of C is from 1974.
The first Fortran implementation is from 1956, but that was not yet a complete high-level programming language, because any complicated functions and subroutines had to be written in assembly language.
In 1958, "Fortran II" added the features required to write any functions and subroutines also in Fortran, so that can be considered the first complete implementation.
Even when considering the first complete implementation, not the first written specification, C would be 16 years younger.
Even if modern Fortran compilers can still compile old Fortran programs, when writing a new Fortran program that would resemble very little with the original Fortran.
I feel this, my field (orbital dynamics) has a lot of heritage fortran that at this point I think will never go away. Much of it has a proven history, but there are large swaths of it that the original authors have long since died and no one knows the innards anymore.
I know, if it aint broke... but it feels like something has been lost if we are using code that no one alive knows what it is doing. I suppose that is the AI future.
Fortran is a beautiful language for scientific computation. The only problem is a) dogshit older code and b) the lack of ergonomic high level abstractions. The first is excusable since Fortran predates logical IF statements, and the latter is trivial with python, FFI and an LLM.
I don't know, I feel like I have more job security now (as far as performance related aspects go; faith in my employer, not so much) than ever before. My job is to encode into software simulation techniques from several disciplines, and whereas previously, if I was not already an expert in one area, I simply couldn't fulfill the ask. Now, I can, since I know the "shape" of what I expect the solution to look like (to borrow Claude's terminology), I can actually complete all the projects asked of me.
Look, I use Claude every day. It's great for my work, and it genuinely makes me more productive, and I like it.
That said, I live out in the boonies (as far east from the SF bay area as you can go before there is just nothing but the forests of the Sierras). They are talking about building a data center in Ione, a small town out here in the middle of nowhere (not quite as remote as where I am). Now, I cannot fathom why that would be a good place. There's no water, there's no infrastructure, we're not near any internet backbone. Perhaps land is cheap out here, but electricity is served by PG&E, so I don't imagine it's particularly cheap. I, and everyone I know living out here, are vehemently against building data centers out here. It just makes no sense to put them out here, especially with the wildfire risks. There's really no propaganda needed to make people hate them.
I see this take frequently; that coding does not require general intelligence. Perhaps I am in the minority, but rarely do I find myself in coding situations that are completely divorced from other subject areas. The code is modeling or interacting with the world, either through business processes, or (in my case) simulating the physical world, and I need the agent to have some working knowledge of not just the code, but also physics, materials, or social conventions. Are you all really able to just "write code" without dealing with all the externalities?
The externalities have to be dealt with using human judgment. Ai can help organize data to make better judgements but that use case is taken by chat based AI.
By the time, we want to code, the scope has been limited pretty greatly to the point that my rule to the Ai is “don’t make any decisions outside of the plan, if something in the plan turns out to be untrue or cannot be implemented after 2 differing attempts stop and ask for clarification”.
Sub frontier level Ai can circle endlessly thanks to a bad assumption, but a human can cut through that by coming at the problem sideways.
Its a good point that there is benefit to using general intelligence models to figure out what code to write and to write specs. Implementation plans as well as long as the general intelligence is also great at coding. But you would actually prefer here the model that performs best in your business domain rather than best at general intelligence.
The Opus frontier model will spin up a cheaper Sonnet subagent to explore the code base. Similarly we can have a Pareto optimal subagent write most code and verify it.
How often you needed the coding AI know all the trivia about some metal band? Like who are the members, songs , years etc. You can't even be sure if the facts are correct . This are good for a generalist model where you say remember some scene from music video and the AI will find the video for you.
Sure some world knowledge like things are affected by gravity, how people function, how a society function I think is needed for a coding AI but not trivia.
Are you approaching it like programming? I first design the program I want it to write, and then let the LLM implement it. All the important decisions it has to make are contained in the design. The LLM only has to know programming and a little bit of algorithms to implement it.
How often do the cousins of Louis the 5th of France impact on coding decisions? I can't see the argument for a completely generalist model being best for _coding_ in all situations.
They probably don't. But some words acquire their full sense meaning from historical and-non-programming context.
Words that are or were fairly common in tech circles — "bailiwick", "gatekeeper", "daemon", "boundary", "infer", "method".
It's true to say that most of these words have some specific meanings in tech, but you don't necessarily want the LLM to have only those narrow meanings when you are talking to it. A broader grasp of the word means the LLM won't go down a specific pathway before understanding you by analogy. That broader grasp comes from non-programming understanding.
I love OpenSCAD and code-based CAD, but even I must admit it's really only good for simple things and is more of a toy than a tool to solve real world problems. The main issue is fundamental, which is that CSG operations change topology in unpredictable ways, and there is no reliable way to refer to the components of the result. This is already bad for a few operations, but becomes exponentially problematic for more complicated models. Even in 2D, suppose I want to make a C-shaped thing out of a box and subtracting a different box out of it. You don't know how many edges the result will have, or even how many connected components the result will have, so how do you go on to perform the next step "on that one part that I want" if it even exists? Of course for a single concrete instantiation this is not really a problem, but the whole point is to have the shape tunable based on parameters, and once you allow that all hell breaks loose.
The great thing about OpenSCAD is that it makes it easy to model objects which may be represented by positioning/stretching/adding/subtracting cubes, spheres, cylinders, and cones using mathematics.
The awful thing about OpenSCAD is what one can model in it is directly limited to ones fluency and facility with using math to position, stretch, add, and subtract cubes, spheres, cylineders, and cones.
There is an entire book series on using it didactically:
Yeah, I oscillate a ton between code-based CAD (OpenSCAD, Build123d) and Fusion 360 and they require very different ways of thinking about things, with different things being easier/harder with each approach.
I hesitate a bit to call code-based CAD "a toy", but there are a lot of times where what I think I actually want is some kind of, sorry for the phrasing here, fusion of Fusion 360 and OpenSCAD. The Fusion timeline is pretty phenomenal and having the ability to do something like code steps and manual "click on all of the edges you want to put a fillet on" steps interwoven seems like it has a lot of potential for my "ultimate CAD workflow". The timeline part is kind of the magic that unlocks the whole thing:
- update a parameter or a piece of code, triggering a recompute
- see that the fillet operation is now missing an edge
- rewind the timeline, tweak the fillet edge set
- fast-forward the timeline to let the rest of the code blocks re-execute
Things like MakerWorld let you upload parametric OpenSCAD files and that's cool and all, but for my own uses I don't care if I need to use the "insert a manual step in the timeline" feature occasionally. OpenSCAD on its own doesn't have that and the idea of trying to do "operations as code" in Fusion (there is a scripting interface) is not super appealing as-is.
Being able to use hand-created objects as function inputs seems pretty powerful too. As an example, instead of needing to manually specify all of the points to make a polygon that I'm going to do a bunch of OpenSCAD extrudes with, just referencing a sketch earlier in the timeline. My current OpenSCAD "hack" for that is to draw those in FreeCAD as DXFs and then import them, but it's not a smooth workflow at all.
I could have written this same comment! For the most part I stick with Fusion, although my experience with build123d has also been great.
At the risk of spamming this thread, check out FluidCad. It has excellent GUI based cad tools, and those same tools generate the equivalent 'code cad' for each operation. Of course you can also use 'code first' instead.
I think it's really exciting, and while it's early in development it is already very usable.
One can argue that living apart from society is aiming to fulfill the same goals as those trying to colonize Mars; it is an effort to shore up human resiliency in the face of an uncertain and possibly less hospitable future of the planet. The skills required to bootstrap civilization and the technological stack need to be practiced and exercised so they do not die out, and this kind of off-grid living is very much keeping those threads alive.
I have been trying to vibe code a proof of concept house-to-cad system where you feed it measurements and it uses a SLAM-like process to reconcile your measurements into a coherent house model. If anyone knows of something, let me know. Or please make it!
reply