The project must be located inside CARLA's PythonAPI
folder
VS Code extension used:
- Python + Pylance
- GLSL Linter
- Shader languages support for VS Code
- WebGL GLSL Editor
Add {path_to_carla}\PythonAPI\carla\dist\carla-0.9.13-py3.7-win-amd64.egg
to the Extra Paths
It is expected that
Type Checking Mode
=strict
Stub Path
=typings
- glslViewer to inspect the shader (run
glslViewer ./shaders/zoom_in.frag "path/to/some/image.png"
) - glslang@12.1 binaries: set the path of
glslangValidator
toValidator Path
of GLSL Linter extension settings
After cloning the project, run the following scripts form the VS Code terminal
env.bat
to create the virtual environment,install.bat
to install dependencies (make sure you run this in the cmd line prefixed with(.venv)
)
Run python main.py [options]
to display a mirror
Run python main.py --help
to see all options available
Run python map.py <id>
to set a map (python main.py
also allows settings a map, but could be slow and result in time-out error)