Reaching for the stars: Difference between revisions

Jump to navigation Jump to search
Line 131: Line 131:
   |date  =  May 20th, 2016  
   |date  =  May 20th, 2016  
   |added  =  May 20th, 2016  
   |added  =  May 20th, 2016  
  |script_version = 0.40
  }}</ref>
We do have experimental code that also allows Canvas to be used on conjunction with arbitrary 3D models.
Basically, what it will do is add a  new Canvas "element type", called "model", where you can specify a filename of a 3D model, and then it will add the whole thing under a osg::PositionAttitudeTransformMatrix, so that you can freely position/scale and tranform the whole 3D model arbitrarily by accessing a few properties (that are then mapped to the osg::PAT methods to rotate, scale etc)  - several elements can be added to the same "scene"
[[Howto:Extending Canvas to support rendering 3D models]]
[[File:Canvasmodel2.png|250px]]
[[File:Canvas-model-element-rotated.png|250px]]
it may make sense to keep this in mind, especially given bugman's "directional moonlight" effort, i.e. conceptually you could even load your EarthView models/textures into the same scene, and "animate" it using a handful of properties (obviously, there are not the conventional FG light sources (sun) or the skydome etc)<ref>{{cite web
  |url    =  https://forum.flightgear.org/viewtopic.php?p=285956#p285956
  |title  =  <nowiki> Re: Space Shuttle </nowiki>
  |author =  <nowiki> Hooray </nowiki>
  |date  =  May 21st, 2016
  |added  =  May 21st, 2016
   |script_version = 0.40  
   |script_version = 0.40  
   }}</ref>
   }}</ref>

Navigation menu