Exporting To Raspberry Pi 3B +

You need the following Simdify® modules to complete all exercises involving the Raspberry Pi® 3B+: Simdify® Free Edition

This series requires a Raspberry Pi 3B+ device. This is what we are talking about when we refer to 'Raspberry Pi' in this series.

The Simdify® Layout application allows you to develop shaders and export them to select Raspberry Pi® devices. This series teaches you how to copy data from your Windows® development PC to your Raspberry Pi® device, how to write and export a simple shader, and how to write and export a video processing shader.

The process is as follows:

  1. Use the Simdify® Layout application on your Windows® development PC to create and debug shaders.
  2. Export the shader from the Simdify® Layout application as a series of text and binary files that can be copied to your Raspberry Pi® device.
  3. On your Raspberry Pi® device, compile these files into a finished application, and run it.

Here are the four main setup tasks we need to accomplish before we can write shaders and export them to your Raspberry Pi®:

Basic requirements are as follows:

Item Description
Raspberry Pi® 3B+ deviceA Raspberry Pi® capable of running GLSL 100 es and GLSL 300 es shaders, or an equivalent device, running Buster or Bullseye. OpenGL shaders probably won't work on older Raspberry Pi devices.
GCC Compiler Version 8.3.0 or higherVersion of GCC capable of compiling C++ 17. You can type g++ --version from your terminal to find out which version you have.
RealVNC®The ability to connect to and control your Raspberry Pi® from your Windows® development machine.
Terminal AccessThe ability to access the terminal (command prompt) on your Raspberry Pi®.
File TransferThe ability to manually copy the exported files (C++ source code, GLSL source code, config files, make files) from your PC to the correct location on your Raspberry Pi® device. (e.g., Samba, as discussed below).

You'll need the following if you wish to learn how to write shaders for video:
Item Description
Simdify Video+ ModuleYou'll need this module to use video features in Simdify. Buy Simdify Video+.
Raspberry Pi®-compatible video cameraYou'll need a camera to capture video if you want to write shaders for video.
Video Stream AddressThe RTSP address for the Raspberry Pi® video camera. For example: rtsp://192.168.1.30:8554/video
VLC® or similarThe ability to display video output by your Raspberry Pi® video camera.

There are many ways to accomplish the above tasks. In this series of exercises, we provide you with one approach which we have found to be simple and easy to understand. Feel free to use your preferred approach to accomplish these same tasks. We will be using the following third party tools in these exercises:

Item Description
Real VNC® You can download and install Real VNC® on your Windows® development machine and you can use it to simplify interfacing with and controlling your Raspberry Pi®. RealVNC can enable you to connect directly to your Raspberry Pi® across the Internet or simply across your local network. This exercise assumes you will connect to your Raspberry Pi over your local network. Please refer to the following links for reference information on this: VNC Connect and Raspberry Pi and Real VNC Raspberry Pi Setup.
Samba You can install Samba on your Raspberry Pi® and use it to copy files from your PC to your Raspberry Pi®. Please refer to the Raspberry Pi Remote Access documentation for additional information.
VLC You can download and install VLC on your Windows development machine and use it to display images and streamed video from your Raspberry Pi®.