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

No shadows on custom objects

Messages
13
Country
spain
Hi everybody!
My first post, so be patient if I am repeating a common question. Of course I've previously searched throughout the forum but found no solution to my problem.
I am creating an airport for FS2004. The tools I use are:
- GMax with FS2004 gamepack to model the objects, apply textures and export to a mdl file.
- DXTBmp to convert texture files to Extended BMP DXT3 format.
- Airport Design Editor to place the objects in the scenery.

The problem is any object created by me and put on the default ground don't show aircraft or other objects shadows on them. For example, if I put lines and numbers on the default platform, when the airplane passes on them, its shadow disappears and the effect is far from realistic (I attach an image for better understanding). Another example, I have modeled a pavement (just a box with texture), and a streetlamp is besides. There's no shadow of the streetlamp on the pavement, but there is on the road, which is a standard taxilink.
I have searched for a reason for this and a solution, tried using AttachTool to create a platform, elevate the object a bit... nothing seems to work. And I know it is possible, since I have an airport with custume platforms on which shadows show.
Any suggestion?
 

Attachments

  • noshadows.jpg
    noshadows.jpg
    298.8 KB · Views: 538

jtanabodee

Resource contributor
Messages
3,921
Country
thailand
Did you export as FS2004.mdl?
Or you exported the model with FS2002 and tweak the code.

The platform or the object on the surface does not have shadow cast on it.
You need to tweak the code, asm code.
Or use Model Converter X and use ground polygon wizard to convert it into ground poly. The the object on the ground will have shadow cast on itself.
 
Messages
13
Country
spain
Thanks for your reply
I use the FS2004 Gamepack to export to mdl so I suppose it is FS2004.mdl
I don't know how to tweak the ASM code, when I export I only get a mdl file. Is that file the one I have to edit?
I have tried Model Converter X ground polygon wizard to convert it into a ground poly, but when I place the object in my scenery, I get flickering since its height is 0. I have modeled the object again elevating it 0.01 m, but when Model Converter X converts it to ground poly, it is again on the floor and I get flickering.
Besides, with Model Converter I get a .bgl file which (I suppose) I put in my scenery folder, but it's not a good tool to place the object in an exact place. Is there any way to import to ADE the bgl I get with Model Converter?
Sorry if I'm messing it all, but I am quite confused with this.
 
Messages
13
Country
spain
Well, I have already learned to get the ASM file, but when you say tweaking it, what kind of change should I do?
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
Country
netherlands
Hi,

You can't have ground polygons with correct shadows and the ability to place them with ADE or another placement tool. For ground polygons the coordinates directly have to be put in the bgl file, just like the fs2002 gamepack does.
 
Messages
13
Country
spain
Understood, Arno, thank you. Now I have been able to create a ground polygon with shadows cast on it. Great!
But I still have a doubt: I have modeled a pavement with a box shape, it is 25cm high and I would like it to show shadows too. I have cloned the top poly, moved a bit up and exported as a different object. After tweaking it to become a ground poly and placing it, this poly is on the floor, not on top of the pavement. How can I place it at 25 cm high?
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
Country
netherlands
Hi,

Getting the pavement correct will be hard. The ground polygon wizard of modelconverterx will always put ground polygons on the ground level.

If you would manually tweak you could keep the polygon at the right level, but making a polygon that is not at ground level a ground polygon will give visual problems. It will not be sorted correctly against the sides of your pavement.
 
Messages
13
Country
spain
Thanks again for your reply. Now that I feel more confident tweaking the ASM code I'm getting good results.
 
Messages
473
Country
hungary
Hi

I think creating groundpoly with Arno's gpoly wizzard is a dream, its a relief for complicated asm coding.
FS9 engine can not draw shadows on objects except groundpoly. Only FSX capable to draw shadow on scenery object with the setting 'volume shadow' but it has huge performance impact.
 
Top