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

Transparancy weirdness

Sidney Schwartz

Resource contributor
Messages
514
Country
us-oregon
This concern a Sketchup object converted by MCX for use with FS9. The sides of the passenger entryway are a native SU texture made semi-transparent in SU. The first pic shows an overhead view with the red X representing the approximate viewpoint the other two pics were taken from.

Looking through the transparent texture gives unexpected results. It seems that anything that is part of the same model--the floor of the entryway and the part of the terminal building behind the entryway--are always partially obscured as they should be. Objects that are not part of the same model--the small shelter, the flag poles, the shuttle buses, etc.--are usually, but not always, not obscured at all...the sides of the entryway usually become completely transparent over those areas.

The angle of view has an effect. In pic #2 the shuttle bus on the right is partially obscured, but when I shift my view slightly as in pic #3, it becomes completely unobscured like the other objects. The blue hangers in the background are always properly obscured not matter what the angle of view is.

With the exception of the shuttle busses, all these objects were made using SU and converted using MCX.

I know next to nothing about texture properties and the various options in MCX. I don't know if this is some random fluke, or if there is some setting in MCX that would fix it. Or maybe using a bitmap in SU instead of a native texture. I rarely use transparent textures. The few other times I've done so with Gmax there were no problems.

Any suggestions would be appreciated.
 
Last edited:
Hi Sidney,

I struggled with those problems as well and I am not sure if I have resolved them or not.
I think your problem is due to the fact that the real transparency settings for your texture have to be set in MCX and not in GSU.
To keep it simple (and I would not know how to explain it more technically anyway), and as an example, suppose you have taken your semi transparent GSU texture and converted this jpeg into DDS.
You will then have to set the following in MCX:
blend diffuse texture with diffuse alpha = true
diffuse texture = translucent.dds (for instance)
set default transparent: click on it
Now that you have your translucent.dds texture entered you can export but...
You still have to edit this texture and add an alpha channel to it (semi translucent would be a grey color).
If that is not the problem then it might be a question of making sure the texture in GSU is double sided?
If that does not help, it is maybe a drawcall problem?
Just trying to help out because I am still struggling with the ins and outs myself.
Reading your question again, I noticed (too late ) it is for FS9. Then just substitute the DDS extension by BMP and I hope it is OK to try the suggestions.
 
Last edited:
Thanks, Robystar. I've used alpha channels without any problems, so maybe that's the way to go. Or I could just make the stupid textures opaque. :)
 
Hi,

Sounds like a drawing order problem. The transparent black polygons do they use colours or a texture? I thought the colours get the same parameters as the textures in ModelConverterX, but I would have to check that. Else that could have in influence on the drawing order of them.
 
OK, let me check if that works OK.

Oh wait, you are using FS2004 as well right? Then most of the FlightSimX material settings that sort the drawing order have no influence for you.

The drawing order with other objects is determined by the distance to the reference point. So if you see your buses, etc through the gate, then I guess they are closer to the viewer than the reference point of your terminal.
 
Hmm. Arno, the drawing order theory doesn't seem to hold up. The first pic shows the object preview in MCX with the bounding box visible. I'm assuming the ref point is within the bounding box, correct? The two lamps in the very front have transparent glass. This time I used a texture instead of a color for the transparent material.

In the second pic as we look through the glass we are also looking through the entire building and can see the airport's beacon tower. As you can see in the third pic, the beacon tower is some distance away. I find it difficult to believe that the ref point of the beacon is closer to the observer than the ref point of the building. And of course we're also seeing the ground behind the building as well.

To make things even more interesting, the observation tower on top of the building also has tranparent glass made the same way. The only difference between the glass of the tower and the glass of the lamps is the gray value of the alpha channels...the tower glass is a bit more opaque. The transparency of the glass in the tower seems to work perfectly no matter where I position the viewpoint.

The only other thing I can thing of at this point is to import the mdl into Gmax and export it to a new mdl and see of that makes any difference. Do you have any other suggestions? :confused:
 
Last edited:
Hi Sidney,

