Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.
By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.
I'm not sure but I think I heard that the asobo lights are based in LOD 11 of 14 available LODs. If you give that a shot it might be the solution. Maybe somebody else can confirm the LOD structure or you find something in the present sdk documentation. Good luckNo luck. Tried to apply a 9X9 rectangle, tried to add some LODS. The same happens.
Any ideas how to increase loading distance?
Nevermind, got it to work. I draw a 20X20 rectangle 1.5 m below my light model. Created LOD by using MCX. Now it works!I'm not sure but I think I heard that the asobo lights are based in LOD 11 of 14 available LODs. If you give that a shot it might be the solution. Maybe somebody else can confirm the LOD structure or you find something in the present sdk documentation. Good luck
Hi,yesterday I also started to play with <modelbehaviors>, love it already!
you have to add a "simobject" asset into your scenery, setup sim.cfg and model.cfg in models folder(s).
for folder structures I recommend to have a look at "MSFS SDK\Samples\WindsockSample\"
example xml code:
XML:<?xml version="1.0" encoding="utf-8"?> <ModelInfo guid="{8d9d2120-a6dd-4c30-b0f4-bf67378809cc}" version="1.1"> <LODS> <LOD MinSize="0" ModelFile="gokart_1.gltf"/> </LODS> </ModelInfo> <ModelBehaviors> <Component ID="node1" Node="node1"> <Visibility> <Parameter> <Code>(E:LOCAL TIME, Seconds) 36000 >= (E:LOCAL TIME, Seconds) 64800 <= and (A:AMBIENT PRECIP STATE, mask) 4.0 < and (A:AMBIENT TEMPERATURE, celsius) 10.0 > and (E:Time of Day, enum) 2 < and if{ 1 } els{ 0 } </Code> </Parameter> </Visibility> </Component> </ModelBehaviors>
Ah ok thanks. should probably read the sdk documentation more often
All I can do is give you one of my xml which is working. Maybe something is weong with your node name?
XML:<?xml version="1.0" ?> <ModelInfo guid="{f3c59f69-a2a8-443b-aba3-dfe6b6ec9ee7}" version="1.1"> <LODS> <LOD MinSize="0" ModelFile="steffhundEND.gltf"/> </LODS> <Animation guid="f111307b-0e32-4e24-8a77-9e4d21d6a781" name="Action" type="Standard" typeparam="AutoPlay" typeparam2="Action"/> </ModelInfo> <Behaviors> <Component ID="hund" Node="hund"> <Visibility> <Parameter> <Code>(E:LOCAL TIME, Seconds) 36000 >= (E:LOCAL TIME, Seconds) 64800 <= and (A:AMBIENT PRECIP STATE, mask) 3.0 < and (E:Time of Day, enum) 2 < and if{ 1 } els{ 0 } </Code> </Parameter> </Visibility> </Component> </Behaviors>
Code:<Code>(E:LOCAL TIME, Seconds) 36000 > (E:LOCAL TIME, Seconds) 41400 < and (E:LOCAL TIME, Seconds) 54000 > (E:LOCAL TIME, Seconds) 63900 < and or if{ 1 } els{ 0 } </Code>
Try this @AnnaM
Inviato dal mio Mi 9 Lite utilizzando Tapatalk
ahh yeah Anna, the reason why it was not working is because I was writing from mobile, and the forum translates "greater" and "less than" operatorThank you Mamu, that's splendid!
The 36000 > and 41400 < threw up an error, I changed it to the following and got it working:
<Code>(E:LOCAL TIME, Seconds) 36000 >= (E:LOCAL TIME, Seconds) 41400 <= and (E:LOCAL TIME, Seconds) 54000 >= (E:LOCAL TIME, Seconds) 63900 <= and or if{ 1 } els{ 0 }</Code>
Really appreciate the guidance, thanks again!
Anna
<Component ID="node1" Node="node1">
<Visibility>
<Parameter>
<Code>
(A:SURFACE TYPE, enum) 8 == if{ 1 } els{ 0 }
</Code>
</Parameter>
</Visibility>
</Component>
<Component ID="node1" Node="node1">
<Visibility>
<Parameter>
<Code>
(A:SURFACE CONDITION, enum) 3 == if{ 1 } els{ 0 }
</Code>
</Parameter>
</Visibility>
</Component>
thanks, yes, sadly its "node", checked several times. i dont know what happens, the asset loads (I can clearly see as its hitbox changes), but the item stays hidden.Hey did you double check that the name of your sledge object in blender/3DS is called "node1"? I assume that is not the case but the reason. As indicated on your behaviour screen, your statement itself is ok. So my advice, check the name!
Regards Guido
misstype, "node1" ofc. im not at home, i will attach it tomorrow, thanks!send the blender file pls, node or node1?