FreeBSD Manual Pages
new_3dmodel(3) Arcan Lua API new_3dmodel(3) NAME new_3dmodel - Allocate a VID and 3D Model container. SYNOPSIS modelvid new_3dmodel() DESCRIPTION Just like regular VID s, 3D models start out in a hidden (opacity < EP- SILON ) state. Even if set to visible, no draw calls will be issues un- til the model has been populated with meshes. These will be drawed in insertion order. Note that vertices may be rescaled to 0..1 * factor using scale_3dvertices and that call takes the entire chain of meshes into consideration. NOTES 1 If a model isn't at all visible, try setting a single color shader for troubleshooting, then check video_3dorder to make sure that 2D elements aren't occluding it. A camera must also have been activated through the camtag_ class of functions. 2 By default, individual meshes doesn't have a full state akin to a complete VID and the only attribute that can really be as- signed (at quite some cost) to individual meshes are the active shader. 3 Order of traversed 3D objects depend on the active camera and may not necessarily follow the regular order_image class of functions. EXAMPLE function new_3dmodel0() vid = new_3dmodel(); show_image(vid); add_3dmesh(vid, "testmesh1.ctm"); end SEE ALSO: add_3dmesh(3) 3d April 2025 new_3dmodel(3)
NAME | SYNOPSIS | DESCRIPTION | NOTES | EXAMPLE | SEE ALSO:
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=new_3dmodel&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>