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

Object conditions

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
34,473
Country
netherlands
To continue a discussion started elsewhere...

I don't know whether this is the right place, but how can I insert conditions in *.x files for FS2004 to load certain textures only in winter or at Christmas, for instance?

Also, is it possible to do a different texture mapping at day and at night (i.e. if the night textures do not have the same proportions and coordinates of the day textures and therefor need different coordinates?)

Lastly, can one adjust any values in the *.x file to make the sides of a polygon whihc lies in the shadow look somewhat brighter? I think in FSX, those sides look much too dark, whereas the ground is too bright in contrast.
 
Hi Klaus,

That kind of conditions can not be added in the X file, because MakeMDL does not support that kind of functionality. You could add them by tweaking the ASM code that MakeMDL for FS2004 can create for you when you make the MDL file. After making the changes you need to recompile the ASM files to a new MDL file.

It is not advised to have night textures that are different from the day ons in coordinates. Theoretically it might be possible to do that by tweaking the ASM code, but it is not easy and during the time when the day and night texture are blended it will probably give you trouble.

The shading can be adjusted by changing the direction of the normals of the polygons. But you can not really change how the engine does the calculations of course.
 
Hi Arno,

Thank you for your quick reply. Yes, I think because of the blending it is better to change night textures so that they match day textures.

I understand what you mean by tweaking the asm code for mdl FS2004 version, but I have to admit I don't know how. Maybe it's too complex a problem to discuss in full length. Is there any explanation of the asm code for FS2004 or the *.x language where I can delve into?

Greetings,

Klaus
 
Hi Klaus,

If you look at the Wiki here you will see different articles about certain tweaks you can make in the ASM code. But it indeed requires a bit of background knowledge on how the code works.

If you have some specific tweaking questions, I guess it is easier to point you in the right direction. There is certainly no article that will tell you all there is to know :).
 
Hi Arno,

Thanks a lot for your advice. I think the mdl tweaker for fs2004 models will do the job for me (seasonal textures).
The only question is now: Are the mdl objects´made for FS2004 compatible with FSX , i.e. do they show up as they should? If so, my problem would be solved.

Best regards,

Klaus
 
Back
Top