• 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.

Difference between FSX and FX Editor

Messages
32
Country
france
Hi,
While creating light effects for my scenery LFSN, I noticed that there are great differences (color, shape) between the effect displayed with the SDK FX Editor (top left on the image) and the same effect once in the scenery (bottom right on the image).
Anyone also noticed that before ? And what to do to really get the 'star' effect just as it is supposed to be set in the fx file (uv1 0 0 and uv2 0.5 1, using fx_2.bmp as the texture, Alpha set to 255 and Additive) ?
 

Attachments

  • fx_diff.jpg
    fx_diff.jpg
    99.1 KB · Views: 990
Hello:

IIUC, this may be sorted out by examining a few Effect (*.Fx) files, as discussed in FS Special Effects SDK docs: :idea:

https://msdn.microsoft.com/en-us/library/cc526969.aspx#InsertMenu


1.) FSX SDK Doc "Creating Special Effects.html" > "ParticleAttributes.0" > "uv1="

file:///[FSX SDK install path]/Environment%20Kit/Special%20Effects%20SDK/Creating%20Special%20Effects.html#uv1=

"uv1=0.00, 0.50
The location of the lower-left corner of the texture on the texture page (X, Y) expressed as percentages. The lower-left corner of this texture starts at the left side of the page and 50 percent up its side.
"


file:///[FSX SDK install path]/Environment%20Kit/Special%20Effects%20SDK/Creating%20Special%20Effects.html#uv2=

"uv2=0.50, 1.00 The location of the upper-right corner of the texture lies on the texture page (X, Y) expressed as percentages. The upper-right corner of this texture is 50 percent to the right and at the very top of the page. See the diagram below."


ic9282-jpg.31693



2.) [FSX install path]\Effects\fx_navyel.fx


FYI: Effect 'basic' and Effect 'controller' *.fx files (including those from OrbX) can be opened / examined in Windows NotePad instead of using FSX SDK FX Tool etc. :wizard:

< Sub-section excerpt: "fx_navyel.fx" >

[ParticleAttributes.0]
Blend Mode=2
Texture=fx_2.bmp
Bounce=0.00
Color Start=150, 150, 0, 1
Color End=150, 150, 0, 0
Jitter Distance=0.00
Jitter Time=0.00
uv1=0.00, 0.00
uv2=0.01, 0.01

X Scale Goal=0.00
Y Scale Goal=0.00
Z Scale Goal=0.00
Extrude Length=0.00
Extrude Pitch Max=0.00
Extrude Heading Max=0.00


3.) [FSX install path]\Effects\Texture\fx_2.bmp < ...see image above under "1.)" >



AFAIK, in other (ex: terrain / landclass scenery or MDL-based) scenery object texture file scenarios, FS bitmap pixel coordinates are referenced as starting at the Upper Left corner, and ending at the Lower Right corner.

But Effects pixel coordinates are referenced as starting at the Lower Left, and ending at the Upper Right corner of a mapped texture bitmap.

< Perhaps because Fx-mapped texture BMPs are "vertically-flipped" and FS reads them from a 'meta-object' DirectX graphics buffer address ? :scratchch >


ic15831-jpg.31694



PS: For info on Effect transparency, see...

4.) FSX SDK Doc "Creating Special Effects.html" > "ParticleAttributes.0" > "Blend Mode="

file:///[FSX SDK install path]/Environment%20Kit/Special%20Effects%20SDK/Creating%20Special%20Effects.html#Blend Mode=


"Blend Mode=1/2/3

Blend mode specifies which blending mode is used to display the texture, which should be one of:

0: No Alpha

1: Alpha blending

2: Additive blending

3: Multiply blending



Alpha textures are full color and include a transparency mask (alpha channel).


Additive textures, on the other hand, have no alpha channel. The transparency of an additive texture is based off of color values within the texture. Color values in the texture are added to the background color. If an additive texture is triggered against pure white, nothing happens because the values are already maximized at 255, 255, 255, which represents the RGB value for white. Any part of the texture that you want to be invisible must be pure black
< at 0,0,0, > (or else you’ll just get expanding squares). Additive textures are best used when the effect is simulating something bright—like fire or a light."



[EDITED]

5.) FSX SDK Doc "Creating Special Effects.html" > "ParticleAttributes.0" > "Color Start="

file:///[FSX SDK install path]/Environment%20Kit/Special%20Effects%20SDK/Creating%20Special%20Effects.html#Color Start=


"Color Start=000, 000, 000, 000

The initial color of a particle. The first three numbers define the red, green, and blue (RGB) values and the fourth number specifies the amount of alpha transparency (R, G, B, [00-255])."



6.) FSX SDK Doc "Creating Special Effects.html" > "ParticleAttributes.0" > "Color End="

file:///[FSX SDK install path]/Environment%20Kit/Special%20Effects%20SDK/Creating%20Special%20Effects.html#Color End=


"Color End=000, 000, 000, 000

The final color of a particle. The first three numbers specify the red, green, and blue (RGB) values, and the fourth number specifies the amount of alpha transparency (R, G, B, [00-255])."


[END_EDIT]



NOTE: Alterative MS-FSX / ESP URL for Special Effects SDK Documentation:

http://msdn.microsoft.com/en-us/library/cc526969.aspx#Properties


Hope this might help with mapping / displaying a texture 'cell' area from "fx_2.bmp" with the desired transparency ! :)

Regards,

GaryGB
 

Attachments

  • IC9282.jpg
    IC9282.jpg
    5.3 KB · Views: 1,102
  • IC15831.jpg
    IC15831.jpg
    7.9 KB · Views: 1,060
Last edited:
I see difficult to pick the four texture effects wich are in the bottom right corner, which should be his values?,
And thanks for the usefull information.
Interesting this effects stuff, but a little compliacted :confused:
 
Back
Top