Here is the Re-Post of this tutorial on setting up Linux Terragen under Windows 10 using Windows Subsystem for Linux:
I went through the entire process of setting up WSL (Windows Subsystem for Linux) under Windows 10 Pro and it was a little different that the above referenced tutorial which may have been because it was made using the Japanese version of Windows 10, or perhaps a different version of Windows 10?
Here are the official instructions from Microsoft to set up WSL:
https://docs.microsoft.com/en-us/windows/wsl/install-win10After WSL is installed you need to go to the Microsoft Store App and find Ubuntu. I installed the non-LTS option, which I think is the one that gets updated frequently. You can also instal 16.04 LTS, or 18.04 LTS.
Once Ubuntu is installed you can run it and get a shell (bash) prompt. You will need to figure out how to access your Windows directories, and drives from within the linux shell. You don't ever want to shove files from Windows 10 into the Ubuntu Linux filesystem which is within the AppData folder here (on my PC): C:\Users\Derek\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs
FYI in Ubuntu Linux you can find your Windows 10 Downloads under /mht/c/Users/<USER>/Downloads so for me it looks like this: /mht/c/Users/Derek/Downloads
/mht/c gets you to your C:
After you download Terragen Linux you need to copy it to your user root directory and extract it.
This will take you to your user root directory:
cd ~
Once your there you can copy the Terragen Archive to there but you need to know where it is in your Windows file system. I would put it somewhere easy to find like directly under your C:, or your Windows 10 user Download folder.
For me my User Download folder under Windows is:
/mnt/c/Users/Derek/Downloads
So you could do this to copy your Terragen download to the user root directory under linux:
cp /mnt/c/Users/Derek/Downloads/Terragen_4_Linux_43210.tar.gz .
The period character tells the copy command you want to copy the file to the current directory you are in (~).
If your Terragen_4_Linux_43210.tar.gz archive was directly under C: under Windows 10 you could do this instead:
cp /mnt/c/Terragen_4_Linux_43210.tar.gz .
Then extract it like this:
gunzip Terragen_4_Linux_43210.tar.gz
tar xvf Terragen_4_Linux_43210.tar
I would rename the directory Terragen is in to something simple like "Terragen" and then you need to find your license file and copy that on over to the Terragen directory as well.
Before you can run Terragen you need to make sure your license is working. It must be the Terragen Professional license.
The Terragen install was a little rocky, meaning you have to install some dependency packages, and sometimes there are some errors/missing components. I did "sudo apt-get update" a couple times and had to retry getting some of the packages that failed to get everything on the first try.
Here are the packages:
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libglu-dev
sudo apt-get install freeglut3-dev
sudo apt-get install libjpeg62
I also had to get this with wget:
wget
http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deband then:
dpkg -i /libpng12-0_1.2.54-1ubuntu1_amd64.deb
The command for using vdbexport is like this:
./terragen -p project.tgd -exportvdb "Name of cloud layer" filename.vdb
I name my files like this to keep track of my source scenes and export scenes:
./terragen -p clouds001_cl3_r100km_vox400.tgd -exportvdb "Cloud layer v3 01" cloud_layer_v3_100km_400m_voxels.vdb
./terragen -p clouds002_cl3_r256km_vox200.tgd -exportvdb "Cloud layer v2 01" cloud_layer_v2_256km_200m_voxels.vdb
./terragen -p clouds003_cl3_r256km_vox100.tgd -exportvdb "Cloud layer v3 01" cloud_layer_v3_256km_100m_voxels.vdb
./terragen -p clouds003_cl2_r256km_vox400.tgd -exportvdb "Cloud layer v2 01" cloud_layer_v2_256km_400m_voxels.vdb
Brought this small test into Modo to look at it:
If your trying this and need help let me know. The hardest part is installing Terragen.
Derek