You are here:

Unreal Engine can stream textures (content) to LightAct using Texture Share plugin.

Please make sure you have it enabled, as well as nDisplay and LightAct plugins.

Setup of Unreal Engine

There are 2 ways of using Texture Share plugin: through blueprints or via nDisplay file.

Texture Share through Blueprints

When you enable Texture Share plugin, you get access to 2 actors that come with this plugin: BP_TextureShare_Scene and BP_TextureShare_Postprocess. We are going to use BP_TextureShare_Scene

If you don’t see these 2 classes, you need to enable Show Plugin Content in the View Options.

Either make a copy of BP_TextureShare_Scene or drag the original into your level. If you open its blueprint, you will see something similar to the image above. It’s been set up so that the moment you hit play, Unreal is going to stream the content of your viewport. Please take note of the value of Share Name variable. This is the handle of the texture and you will use it on LightAct’s side as well.

Texture Share through nDisplay config file

The other way of sharing textures between Unreal and LightAct is through the use of nDisplay config file.

Texture Sharing through nDisplay config file is very simple. You only need to add share=”true” parameter to the viewport descriptor.

[viewport] id="vp_1_up" x="0" y="0" width="1920" height="1080" projection="proj_simple_1_up" share=true

Viewport’s id (‘vp_1’ in the example above) becomes the share handle that you will use on LightAct’s side.

Setup on LightAct's side

In order to receive a texture on LightAct’s side you need to open Devices window and insert Texture Share Reader node

Select the node and in the properties on the right, enter the share name of your Texture Share. This will be either the ID of nDisplay viewport, if you are sharing through nDisplay config file, or Share Name string in the Blueprints, if you are using the Blueprint method.

Then just check the Listening checkbox and the texture should appear.

Additional Resources

Most of the above has already been set up in the Unreal Engine Sample project that you can download by clicking on the button above, and a sample LightAct project that’s available in the Intro Window.

Previous UnrealLink
Next Sending Variables from LightAct to Unreal Engine