Graphics.ExcludeAModelFromAView - lordmundi/wikidoctest GitHub Wiki
Exclude a Model from a View
« Making a Model Reflect the Environment | EDGE User’s Guide | Exclude A Model From Casting Shadows »
In certain cases (such as a cockpit mockup), the facility will want an eyepoint in the scene but remove models from the view (because the cockpit itself is providing the obstruction geometry). Sometimes, instead of excluding geometry, you may just want certain displays to use different models for a node than the other displays are using.
To do this, you utilize the "model_changes" block. Place a block in your display context in your user.cfg called "model_changes". This will go in the display context of your choosing at the level "DSP_CONFIG -> DISPLAY -> <DISPLAY_CONTEXT_NAME> -> model_changes
".
This block will let you redefine the model used for a node. To remove a model from the display, just change the model file to be "NULL". For example, the following will remove the forward half of the CEV command module:
...
DISPLAY
{
MODEL_EXCLUDE_TEST
{
model_changes
{
# A test to remove some geometry from this display context
CEV_CM_SIDE_WIN1 model(NULL)
CEV_CM_WIN1 model(NULL)
CEV_CM_SEATS model(NULL)
APAS_CEV model(NULL)
APAS_RING_EXT_CEV model(NULL)
CEV_CM_top_hatch model(NULL)
APAS_ACTIVE_CEV model(NULL)
CEV_APAS_CABLE_1 model(NULL)
CEV_APAS_CABLE_2 model(NULL)
CEV_APAS_CABLE_3 model(NULL)
CEV_APAS_ROD_11 model(NULL)
CEV_APAS_ROD_12 model(NULL)
CEV_APAS_ROD_21 model(NULL)
CEV_APAS_ROD_22 model(NULL)
CEV_APAS_ROD_31 model(NULL)
CEV_APAS_ROD_32 model(NULL)
}
...
With these settings, any EDGE instance that is specified to use the "MODEL_EXCLUDE_TEST" as the display context will have those models removed.
Here is a screenshot of two clients hooked up to the same manager, with one running a display context that performs the above model changes and one that doesn't:
« Making a Model Reflect the Environment | EDGE User’s Guide | Exclude A Model From Casting Shadows »