zihamesh Posted June 10, 2015 Share Posted June 10, 2015 Hi, I'm looking for some suggestions. I'm working on a model for a motor glider that has an engine mounted on a strut that can be folded back into the fuselage. Something like the ASH 25 mi (This you tube shows exactly want I want ). I can animate the engines folding & unfolding using say the door 2 animation tag, but I only want this to happen if the prop is stopped. Similarly I want the to stop the prop from spinning unless the engine strut is in the erect position. Any ideas on how I can implement this interlock would be appreciated. Thanks, Anton Link to comment Share on other sites More sharing options...
keefpee Posted June 11, 2015 Share Posted June 11, 2015 I think you will have to create an xml gauge within your mkmdl.parts file if using Gmax. Unfortunately I'm not very good at creating those & it takes me umpteen tries to get them to work. HTH & good luck Keith Link to comment Share on other sites More sharing options...
PAULCRAIG Posted June 12, 2015 Share Posted June 12, 2015 I agree with Keefpee, you will have to create an entry in the modeldef.xml (FSX SDK) or makemdl.parts.xml (FS9 SDK) for the animation of the engine folding mechanism, maybe prop_still could be the variable that initiates the retraction animation. Link to comment Share on other sites More sharing options...
zihamesh Posted June 16, 2015 Author Share Posted June 16, 2015 Thanks for both of your inputs. I can see some Boolean logic in modeldef.xml so that does look promising, but it looks like I need to read the manuals. For what its worth, I was thinking of using the tailhook animation as I'd like the option of having the engine erect and stopped. On thing I did see was that the stock F18 disables wing folding in flight, so conditional animations are possible. Link to comment Share on other sites More sharing options...
zihamesh Posted June 16, 2015 Author Share Posted June 16, 2015 After a quick look, and I could be wrong, but I'm guessing I need to create a new animation using modeldef and use it's tag in gmax for the erect / park animation. Link to comment Share on other sites More sharing options...
keefpee Posted June 17, 2015 Share Posted June 17, 2015 Not used it myself, but I think there is a sequence for prop feathering, maybe you could use that? Not sure if it stops the prop first though. It would be best to read through the SDK, although its hidden more so than in FS9. HTH Keith Link to comment Share on other sites More sharing options...
n4gix Posted June 19, 2015 Share Posted June 19, 2015 Honestly, I suggest posting your question at FS Developer (http://fsdeveloper.com) since that is where the majority of modelers hang out and share tricks. :cool: Bill Leaming http://smileys.sur-la-toile.com/repository/Combat/0054.gif Gauge Programming - 3d Modeling Military Visualizations Flightsim.com Panels & Gauges Forum Moderator Flightsim Rig: Intel Core i7-2600K - 8GB DDR3 1333 - EVGA GTX770 4GB - Win7 64bit Home Premium Development Rig1: Intel Core i7-3770k - 16GB DDR3 - Dual Radeon HD7770 SLI 1GB - Win7 64bit Professional Development Rig2: Intel Core i7-860 - 8GB DDR3 Corsair - GeForce GTS240 1GB - Win7 64bit Home Premium NOTE: Unless explicitly stated in the post, everything written by my hand is MY opinion. I do NOT speak for any company, real or imagined... Link to comment Share on other sites More sharing options...
zihamesh Posted June 25, 2015 Author Share Posted June 25, 2015 Thanks for everyone's help (and thanks for the FS Developer suggestion). I've now got things to work (see my youtube vid ), still one wrinkle to work out in that I can start the engine while in its folded position, but the running engine isn't visible, which is sort of OK for now. For the record I've added the following to my modeldef.xml and engine_erect 100 (A:EXIT OPEN:1,percent) 0 == if{ 1 } els{ 0 } (A:GENERAL ENG RPM:1,degrees per second) 0 > if{ 1 } els{ 0 } || if{ 1 } els{ 0 } engine_fold 100 (A:EXIT OPEN:1,percent) 0 > if{ 1 } els{ 0 } (A:GENERAL ENG RPM:1,degrees per second) 0 == if{ 1 } els{ 0 } && if{ 1 } els{ 0 } EXIT OPEN:1 percent engine_errect_still 100 (A:EXIT OPEN:1,percent) 0 == if{ 1 } els{ 0 } (A:PROP MAX RPM PERCENT:1, percent) 6.25 engine_errect_running 100 (A:EXIT OPEN:1,percent) 0 == if{ 1 } els{ 0 } (A:PROP MAX RPM PERCENT:1, percent) 6.25 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.