Reaching for the stars: Difference between revisions

Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 15: Line 15:
   }}
   }}
}}
}}
Thorsten's approach for implementing the EarthView addon is sufficiently generic to also implement other celestial bodies like this - scenery itself is a different matter though, but the TerraGear tool chain will process pretty much any elevation data you throw at it and try to turn it into scenery (DEM for Mars being freely available)<ref>{{cite web
  |url    =  https://forum.flightgear.org/viewtopic.php?p=250154#p250154
  |title  =  <nowiki> Re:  </nowiki>
  |author =  <nowiki> Hooray </nowiki>
  |date  =  Jul 7th, 2015
  |added  =  Jul 7th, 2015
  |script_version = 0.40
  }}</ref>


{{FGCquote
{{FGCquote
Line 133: Line 143:
   |script_version = 0.40  
   |script_version = 0.40  
   }}</ref>
   }}</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
  }}</ref>
== References ==
{{Appendix}}

Navigation menu