Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
  Signup for free on our forum and benefit from new features!

FFDS Home | TIPS Section | Tutorials Section | Resources Section | Utilities Section

Military | FSDS | Jetliners | Real Planes Section | Gmax | Rotorcraft | Business | Civilian

  HomeHelpSearchLoginRegister  
 
 
Pages: 1 ... 4 5 6 7 
Send Topic Print
[WIP] Do-328 (Read 20610 times)
Reply #75 - 19th Jun, 2010 at 4:56pm

Björn   Offline
Spline Extruder
Do-328
Wismar (GER)

Gender: male
Posts: 180
***
 
Mathias wrote on 19th Jun, 2010 at 4:39pm:
Do you want the tab to actually "trim" the aircraft or do you just want the visuals?


The visuals will do for a start.


For actual trimming I'd have to get into SimConnect anyways (reduce the rudder effectiveness).
 

Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register
IP Logged
 
Reply #76 - 20th Jun, 2010 at 4:20am

Mathias   Offline
Spline Extruder
Jau!
Germany

Gender: male
Posts: 199
***
 
Ok, I'm sure the gurus will come up with a smarter solution but here goes:

You need two code bits, one for the springtab and another one for a controller.
You can implement the controller either as a piece of code into the model or alternatively as a gauge.
Each way has it's pros and cons.
Here is the model solution:

Firs the code for the springtab:

Code:
    <Animation name="rudder_spring_tab" guid="31E6E2B4-D2C5-4917-A95F-8D8E7E3C9D53" length="50" type="Sim" typeparam2="rudder_spring_tab" typeparam="AutoPlay" />

 <PartInfo>
  <Name>rudder_spring_tab</Name>  
  <AnimLength>50</AnimLength>    
   <Animation>  
     <Parameter>      
      <Code>(L:RudderSpringTab, enum) 25 *</Code>  
      <Lag>200</Lag>
     </Parameter>  
   </Animation>  
</PartInfo>	 



That's simply three positions:
pos 0 at keyframe 0 is full left deflection
pos 1 at keyframe 25 is neutral
pos 3 at keyframe 50 is full right deflection.
You can play with the LAG value to get the desired animation speed.
Animation length divided by Lag = animation speed in seconds.

Below is the controller code.
You would make a simple plane or triangle at a hidden spot of your model and apply it using the animation manager.
No need to actually add keyframes to it.


Code:
   <Animation name="rudder_spring_tab_controller" guid="4D5B0073-3FCC-4685-B04B-D7691CB2EC22" length="50" type="Sim" typeparam2="rudder_spring_tab_controller" typeparam="AutoPlay" />


 <PartInfo>
  <Name>rudder_spring_tab_controller</Name>  
  <AnimLength>50</AnimLength>    
   <Animation>  
     <Parameter>    
         <Code>
         -5 5 (A:RUDDER POSITION, percent) rng (A:AIRSPEED TRUE, knots) 161 &gt; or
         if{ 1 (&gt;L:RudderSpringTab,enum) }
         (A:AIRSPEED TRUE, knots) 160 &lt; (A:RUDDER POSITION, percent) -6 &lt; and
         if{ 0 (&gt;L:RudderSpringTab,enum) }
         (A:AIRSPEED TRUE, knots) 160 &lt; (A:RUDDER POSITION, percent) 6 &gt; and
         if{ 2 (&gt;L:RudderSpringTab,enum) }
         </Code>  
     </Parameter>  
   </Animation>  
</PartInfo>	  



Neutral rudder position is at 0 percent, left position are negative values, right position are positive values.
You see in the first part of the code that you a +-5 percent neutral range.
The deflection begins at -6, +6 degree deflection respectively.
You can play with tha values.
 

Mathias&&
IP Logged
 
Reply #77 - 22nd Jun, 2010 at 5:44pm

Mathias   Offline
Spline Extruder
Jau!
Germany

Gender: male
Posts: 199
***
 
Hat's Dir die Sprache verschlagen? Wink
 

Mathias&&
IP Logged
 
Reply #78 - 23rd Jun, 2010 at 11:12am

Björn   Offline
Spline Extruder
Do-328
Wismar (GER)

Gender: male
Posts: 180
***
 
Noch nicht ausprobiert.

Vitus hat mir erstmal noch meinen Standardcode aufpoliert; hab den aber noch nicht probiert.
Dein Ansatz wäre dann die zweite Lösung.
 

Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register
IP Logged
 
