build_3dbox(3)
π build_3dbox(3) β the Arcan Lua API one π
okay so bestie, gather round, because this is the glow-up page for build_3dbox from the Arcan Lua API and honestly? it's giving cube. it's giving geometry. it's giving "why is my skybox suddenly a box" (iykyk). let's get into it β¨
π SYNOPSIS
vid
build_3dbox( float:width, float:height, float:depth )
build_3dbox( .B )
build_3dbox( float:width, float:height, float:depth, int:nmaps )
build_3dbox( .B )
build_3dbox( float:width, float:height, float:depth, int:nmaps,
bool:split )
like, pick your fighter fr fr π β you can go bare-bones with just dimensions, or serve the extra nmaps, or go full main-character with split too π¦
β¨ DESCRIPTION β¨
so what does it do? this bad boy builds a mesh and binds it to a new 3d model that is then finalized π periodt. that's the whole vibe.
the classic uses, ngl? skyboxes and debug geometry β the two icons of "i need a thing to exist in 3D space right now" πΈ
here's the part you actually need to memorize, bestie, because the numbers matter:
- the mesh values will range from
-(width/2)..+(width/2)π - ...and
-(height/2)..+(height/2)π - ...and
-(depth/2)..+(depth/2)π¦
so it's centered, okay? it's not off doing its own thing at the origin corner, it's centered. iconic behaviour honestly π
optionally β like, if you feel like it, no pressure π«Ά β the model will have nmaps texturing slots allocated to it.
and then there's the split argument: if you provide it and set it to true, the model gets split into one submesh for each side, with each submesh consuming nmaps textures. it's giving "six little besties, each with their own outfits" πβ¨
π NOTES
- β οΈ if the
splitoption is set, the number of actual textures needed in the frameset defined on the outputvidshould benmapsmultiplied by6β because each face will consumenmapstextures. yes, six faces. yes, that's a lot of textures. no, you cannot skip this math, bestie, i'm sorry π
real talk: that Γ6 is the classic gotcha. six sides,nmapseach, and the frameset on your outputvidhas to have room for all of them or you're gonna have a bad time π
π SEE ALSO:
build_3dplane(3)β the flat friend, for when a whole cube is simply too much π
and that's the page!! π written under the 3d section, dated October 2026 β stay cubey, bestie, and remember: build_3dbox(3), six faces, nmaps Γ 6 textures, no cap πππ
π¦ where this page comes from
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms