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

P3D v4 Trees and building shadows

Messages
123
How does p3d determine between which objects to classify under trees and buildings shadow casting settings checkbox? I had a some trees put via placement bgl which began casting shadows on enabling building shadow casting. Adding <noshadow/> flag in placement bgl affected only one type of tree model while other one continued to cast shadow.

Another thing I noticed that objects with placement information within them cast shadows without needing building/trees cast shadow checkbox to be enabled while those placed via placement bgl require it to be enabled. Is that normal p3d behavior as I would like to have only objects within the airport cast shadows without building shadows enabled in general for the outside autogen.
 
Another thing I noticed that objects with placement information within them cast shadows without needing building/trees cast shadow checkbox to be enabled while those placed via placement bgl require it to be enabled.
Could you show some examples of this or provide any more back ground? It sounds very interesting, thanks.
 
It seems my above theory was incorrect as some airport buildings/objects enable caste shadows via simobjects checkbox and others via the buildings checkbox regardless of placement information within or in separate bgl. It is unclear how p3d classifies some scenery objects as simobjects and others as buildings or trees, could not locate any info mentioned in the SDK regarding this.
 
Just a quick note about my experience. I use GMAX, and export with the FSX gamepack. This gives me shadows in Prepar3d controlled as 'simulator objects'. However I normally use ModelConverterX to activate drawcall batching, and then the shadows are controlled by the 'buildings' setting.
Although I do this at the library BGL level, you could tweak individual models before adding them to the library, and you can certainly mix different library objects in a single placement file, so yeah, you could easily have a placement BGL with both types.
There are other issues which I normally deal with, related to these two different types-- which really mean the difference between older, LOD-capable models, and newer, drawcall batched models. But that's another discussion:)
 
Disabling drawcall batching does seem to make p3d treat those scenery objects as simobjects and cast shadows without the buildings checkbox enabled, presence of animation also has the same effect as mentioned on MCX blog. Then it would seem p3d does not have a direct way but infers from this if the object is likely to be used in static multiple instances in the sim and categorizes them into buildings. MCX also either appear to automatically disable drawcall batching when compiling models with large dimensions or it gets broken in the sim as they always remain under the simobjects shadows category.
Any idea based on what parameters p3d classifies objects into vegetation for shadows? Might these be limited to within autogen system only?
 
Yes, I'm always assumed that 'vegetation' shadows only refer to autogen, the same trees placed individually are really no different from other objects like buildings. There isn't a way to flag an object as a tree, apart from via autogen descriptions.
 
Back
Top