• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    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.

Attached effects displaced

Messages
73
Country
yugoslavia
Hi developers. I've been searching the fsdeveloper for topic that discus topic that I have but without any successes...
Anyhow I wanted to make library with reflecting objects like taxiway lights, light poles, runway lights, etc. to use them in multiple scenery projects.
I know how to attach effect through the GMAX/3DS and assign DAY/NIGHT control. That's not the problem.
Actually I got models (single models of different types of taxiway lights with effect attached) and I'm happy with their look. Then I have placed them using whisplacer, but...
Sometimes light effects doesn't show up at all on some of those models and sometimes effect are displaced few hundred meters in the air.
:banghead::banghead:

I read somewhere that ''earth curvature'' correction in MDCX can help but it is reasonable to do when you have all those lights in one MDL.
I want to have single light model with effect to use it on multiple airports. Therefore earth curvature correction isn't logical approach. Or maybe I'm wrong?!

I have also tried to separate light model and effect and to place only effects using whishplacer and ADEX. Guess what? Effects were again 100m in the air after fourth loading of my scenery.

I'm facing dead end and I don't have the solution for my problem. If there's any thread that discuss this problem please give me a link or give me a tip how to correct this strange phenomenon.

Tnx in advance.
 
So you've got a model with an attached effect in the right place, exported it and compiled it into a .bgl library, then placed it with whisplacer?

I assume whisplacer is the issue. Try importing the library into ADE and place the objects in there.

You don't need to correct a single light for the curvature of the Earth as long as it's at 0,0.
 
So you've got a model with an attached effect in the right place, exported it and compiled it into a .bgl library, then placed it with whisplacer?

I assume whisplacer is the issue. Try importing the library into ADE and place the objects in there.

You don't need to correct a single light for the curvature of the Earth as long as it's at 0,0.
Nope... I don't think whisplacer is causing problems since I've get the same phenomenon with ADE. I'm placing mdls from library bgl. The same is when I've tried to place only effect of ground illumination (not attached to object). To summarize... Effects have tendency to float in FSX no matter if they are attached to the object or placed using effect placement via whisplacer or ADX.
 
Hi,

As long as all your objects are designed so that the light is at the origin of the axes, the earth curve should not give you trouble in this case.

So the offset should have another reason then. Did you check with ModelConverterX that the attached effect is actually where you expected it?
 
Oh that's the catch. So the effect should be at x,y,z=0,0,0...? I have tried to preview my mdl in MCX and it looks fine. But what if I want to create light pole with two effects which are offset ?
 
The curvature of the Earth should only displace something a few centimetres over a kilmetre or so. It shouldn't be noticeable even on a terminal 100m long, you can have multiple attachpoints over this.
 
That's exactly what I have been done, but i still have the problem whith displacement...
 
How are you attaching the effects? Are you using the multiple effects boxes scripts?

How large are the boxes you are assigning the effects to? I make mine about 0.01m square.

If it's too big it usually appears at one corner.
 
my box is slightly bigger and I use only one effect since I want only day/night variation not dusk/dawn at this test phase. Therefore I don't need multy effect on one object. I'm using attach tool from FSX sp2 sdk.
 
Ah! What script are you using?

If you use the attach tool script for an effect you can only use one instance of the effect.

The multiple effect box script is for many instances, and you need to run two, one for day/night, one for dusk/dawn if that's what you want.

This is probably the issue.

Here's the script, put it into notepad and save in GMAX/Gamepacks/FSX/Scripts! Call your boxes x, x01, x02 x03 etc. (or change the script where it says $x*

And put the effect name where it says so.



strAttachNumber = 0
for obj in $x* do
(
obj.name = ("light_day_night" + (strAttachNumber as
string))
strBufferText = ("FSXML = <?xml version=\"1.0\"
encoding=\"ISO-8859-1\" ?> <FSMakeMdlData
version=\"9.0\"><Attachpoint name=\"attachpt_whitelight" +
(strAttachNumber as string) + "\"> <AttachedObject> <Effect
effectName=\"INSERT EFFECT HERE\" effectParams=\"DAY=0;NIGHT=1\"/>
</AttachedObject> </Attachpoint></FSMakeMdlData>")
setUserPropBuffer obj strBufferText
strAttachNumber += 1
)






Here's a link if that wont work due to formatting changes...
https://docs.google.com/file/d/0B_aShesvH9iYZW9aVUt1cV9uZ00/edit?usp=sharing
 
Last edited:
Actualy I have managed to attach effects using MDCX. So far it looks good. The script you shared just didn't work. I have managed to create attachbox but during export no effect is placed in that place despite the name of the box was changed... I compleatly understand the logic of the script but still there is problem with export somwhere... I have managed to create light effects with semi transparent reflective textures. I will make small tutorial since its easier to controle textures than effects...
 
Oh okay.

The script does work, you need to make sure that you have the boxes named appropriately and you are referencing an effect that you have in your effects folder.

You need to "run" the script also, not use the attach point.
 
Back
Top