Wind Rotation Help please

#1
Gday all.
After reading a previous post here by Arno , Nick and Dick, ive attempted to create a flag the rotates to wind.

I can display the flag and get it to rotate to wind but i still have the Orig flag showing.

cant fathom where ive gone wrong but would appericiate help .

source code is attached .

rgds Jeff
 

Attachments

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#2
Hi Jeff,

Remove this line:

Code:
BGL_CALL_32 flag_MasterScale_1        ; Node 1 - MasterScale
The tutorial says you should replace it with the POINT_VICALL_32 command, if you put them both in there you will indeed get two flags :D.
 
#3
Gday Arno, thks for the tip, worked 100%, i did however note as per Dicks sample in a previous post for the XML file that it seems that the rotation ( 2nd ) object needs to be called first in the XML code with the slight Bias Offsets for it to work smoothly.

Code Example:

<?xml version="1.0" encoding="iso-8859-1"?>
<FSData version="9.0" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation="bglcomp.xsd">
<SceneryObject lat="38.774542" lon="-9.091799" alt="0" pitch="0" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="SPARSE">
<BiasXYZ biasX="1" biasY="-1" biasZ="1" />
<LibraryObject name="91B22178463EF2C88D683FB472421D40" scale="0.001" />
</SceneryObject>
<SceneryObject lat="38.774542" lon="-9.091799" alt="0" pitch="0" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="SPARSE">
<LibraryObject name="91B22178463EF2C88D683FB472421D40" scale="1.0" />
</SceneryObject>
<ModelData name="91B22178463EF2C88D683FB472421D40" sourceFile="flag.mdl" />
</FSData>


End Sample Code

Again, thks to Arno and Dick for the Info.

rgds Jeff
 

Attachments

Last edited:

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#4
Yes, that is the old bug. If you only place one rotating object it does not rotate. Therefore at least two need to be on your screen. If you only need one, then you can make the second one smaller and hide it in a hangar or so :).
 

rhumbaflappy

Moderator
Staff member
Resource contributor
#5
Hi Jeff.

As you found, the way I handled the problem was to place a tiny copy of the original MDL. I found I couldn't use the same location... but it must be very nearby, as the 2nd rotation must be in the same viewport.

It's too bad this bug exists from version to version of the sim. :(

I'm hoping the next version of FS will update and resolve the animation and conditional triggers for us. All this playing around with ASM code is distracting from the fun of placing animated creations in the sim. Wouldn't it be nice to be able to do everything from within gmax, or another object creation program?

Dick
 
#7
I agree Dick, to be able to create an animation that would react to weather without hacking ASM code wich i personally find difficult would be sensational.

I must admit tho, due to the efforts of yourself, Gerrish,Goran, Luis, Arno and many others i have come a long way in 3 yrs by saving the snippets of code you have all presented for Scasm that have enabled me to create some wonderfull stuff with FSDS , Sbuilder and Scasm. Now ive delved into Gmax, its a start all over again and something else to learn after hours of studying to understand what im doing. Keeps the Brain challenged wich i enjoy but at times id love to spend more time flying :laughing: .

Nick, im sure MS are aware and like any good marketing company, release as much info as is required ( read, new hardware versions or should we say eg: latest printer or digital cam haha ) to ensure market share of a product.

One thing we shouldnt loose site of is that FS isnt open source and whilst we get frustrated at times, it is on the improve. I think one of the main areas is like to see improve is an expedited release of SDK's with a more detailed and exampled format that caters for those of us less experianced with code !

Still, it leaves a market for Payware and Freeware software that enhances the experiance that could easily be closed off to us, but on the positive side we have new Aircraft, Scenery , Design tools, Tutorials and a hobby ( obsession haha ) that keeps us off the streets :rotfl: :rotfl: !

better get back to the studying LOL :laughing: .

rgds Jeff :D
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#8
rhumbaflappy said:
I'm hoping the next version of FS will update and resolve the animation and conditional triggers for us. All this playing around with ASM code is distracting from the fun of placing animated creations in the sim. Wouldn't it be nice to be able to do everything from within gmax, or another object creation program?
That would indeed be cool.

But on the other hand it would also be sad. A lot of the fun would be gone if I could no longer tweak and play with the ASM code. I find the techniques behind more challenging than the actual scenery created I think :D.
 
Top