Download all the CC0 textures from the official ambientcg.com website easily.
This repository was created to simplify a repetitive process: downloading textures from ambientCG, extracting them, and manually removing unused images.
With this automation, all textures are pre-downloaded to your computer. Once you find the texture you need on the ambientCG website, you can quickly locate it locally without additional steps.
You can set up the project in two ways: using Poetry or a traditional setup with requirements.txt. Choose the poetry if you want to avoid dependencies issues.
- Ensure you have Poetry installed.
pip install poetry
- Clone the repository:
git clone https://github.com/alvarognnzz/ambientcg-downloader cd ambientcg-downloader - Install dependencies:
poetry install
- Run the script:
poetry run python main.py
- Clone the repository:
git clone https://github.com/alvarognnzz/ambientcg-downloader cd ambientcg-downloader - Install dependencies:
pip install -r requirements.txt
- Run the script:
python script.py
Both methods will set up the environment for running the project. If you're new to dependency management, the second option (requirements.txt) is more straightforward.
To configure the script, use the config.yaml file. Here's an example configuration:
resolution: "1K" # (1K, 2K, 4K, 8K)
file_type: "JPG" # (JPG/PNG)
downloads_folder: "downloads"
unzip:
enabled: true # (true/false)
folder: "unzipped"
keep_files: # Files marked as false will be deleted
color: true
roughness: true
normal_gl: true
normal_dx: true
metalness: true
opacity: true
ambient_occlusion: true
displacement: false
cover: false-
Adjust the settings
- Open the
config.yamlfile in a text editor. - Set the
resolutionto the desired quality (e.g., "1K", "2K"). - Choose the
file_type(either "JPG" or "PNG"). - Specify the folder for downloaded textures under
downloads_folder.
- Open the
-
Configure unzipping
- If you want the textures to be automatically extracted, set
enabledtotrue. - Define the folder for unzipped files under
folder.
- If you want the textures to be automatically extracted, set
-
Manage file types
- In the
keep_filessection, mark the file types you want to keep astrue. - Any file type set to
falsewill be deleted after extraction.
- In the
-
Run the script
- Save your changes to the
config.yamlfile. - Execute the script, and it will follow the configuration to download, unzip, and manage the textures automatically.
- Save your changes to the
Warning
The ambientCG texture library is quite large, with a size of up to 10GB at 1K resolution.
If you select a higher resolution (e.g., 2K or 4K), the download process may take several hours depending on your internet speed and system performance.
