Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
orient3d_model(3)		  Arcan Lua API 	       orient3d_model(3)

NAME
     orient3d_model - Set the base orientation for the specified model.

SYNOPSIS
     nil
     orient3d_model( model, roll, pitch, yaw )

DESCRIPTION
     While  the  active  orientation  of a model is dynamically changeable, many
     models from external sources come with a  different  starting  orientation.
     Although  it  is  possible to compensate for that, it may be easier to just
     rotate the vertices once at a cost of O(n) in respect to the number of ver-
     tices in the model.

NOTES
     1	    Since this operate on the vertex data itself, with a  transformation
	    that can impose a loss of precision, it is not recommended that this
	    is used more than once for any model.

EXAMPLE
     function orient3d_model0()
	   camera = null_surface(4, 4, 0, 0, 0);
	   view = camtag_model(camera, 0);
	   model = build_plane3d(-5.0, -5.0, 5.0, 5.0, -0.4, 1.0, 1.0, 0);
	   show_image(model);
	   orient3d_model(model, 10, 5, 2);
     end

SEE ALSO:
     rotate3d_model(3)

3d				   August 2026		       orient3d_model(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=orient3d_model&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help