There also used to be a workaround for using one DXDevice with multiple DXScenes.
Is this still needed?
I can check the SceneNode in the rendering step. If I get the scene node ParentDXScene, to which scene it will point to? To the master scene?
Code:
// WORKAROUND for using one DXDevice with multiple DXScenes
// We need to reset LastUsedFrameNumber stored in each effect
// This ensures that the effect will be correctly initialized for each DXScene.
// This will not be needed in the next version of DXEngine.
MainDXViewportView.SceneRendered += delegate (object sender, EventArgs args)
{
if (MainDXViewportView.DXScene == null) // WPF 3D rendering is used
return;
var allEffects = MainDXViewportView.DXScene.DXDevice.EffectsManager.Effects;
var effectsCount = allEffects.Count;
for (var i = 0; i < effectsCount; i++)
allEffects[i].ResetLastUsedFrameNumber();
};Is this still needed?
I can check the SceneNode in the rendering step. If I get the scene node ParentDXScene, to which scene it will point to? To the master scene?

