Repository navigation
The first EDGEfab, a preview: props, from a model of your own or from your words, into your mod project.
New
- The first EDGEfab (F1 of the build plan): an EDGEfab icon in the activity bar with a Desk view: EDGEfab's own scratch workspace, kept between sessions, where what you make waits until it goes into a project or your Library. Import a GLB... takes a textured model of your own; Generate from Words... draws it first, then has Tripo make it 3D, with your own keys (below). EDGEfab gets it ready for the game: its real size, standing on its base, three levels of detail (full, half, a fifth), and its textures written out for its materials. A model too detailed for the game (over 65,535 vertices in a part, such as Tripo's 1.4 million triangles without a limit) is simplified to fit, and the Desk says so. Add to Project puts it into your REDcode project.
- Generate from Words, picture first: describe an object and OpenAI's GPT Image draws it from four sides in about 30 seconds, for a few cents of your own OpenAI credit (Set OpenAI Key). The picture opens in its own Pictures tab. There, change it by words ("make the cabinet red and the glow blue"): GPT Image changes what the words say and keeps the rest. Any picture in the tab's history can be changed again, and each one shows the words that made it and when. Draw Picture starts again from words alone. When one looks right, Generate 3D Model: Tripo makes the model from its four views, true to every side and far crisper than from words alone. The pictures wait on the Desk until you do; Open the Pictures brings the tab back. Without an OpenAI key, Straight to 3D makes it from the words alone. For assistants,
fab_picture(withfromto change a picture), thenfab_makefrompicture(withtakefor any picture). - In parts: a generated model comes in a few named parts (body, front, back, base, glass, details...), each with its own material, so EDGEmat can give one part a new look. EDGEfab groups Tripo's many pieces (79 for a vending machine) and packs each part's textures into one picture. Costs Tripo about 20 credits more; the edgefab.generateInParts setting turns it off. A model imported with many pieces is grouped the same way. A model of ten pieces or fewer has its parts named by place too.
- Set Size: Tripo gives no real size for models in parts, so EDGEfab asks how tall the object is before making it, and the Desk warns until it has a size. Right-click a prop, Set Size..., to change it any time. For assistants,
fab_size. - Add to Project: a prop on the Desk goes into your open REDcode project (or one you pick) as files the game uses: its mesh with its levels of detail, its own textures as game materials (made by EDGEmat's core, glow included), and an entity to place with EDGEbuilder or spawn, solid with a box its size. The edgefab.collision setting picks how it is solid (a physical mesh, a box collider, or none). The model and a note of where it came from and its license go in the project's
source\raw. Adding it again replaces it. For assistants,fab_add. - Add to Project again keeps what didn't change: a material made from the same pictures as last time keeps its files, so adding a prop again after only its size or shape changed takes seconds, not minutes. Only the materials whose pictures or glow changed are made again. A part you gave another material since (one of the game's, through EDGEmat) keeps it. The message says what was kept, and Start Over... makes every texture again and puts every part back on the model's own. For assistants and other tools:
fab_add'stexturesandparts, andkeptandswappedin its answer (EDGEfab #6). - Open in EDGEmat, on a prop on the Desk (its menu, and the palette icon on its line) and on Add to Project's message: the prop's mesh opens on EDGEmat's Desk with one row per part, where a part takes one of the game's surfaces or materials. A prop that isn't in the project yet is added first. The message's Reveal in REDcode shows the prop's mesh in REDcode's Project view.
- The Library: the EDGE Library is one folder every EDGE tool shares, outside any project, for props and other things you reuse across mods, in folders you name yourself. Add to Library on a prop on the Desk puts it there with its game files made, ready for any project: in a folder you pick, or in folders matching its game path if you like the Library to browse like the game's files. Its game files go under a folder of your own (asked once, such as your modder name), so it's the same in every mod. Add it again after changing it and the Library's copy is updated, one version up. The Library view shows your folders, the props in them, other tools' items, and models you keep to convert later. On a prop: Add to Project (a copy, no waiting), Open in 3D, and Edit on the Desk to change it. Refresh Project from Library finds the props a project took that are newer in the Library and copies them in. The Library is optional: without it the Desk and Add to Project work the same. For assistants,
fab_library,fab_library_add,fab_library_edit,fab_refresh, andfab_addfromlibrary. - Rename a prop on the Desk: its name, and its files' names to match, all the way in: its folder, its model, its textures and its materials, so a renamed prop goes into a project under one name. It stays the same prop for the Library. Its 3D view, if open, closes and opens again on the renamed files. For assistants,
fab_rename. - Make a Prop on a
.glbin VS Code's Explorer, or on a model in the Library, puts it on the Desk, as Import a GLB does. - Make the Painted Lights Glow: Tripo's lights are only painted on, so EDGEfab can make the bright, strongly colored painted areas really glow: right-click a prop on the Desk and choose how much counts as a light. They glow bright by default, since thin painted strips barely show at night otherwise. Look at it in 3D, and try again if it caught too much. It works offline and costs nothing. For assistants,
fab_glow. - Glow Strength: how strongly a prop glows is your choice, from a deep color for small lights through a soft glow and bright to white-hot, or a number, per part of the prop. Stop the Glow turns it off. After changing a prop that is already in a project, Add to Project again.
- Tripo's models face forward: Tripo makes models facing sideways; EDGEfab turns them a quarter so their front faces the way the game's props do, and says so on the Desk. It knows a Tripo model by its file, so a Tripo GLB you import is turned too; other models keep their facing.
- Glow kept: a model whose materials glow (glTF's emissive, from Blender or a store) keeps its glow colour, strength and map for its game material, shows it in the 3D view, and the Desk says it glows. Tripo's models don't glow: their lights are painted in.
- Open in 3D: click a prop on the Desk to see it turn in REDcode's 3D view, with its textures, its parts to show or hide, and a picker for its levels of detail. Also in its right-click menu, and on the message when a model is made. Needs REDcode; without it, EDGEfab offers to install it or opens Tripo's preview picture.
- Your Tripo and OpenAI keys are kept encrypted in VS Code's own secret storage, for EDGEfab only (Set Tripo Key, Set OpenAI Key, and Clear to remove them);
TRIPO_API_KEYandOPENAI_API_KEYin your environment win. EDGEfab's MCP server takes its keys from its own environment only (EDGEchat's plugin settings set them). And EDGEfab asks once whether your Tripo plan is paid or free: on a free plan Tripo keeps the rights to the models, so EDGEfab marks them as not yours to release. - More detail: generated models get Tripo's detailed texture (4096², labels, screws and vents crisp) by default, and High detail adds Tripo's detailed shape. Before Tripo is paid, EDGEfab says what it will cost and your balance: about 60 credits from a picture in parts, 80 with High detail.
- Clean levels of detail: the simpler levels a prop switches to with distance keep to its texture, without black shards across flat panels where a simplified triangle ran over the black between Tripo's texture charts, and shade closer to full detail. On Tripo's textures they save fewer triangles for it.
- Bumps the right way round: Add to Project writes normal maps the way the game reads them (green down, DirectX), where models come green up (glTF), so raised details don't shade as dents under light from above.
- Not see-through: a part open on one side and marked double-sided (thin panels, open shells, many store models) gets back faces, since the game draws one side.
- For other EDGE tools: EDGEfab's core goes to npm with each release as
@edgemodders/edgefab-core(EDGEfab #5), so EDGEbuilder can import a model from inside the game: prepare a GLB and add it to the open project. Modders don't need it. - For assistants: an MCP server inside the extension, with
fab_make(a prop from a GLB, or from words through Tripo),fab_desk(what is on the Desk) andfab_tripo. Connect an Assistant (MCP)... registers it with Claude Code; agents in VS Code see it on their own.
Install: in VS Code's Extensions view, search for EDGEfab and press Install (VS Code Marketplace, Open VSX). Or download edgefab-0.1.0.vsix below and run code --install-extension edgefab-0.1.0.vsix. Windows only. Generate with Tripo needs your own Tripo API key; Add to Project needs REDcode.
For AI assistants: the extension carries EDGEfab's MCP server. In VS Code, run EDGEfab: Connect an Assistant (MCP)... to connect Claude Code; agents inside VS Code 1.101 or later see the tools with no setup. Without VS Code: @edgemodders/edgefab-mcp on npm, or edgefab-mcp-0.1.0.cjs below, one file for Node.js 20 or later.
Docs: https://edgemodders.github.io/EDGEfab/ (changelog: https://edgemodders.github.io/EDGEfab/changelog.html)