Lightact works with StereoView. StereoView outputs a depth map. To import it you should first open the Devices window by pressing F7 or going to Window and then clicking on Devices.
Once there, right-click, hover above StereoView and then click on Add reader.
Select the node and click on Scan button.
If Lightact finds a StereoView device (either a standard or a Pro version) it will appear on the list. Select the appropriate radio button.
Then, make sure you select the Streaming checkbox and after a few seconds, a green Receiving label should appear. If it doesn’t and you continue to see a grey Waiting for data… label, it might mean your network is not fast enough. This can happen if there are too many network switches or routers between your computer and StereoView or if your network card is not fast enough.
In the node’s properties on the right, you can also adjust:
- the Encoding type: RAW means black and white, whereas the other 2 use colors to encode the depth. In most cases, you’ll be using RAW encoding.
- the Framerate: leave it at 33 if you want Nerian to stream as fast as it can, which might be slower than 33. The actual maximum framerate depends on the resolution SceneScan is working at (see next chapter) and network speed.
If you type in the IP address of StereoView in a browser, you should see a page similar to this. Here you can calibrate the cameras and adjust various other settings about which you should find more information in Nerian user documentation. If you are in doubt feel free to ask on our Answerhub.
Getting StereoView Depth Feed into Layer Layouts
To get StereoView feed into Layer Layouts, you insert a StereoView Listener node and, in its properties on the right, select the StereoView reader node you inserted in the Devices window.
The node outputs a cvMat, which you can convert to a Texture using a CvMat to Texture node or perform additional computer vision algorithms using various computer vision nodes.
Please note, you can map several Listener nodes in Layouts to one Reader node in the Devices window.