Jump to content
Sign in to follow this  
HiFlyer

Released: Sleicher ASK-13 (Glider) For Outerra

Recommended Posts

Great work Levi and Bomber!! And yet another feather in Outerras cap.

 

http://forum.outerra.com/index.php?topic=2862.0

 

 

(August 27, 2014)

Released on August 27, 2014

Features:

  • Basic Wing Flex (upgrade pending).
  • Two different camera positions (using  Mixture).
  • Animated ailerons.
  • Animated air brakes (using throttle).
  • Animated rudder.
  • Animated elevator & elevator trim.
  • Animated rudder pedals (front & rear).
  • Animated air brakes handles.
  • Animated elevator trim handles.
  • Animated yokes (front & rear).
  • Animated canopy (using gear key).
  •  
  • Sounds for:
    - General wind.
    - Air brakes wind.
    - Roll.
    - Creak % Vario beep based on AoA.
  •  
  • Working instruments/gauges:
    - Turn indicator (front & rear).
    - Air speed indicator (front & rear).
    - Vertical speed indicator (front & rear).
    - Compass (front & rear).
    - Altimeter (front & rear).

 


We are all connected..... To each other, biologically...... To the Earth, chemically...... To the rest of the Universe atomically.
 
Devons rig
Intel Core i7 8700K @ 5.0GHz / 32.0GB G.SKILL TridentZ Series Dual-Channel Ram / ZOTAC GAMING GeForce® RTX 2080 Ti Triple Fan / Sound Blaster Z / Oculus Rift VR Headset / Klipsch® Promedia 2.1 Computer Speakers / ASUS ROG SWIFT PG279Q ‑ 27" IPS LED Monitor ‑ QHD / 2x Samsung SSD 850 EVO 500GB / 1x Samsung SSD 860 EVO 1000GB / 5 other regular hd's with up to 10 terabyte capacity each / Windows 10 Pro 64-bit / Gigabyte Z370 AORUS Gaming 5 Motherboard

Share this post


Link to post
Share on other sites

Great work Levi and Bomber!! And yet another feather in Outerras cap.

 

http://forum.outerra.com/index.php?topic=2862.0

 

 

(August 27, 2014)

Released on August 27, 2014

 

Features:

  • Basic Wing Flex (upgrade pending).
  • Two different camera positions (using  Mixture).
  • Animated ailerons.
  • Animated air brakes (using throttle).
  • Animated rudder.
  • Animated elevator & elevator trim.
  • Animated rudder pedals (front & rear).
  • Animated air brakes handles.
  • Animated elevator trim handles.
  • Animated yokes (front & rear).
  • Animated canopy (using gear key).
  •  
  • Sounds for:

    - General wind.

    - Air brakes wind.

    - Roll.

    - Creak % Vario beep based on AoA.

  •  
  • Working instruments/gauges:

    - Turn indicator (front & rear).

    - Air speed indicator (front & rear).

    - Vertical speed indicator (front & rear).

    - Compass (front & rear).

    - Altimeter (front & rear).

 

 

 

Very nice! JSBsim isn's as bad as some people in the community want us to believe. After all, the Majestic Dash 8 Q 400 uses it as well. 

 

Is there a tutorial on implementing working gauges?


Andreas Paul

Share this post


Link to post
Share on other sites

From User M7, who does wing-man videos that often end in tragedy. (Boom)  :P

 


We are all connected..... To each other, biologically...... To the Earth, chemically...... To the rest of the Universe atomically.
 
Devons rig
Intel Core i7 8700K @ 5.0GHz / 32.0GB G.SKILL TridentZ Series Dual-Channel Ram / ZOTAC GAMING GeForce® RTX 2080 Ti Triple Fan / Sound Blaster Z / Oculus Rift VR Headset / Klipsch® Promedia 2.1 Computer Speakers / ASUS ROG SWIFT PG279Q ‑ 27" IPS LED Monitor ‑ QHD / 2x Samsung SSD 850 EVO 500GB / 1x Samsung SSD 860 EVO 1000GB / 5 other regular hd's with up to 10 terabyte capacity each / Windows 10 Pro 64-bit / Gigabyte Z370 AORUS Gaming 5 Motherboard

Share this post


Link to post
Share on other sites

Very nice! JSBsim isn's as bad as some people in the community want us to believe. After all, the Majestic Dash 8 Q 400 uses it as well. 

 

Is there a tutorial on implementing working gauges?

I don't think there's a tutorial for this, but I'll try to briefly explain it.

 

Implementing working gauges isn't that hard. Those are just objects that moves or rotates depending on a variable defined in JavaScript, which is generally tied to a JSBSim property.

 

Let's take as an example the needle from the vertical speed indicator used on this glider.

idbCyEPgeY79A.png

 

First, we have to properly name the object in question. In our 3D modeling software, we name the needle as BONE_needle_vsi. BONE_ is needed to tell the Outerra's importer (I use the FBX importer) that we need to access to that object via JavaScript.

 

Now after we successfully imported the model into Outerra, let's script that needle.

 

 

In JavaScript, I use this simple function to limit the rotation angle of our object(s).

function clamp(val, min, max){if(val < min) return min;else if(val > max) return max;else return val;}

And this one for converting from degrees to radians, together with the constant PI:

const PI = 3.14159265358979323846;
function deg2rad(angle_deg) { return (PI / 180.0) * angle_deg; }

