Skip to content

Cluster Display integration#1

Merged
wenzhang-unity merged 14 commits into
devfrom
unity/cluster-display-integration
Nov 21, 2022
Merged

Cluster Display integration#1
wenzhang-unity merged 14 commits into
devfrom
unity/cluster-display-integration

Conversation

@wenzhang-unity
Copy link
Copy Markdown
Owner

This PR adds logic to leverage lock-step execution of the Cluster Display package. This integration enables a wider range of multi-node rendering scenarios:

  • Enables physics and VFX
  • The Cluster API is available to propagate additional data from the emitter to the repeaters if needed

The integration uses the controller/follower setup in the RenderStream API.

Additional changes:

  • Fix a bug where the json manifest (which defines the camera object and remote parameters) does not get generated if there are no scene schange.

To Reviews:

Copy link
Copy Markdown
Collaborator

@FrederickUnity FrederickUnity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments made while reviewing the different commits.

Comment thread DisguiseUnityRenderStream/Disguise.RenderStream.asmdef
Comment thread DisguiseUnityRenderStream/DisguiseCameraCapture.cs Outdated
}

static List<Texture2D> s_ScratchTextures = new ();
static readonly List<Texture2D> k_ScratchTextures = new ();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curiosity: Is k_ for anything readonly or only for const or variables pointig to objects that shouldn't in theory change value?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what Rider suggested, but I must admit it doesn't make a lot of sense semantically.

Comment thread DisguiseUnityRenderStream/DisguiseCameraCapture.cs Outdated
Comment thread DisguiseUnityRenderStream/DisguiseCameraCapture.cs Outdated
Comment thread DisguiseUnityRenderStream/ObjectField.cs Outdated
Comment thread DisguiseUnityRenderStream/PluginEntry.cs Outdated
Comment thread DisguiseUnityRenderStream/Editor/DisguiseRenderStreamBuild.cs Outdated
Comment thread DisguiseUnityRenderStream/Runtime/PluginEntry.cs
Comment thread DisguiseUnityRenderStream/Runtime/DisguiseClusterDisplay.cs Outdated
@wenzhang-unity wenzhang-unity force-pushed the unity/cluster-display-integration branch from c653c85 to b827e65 Compare November 15, 2022 22:36
Fix up some initialization logic.

Refactoring: DRY, cleaner cluster handling logic
Comment thread DisguiseUnityRenderStream/Runtime/DisguiseClusterDisplay.cs
Comment thread DisguiseUnityRenderStream/Runtime/DisguiseClusterDisplay.cs
@wenzhang-unity wenzhang-unity merged commit 0eaddf4 into dev Nov 21, 2022
@wenzhang-unity wenzhang-unity deleted the unity/cluster-display-integration branch November 21, 2022 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants