Howto:3D Aircraft Models: Difference between revisions

Jump to navigation Jump to search
m
Fixed OpenSceneGraph links and ac3d format specification link
(Merged some stuff to Howto: Animate models)
m (Fixed OpenSceneGraph links and ac3d format specification link)
 
(2 intermediate revisions by 2 users not shown)
Line 6: Line 6:
* the y-axis runs sideways, towards the right  
* the y-axis runs sideways, towards the right  
* the z-axis runs upwards  
* the z-axis runs upwards  
* heading is a rotation around the z-axis, where positive is clockwise viewed from above
* roll is a rotation around the x-axis, where positive is clockwise viewed towards the back
* pitch is a rotation around the y-axis, where positive is clockwise viewed from the left
* pitch is a rotation around the y-axis, where positive is clockwise viewed towards the right
* roll is a rotation around the x-axis, where positive is clockwise viewed from behind
* heading is a rotation around the z-axis, where positive is clockwise viewed upwards


[[File:heading.jpg|200px]][[File:pitch.jpg|200px]][[File:roll.jpg|200px]]
[[File:heading.jpg|200px]][[File:pitch.jpg|200px]][[File:roll.jpg|200px]]
Line 15: Line 15:


== Loading the model ==
== Loading the model ==
Through [http://www.openscenegraph.org/projects/osg OpenSceneGraph], FlightGear supports many different 3D file formats, including VRML1, AC3D, DXF, and [http://www.openscenegraph.org/osgwiki/pmwiki.php/UserGuides/Plugins many others.] However, [http://local.wasp.uwa.edu.au/~pbourke/dataformats/ac3d/ .ac] is the standard used in most FG models.  
Through [http://www.openscenegraph.org/ OpenSceneGraph], FlightGear supports many different 3D file formats, including VRML1, AC3D, DXF, and [http://www.openscenegraph.org/index.php/documentation/guides/user-guides/61-osgplugins many others.] However, [https://www.inivis.com/ac3d/man/ac3dfileformat.html .ac] is the standard used in most FG models.  


The property /sim/model/path in the main FlightGear property tree controls what model will be loaded; it takes a string value giving the relative path of the model from [[$FG ROOT]].
The property /sim/model/path in the main FlightGear property tree controls what model will be loaded; it takes a string value giving the relative path of the model from [[$FG ROOT]].
Line 99: Line 99:


Now for the interesting part. FlightGear allows you to animate models by having parts rotate or spin in response to property changes. When animating your model, it is very helpful to find an aircraft with parts similar to yours and use it as an example. Cut and paste the code into your wrapper file and then edit to suit.  
Now for the interesting part. FlightGear allows you to animate models by having parts rotate or spin in response to property changes. When animating your model, it is very helpful to find an aircraft with parts similar to yours and use it as an example. Cut and paste the code into your wrapper file and then edit to suit.  
== See also ==
* [[MP Fallback models]]


{{3d}}
{{3d}}
1

edit

Navigation menu