-
Notifications
You must be signed in to change notification settings - Fork 38
Shared Memory
Ayuma Kaminosono edited this page Jun 6, 2019
·
7 revisions
In this sample, the image acquired by "SceneCapture2D" is displayed as another material via the shared memory.
-
The SharedMemory sample is in the "SharedMemory" level
-
Please open "Box Actor" to see how to implement
-
Prepare textures and materials to display the imported image.
-
Create an instance of "ObjectDeliverer" and start it.
- Set "ProtocolS shared Memory" to "Protocol". MemorySize specifies the texture buffer size.
- "PacketRule" has "Nodivision" (because it does not divide packets)
- Rewrites the texture buffer at the event of fetching data from shared memory
- Initializes the array for inserting the image pixel buffer of "TextureRenderTarget".
- Create an instance of "ObjectDeliverer" and start it.
- Set "ProtocolS shared Memory" to "Protocol". MemorySize specifies the texture buffer size.
- "PacketRule" has "Nodivision" (because it does not divide packets)
- Fetch the pixel buffer from "TextureRenderTarget" at "Event Tick" and write it to shared memory