FreeBSD Manual Pages
build_3dbox(3) Arcan Lua API build_3dbox(3) NAME build_3dbox - Generate a 3D cube model 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 ) DESCRIPTION This builds a mesh and binds to a new 3d model that is then finalized. The typical use is for things like skyboxes and debug geometry. The mesh values will range from -(width/2)..+(width/2), -(height/2)..+(height/2), -(depth/2)..+(depth/2). Optionally, the model will have nmaps texturing slots allocated to it. If the split argument is provided and set to true, the model will be split into one submesh for each side, with each submesh consuming nmaps textures. NOTES 1 If the split option is set, the number of actual textures needed in the frameset defined on the output vid should be nmaps multiplied by 6, as each face will consume nmaps textures. SEE ALSO: build_3dplane(3) 3d August 2026 build_3dbox(3)
NAME | SYNOPSIS | DESCRIPTION | NOTES | SEE ALSO:
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=build_3dbox&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>