Reply #79 - 20th Jul, 2010 at 8:26pm

Björn   Offline
Spline Extruder
Do-328
Wismar (GER)

Gender: male
Posts: 180
***
 
Thanks for the code, Mathias!

I still need to tweak those numbers, but it works so far! And that's very, very good!
 

Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register
IP Logged
 
Reply #80 - 22nd Jul, 2010 at 7:55pm

Björn   Offline
Spline Extruder
Do-328
Wismar (GER)

Gender: male
Posts: 180
***
 
Nearly there...

Might need to bring the rainbow effect on the windows out more...
Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register

Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register

Now also available with APU.
Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register

Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register

The spoilers now appear to have actuators.
Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register

Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register

Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register

I can't get the landing lights sorted though. They do whatever they want...except being yellow and illuminate stuff.

Might be time to do those 3D lights...
 

Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register
IP Logged
 
Reply #81 - 23rd Jul, 2010 at 1:07am

Björn   Offline
Spline Extruder
Do-328
Wismar (GER)

Gender: male
Posts: 180
***
 
If you're a developer and reading this thread, take a look here:
Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register

Help would be greatly appreciated. Smiley
 

Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register
IP Logged
 
Reply #82 - 23rd Jul, 2010 at 11:11am

Fr. Bill   Offline
Inspecteur des Polygonnes
I used to have a life:
now I have GMax...
Hammond, IN

Gender: male
Posts: 5426
*****
 
Answered there...
 

Fr. Bill
Gauge Programming - 3d Modeling Eaglesoft Development Group Intel Core 2 Quad Q6600-4 GB DDRII Crucial PC6400-500 GB SATA-ATI Radeon HD2400 Pro 256MB
IP Logged
 
Reply #83 - 28th Jul, 2010 at 10:55pm

Björn   Offline
Spline Extruder
Do-328
Wismar (GER)

Gender: male
Posts: 180
***
 
"So this is what they call another endless night..." *Hums away*

Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register
 

Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register
IP Logged
 
Reply #84 - 9th Aug, 2010 at 12:36am

DaveNunez   Offline
Inspecteur des Polygonnes
Seattle, Washington

Gender: male
Posts: 504
*****
 
Looking sweet - planning a VC?
 

Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register&&Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register
&&
IP Logged
 
Reply #85 - 9th Aug, 2010 at 9:54am

Björn   Offline
Spline Extruder
Do-328
Wismar (GER)

Gender: male
Posts: 180
***
 
DaveNunez wrote on 9th Aug, 2010 at 12:36am:
Looking sweet - planning a VC?


Are you kidding?

If it wasn't for a VC I wouldn't have even started!  Cheesy


(There *is* a VC already, but it's merely a clone of the cockpit from the external model. Once I got the outside stuff done, I'll take care of the cockpit.)
 

Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register
IP Logged
 
Reply #86 - 3rd Sep, 2010 at 11:26am

Björn   Offline
Spline Extruder
Do-328
Wismar (GER)

Gender: male
Posts: 180
***
 
Just to support my latest post in Nate's Bell 407 thread...

A link to the latest pics of the 328. (Subject: Lighting)
Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register
 

Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register
IP Logged
 
Reply #87 - 23rd Nov, 2010 at 4:59pm

Björn   Offline
Spline Extruder
Do-328
Wismar (GER)

Gender: male
Posts: 180
***
 
Update...


Secondary lights:

Daytime - a weak ground splash and a weakly illuminated lamp (probably invisible due to the white livery):
Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register

Dusk - the lights growing stronger and more visible:
Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register

Dusk with rain - in areas with high humidity (rain, clouds) the light beams will become visible:
Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register

Nighttime - party on!
Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register

Nighttime with rain - beams!
Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register

Cabin lighting:
Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register


Modeled lighting is a tedious affair, but so much more flexible than simple night textures. (Variable intensity!)
 

Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register
IP Logged
 
Reply #88 - 4th Dec, 2010 at 3:15pm

Southwest   Offline
Point Pusher
I Love FFDS!

Posts: 25
*
 
Wow - nice work on the lighting effects Björn!
 
IP Logged
 
Reply #89 - 23rd Dec, 2010 at 8:02am

Björn   Offline
Spline Extruder
Do-328
Wismar (GER)

Gender: male
Posts: 180
***
 
Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register




Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register
 

Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register
IP Logged
 
Pages: 1 ... 4 5 6 7 
Send Topic Print