GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
orient3d_model(3) Arcan Lua API orient3d_model(3)

orient3d_model - Set the base orientation for the specified model.

nil
orient3d_model( model, roll, pitch, yaw )

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 vertices in the model.

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.

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

rotate3d_model(3)

June 2022 3d

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.