I think I did not explain it clearly :). You have two types of drawing order.

Drawing order between objects

Different objects (MDL files) are drawn in the order of the distance from the view point. The ones further away are drawn first and the closed ones last.

This is what you had in your previous pictures. The reference point of the total object is where the axes meet in ModelConverterX in the preview. Those buses would have their reference point closer to the view, than the total terminal building and therefore they were drawn later. This gave trouble with sorting the Z-order and therefore they showed through the gate.

This logic only applies between different objects.

Drawing order within objects

What you see in your last picture is a drawing order problem within the same object. Due to this sorting problem within your object you see a whole and by accident you can that object in the background. But it is not that object showing through your building, it is the lamp texture that has the problem.

This would in general be solved by making sure that the things you need to see through the transparent texture are drawn first. So in this case you need to draw the lights last.

FS2004 MakeMDL sorts the textures alphabetically, so if the lamp texture would be the last one in the alphabet I think it should work already.

Hope this makes it a little more clear,
 
Very useful info, Arno. :)

In this case the textures are named bettis0, bettis1.....bettis10, with bettis 10 being the lamp textures. Does makemdl sort so that bettis10 will be first on the list or last? In Windows Explorer bettis10 is last when the list is sorted.

I tried importing the mdl into Gmax and exporting to a new mdl from there. No problems at all with the transparencies. I used the same textures, so wouldn't makemdl have sorted them in the same order as it did for the Sketchup version in MCX?

There's also the angle issue. I can look at the lamp from one angle and it will not cause problems with the building textures behind it. I shift the angle slightly and the problem occurs with the very same building textures.

It also occurs to me that if the problem was caused by the drawing order of textures within the model, we'd see this sort of problem all the time. I don't know about anyone else, but because I was ignorant of this it never occured to me to figure out the order in which textures should be drawn and name them accordingly. In spite of that, this is the first time I'm had this problem after making hundreds of objects. It seems significant to me that it happens when makemdl compiles from MCX but not from Gmax.

More clues. ;)
 
Last edited:
OK, finding out a bit more. I'm going to try three methods of creating the transparent lamp material in both Gmax and SU...

1. Use a color and assign it a tranparency value within the program.

2. Use a texture and assign it a transparency value within the program.

3. Use a texture and assign it a transparency value via the alpha channel.

Looks like method (3) causes the problem to also appear with the Gmax model. I'll do some more testing this evening.
 
Hi,

Let me know what you find. It could be that I have to write the X files differently from MCX to have less issues with this.

It is quite "normal" that the drawing order problem only shows from certain angles. That is because the drawing order is fixed in the MDL and from some directions it will be the right one, but not from all.

When using transparent colours, I think MakeMDL already sorts them differently by default. So that would explain why it only goes wrong when using the texture with an alpha channel. I am not sure about the sorting of textures with those numbers, you would expect 10 to be at the end, but to be sure I would look in the ASM code.
 
Hi,

My understanding is that the X file exporter from GMAX sorts the parts so that any parts with transparency are drawn last. What MakeMDL does with this I don't know. So if your X file creator is not putting the transparent objects/textures last then that might be the problem?

Hope this helps,
 
After much experimenting, I was able to get the transparent material to work correctly except with the yellow terminal building object in my original post. That's the same object I've had other texture problems with due to its relative complexity. The lantern objects now work OK, and some simple test objects I made also worked. As for the yellow terminal, I'll have to settle for making those transparent textures opaque instead.
 
Hi,

My understanding is that the X file exporter from GMAX sorts the parts so that any parts with transparency are drawn last. What MakeMDL does with this I don't know. So if your X file creator is not putting the transparent objects/textures last then that might be the problem?

Let me check that, my understanding was always that MakeMDL does this kind of sorting. But if in the gamepack it is done in the X file already, I have to adjust MCX for that.
 
Hi Arno,

Well, now that you mention it I may not be 100% certain that it is not MakeMDL, but I was under the impression it was in the X file. I guess someone would need to check that...
 
Back
Top