Inside the function initialize(reload){}, we get our object(s) from the package for posterior use. As you can see, BONE_ is only needed for the importer. The real object's name is needle_vsi.

function initialize(reload){geom = this.get_geomob(0);jsb = this.jsb();

   needle_vsi = geom.get_joint('needle_vsi');
.
..
...
....
}

Now, let's proceed to animate this needle. This code needs to be written inside the function update_frame(dt){}

function update_frame(dt){
   val = jsb['velocities/v-down-fps']*2.55;
   geom.rotate_joint_orig(needle_vsi, clamp(deg2rad(val) ,-0.75,0.75)* PI, {x:1,y:0,z:0});...
...
....}

jsb['velocities/v-down-fps']  is the property used in JSBSim for the vertical speed. Then, I multiplied that by 2.55 to match the needle with the background texture.

 
 
Use this code under function update_frame(dt){} to print and show the vertical speed in real-time on console('P' key) . It also converts from foot per second to meters per second. This will help you to know how much you have to multiply jsb['velocities/v-down-fps'] in order to match the needle with your background texture.
this.log_inf("m/s  "+jsb['velocities/v-down-fps']*0.3048);

So yeah, that's basically what you need to do in order to animate gauges, and not only gauges, but any other object. You can always check out the scripts from any other plane and see how it was done.

 

I hope this is understandable, because I'm really bad when I have to explain things, and English not being my first language...  :P

 

Share this post


Link to post
Share on other sites

Thank you for the detailed answer Levi!

 

I guess i'll also post here that the ASK-13 has just received an update. Please re-download!

 

Update:
(August 30, 2014)

  • Updated FDM.

http://forum.outerra.com/index.php?topic=2862.0


We are all connected..... To each other, biologically...... To the Earth, chemically...... To the rest of the Universe atomically.
 
Devons rig
Intel Core i7 8700K @ 5.0GHz / 32.0GB G.SKILL TridentZ Series Dual-Channel Ram / ZOTAC GAMING GeForce® RTX 2080 Ti Triple Fan / Sound Blaster Z / Oculus Rift VR Headset / Klipsch® Promedia 2.1 Computer Speakers / ASUS ROG SWIFT PG279Q ‑ 27" IPS LED Monitor ‑ QHD / 2x Samsung SSD 850 EVO 500GB / 1x Samsung SSD 860 EVO 1000GB / 5 other regular hd's with up to 10 terabyte capacity each / Windows 10 Pro 64-bit / Gigabyte Z370 AORUS Gaming 5 Motherboard

Share this post


Link to post
Share on other sites

M7 at it again. He does love his formation flying.  B)

 


We are all connected..... To each other, biologically...... To the Earth, chemically...... To the rest of the Universe atomically.
 
Devons rig
Intel Core i7 8700K @ 5.0GHz / 32.0GB G.SKILL TridentZ Series Dual-Channel Ram / ZOTAC GAMING GeForce® RTX 2080 Ti Triple Fan / Sound Blaster Z / Oculus Rift VR Headset / Klipsch® Promedia 2.1 Computer Speakers / ASUS ROG SWIFT PG279Q ‑ 27" IPS LED Monitor ‑ QHD / 2x Samsung SSD 850 EVO 500GB / 1x Samsung SSD 860 EVO 1000GB / 5 other regular hd's with up to 10 terabyte capacity each / Windows 10 Pro 64-bit / Gigabyte Z370 AORUS Gaming 5 Motherboard

Share this post


Link to post
Share on other sites

Update:
(September 16, 2014)

  • Upgraded WingFlex.

http://forum.outerra.com/index.php?topic=2862.0


We are all connected..... To each other, biologically...... To the Earth, chemically...... To the rest of the Universe atomically.
 
Devons rig
Intel Core i7 8700K @ 5.0GHz / 32.0GB G.SKILL TridentZ Series Dual-Channel Ram / ZOTAC GAMING GeForce® RTX 2080 Ti Triple Fan / Sound Blaster Z / Oculus Rift VR Headset / Klipsch® Promedia 2.1 Computer Speakers / ASUS ROG SWIFT PG279Q ‑ 27" IPS LED Monitor ‑ QHD / 2x Samsung SSD 850 EVO 500GB / 1x Samsung SSD 860 EVO 1000GB / 5 other regular hd's with up to 10 terabyte capacity each / Windows 10 Pro 64-bit / Gigabyte Z370 AORUS Gaming 5 Motherboard

Share this post


Link to post
Share on other sites

Interesting!  B)


Flight simulation is the virtual materialization of a Dream....

 

 

Share this post


Link to post
Share on other sites

Not bad at all. Obviously still a very long way to go but this is a definite few steps forward.


ASUS ROG STRIX Z390-E GAMING / i9-9900k @ 4.7 all cores w/ NOCTUA NH-D15S / 2080ti / 32GB G.Skill 3200 RIPJAWS / 1TB Evo SSD / 500GB Evo SSD /  2x 3TB HDD / CORSAIR CRYSTAL 570X / IPSG 850W 80+ PLATINUM 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
  • Donation Goals

    AVSIM's 2020 Fundraising Goal

    Donate to our annual general fundraising goal. This donation keeps our doors open and providing you service 24 x 7 x 365. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. We reset this goal every new year for the following year's goal.


    53%
    $13,405.00 of $25,000.00 Donate Now
×
×
  • Create New...