tag

#vmat

11 items (11 fixes)

fixes
26.07.08e
"A complete Blender-headless → s&box pipeline"

Two-stage flow: Blender headless emits Y-up OBJ, then pure Python writes vmats/vmdls and a C# model catalog.

26.07.08e
"Fixing a source asset doesn't always trigger recompilation"

ERROR models or white materials persist after fixing the source: delete the compiled artifact AND touch the source file to force recompilation, or poke asset_compile per source file.

26.07.08e
"Forge delivery fails but the preview GLB is still downloadable: recover it"

Forge delivery job errors out but the build stage's previewGlbUrl stays downloadable: recover the GLB through Blender into your standard delivery shape instead of re-spending.

26.07.08e
"Greedy voxel mesher produces vertical stripes on cliff faces instead of horizontal strata"

Per-cell dither or contour-wander in a greedy voxel mesher turns cliff skirts into vertical stripes: detect walls and key strata on raw height bands with dither neutralised.

26.07.08e
"Importing Kenney / CC0 kits into s&box"

CC0 kits import like any OBJ+vmdl; city kits share colormap.png, nature kits need per-color vmats, and facing is a per-model yaw guess.

26.07.08e
"ModelRenderer.Tint on flat-color vmats causes purple/black corruption"

Per-instance Tint on a flat-color vmat (white PNG + g_vColorTint) rotates hue or crushes random instances to black: use scale/yaw jitter instead.

26.07.08e
"Per-cell white noise hash gives salt-and-pepper terrain instead of organic shade patches"

A per-cell white-noise hash for terrain shade choice reads as a 50/50 checkerboard. Use a smooth low-frequency noise field instead, confining the hash to threshold-edge dithering.

26.07.22
"The repeating "error texture" / default_mask console flood is base-menu content, not your project"

A repeating red "Texture manager doesn't know about texture ... default_mask ... returning error texture" pair on engine/RenderSystem is base-menu-addon noise mounted into every project, not your content. It repeats per draw call. There is no supported way to mute it from game code. Filter it visually.

26.07.15a
"Time-of-day sky swap pops: use a weighted-blend shader instead"

A hard SkyBox2D.SkyMaterial swap produces a visible pop, and stacking two SkyBox2D components with Tint alpha crossfade does not composite. The fix is a single custom sky shader that holds all time-slot textures and blends them by weight.

26.07.08e
"Unknown shader field? Check the engine's own templates before grepping projects"

Shader field support is unknown and no .shader source exists: check the install's templates/ folder for authoritative syntax instead of grepping sibling projects.

26.07.08e
"Using AI-generated 3D models in a real s&box game"

AI mesh generators (Tripo, Meshy, Rodin) deliver textured OBJ+vmdl, but modeldoc32 headers, ~1m normalize, corrupt textures, bare texture paths, and missing colliders will ERROR the asset until patched.

Want to know when new guides or fixes drop? Join the community to help build this out. Report gotchas, flag outdated fixes, or just lurk.

Join the Discord