download from the github repository and then follow the instruction.
git clone https://github.com/POV-Ray/povray.git
./configure COMPILED_BY="your name <email@address>"
The terminal shows the following message:
The POV-Ray components will be installed in the following directories:
- Program (executable): /usr/local/bin
- System configuration files: /usr/local/etc/povray/3.7
- User configuration files: /home/oyamada/.povray/3.7
- Standard include files: /usr/local/share/povray-3.7/include
- Standard INI files: /usr/local/share/povray-3.7/ini
- Standard demo scene files: /usr/local/share/povray-3.7/scenes
- Documentation (text, HTML): /usr/local/share/doc/povray-3.7
- Unix man page: /usr/local/share/man
Kate is an editor for KDE environment. Even though I’m using Ubuntu, which is GNOME environment, Kate is the best editor I tried for these days.
- syntax highlight
- command auto complete
- window splitting
- embedded terminal
- embedded terminal automatically cd to directory in which active directory is located
- and more…
SciTE seems to be a good choice.
Setup the SciTE by following the manual:
- install SciTE
using Synaptic Package Manager, apt-get, or compile from source.
- change Global settings
Edit /usr/share/scite/SciTEGlobal.properties ( can edit on SciTE by selecting the menu “Options”->”Open Global Options File”.)
- enable to loading povray related file extension by adding ;*.pov;*.inc;*.ini;*.mcr around line #316
- uncomment around line #572
From: #P&OV-Ray SDL|pov||\
To: P&OV-Ray SDL|pov||\
- change settings for povray
- enable compile function from SciTE menu by editing around line # 182
From: command.compile.*.pov=pvengine.exe $(FileName)
To: command.compile.*.pov=povray +P $(FileName).pov
- enable auto-complete by uncomment around line #19-24
Now, we can use
- command auto-complete
- syntax highlight
- command execution from terminal window
XPE (neXtgen Pov-ray Editor) is an editor for POV-Ray based on wxWidgets library. Here’s the quick commands list for XPE installation.
- sudo apt-get install libwxgtk2.8-dev libwxgtk2.8
- tar -zxf xpe_project_v0_9_5b.tar.gz
- cd xpe_project/
- sudo make install
Contrast to PovClipse, XPE does not generate additional files for source code management. However, XPE does not show rendered images, meaning that we have to somehow show the image with any viewer.
PovClipse is an eclipse plug-in for POV-Ray and MegaPOV. Since the original tutorial assumes Windows, I briefly write how to setup on Ubuntu.
- Edit povray.conf
If rendering fails, you should add the following command in ~/.povray/3.6/povray.conf file. The command enables read/write under use’s home directory.
read+wrote* = %HOME%
- Install eclipse
sudo apt-get install eclipse
- Install PovClipse
- Run eclipse and select the menu Help->Install New Software.
- Write http://povclipse.sourceforge.net/updatesite in Work with dialog and then push Add button.
- Select PovClipse and go to Next.
- Accept the license and go to Next.
- Press Finish button.
- New PovClipse project
- Select the menu File->New->Project.
- Select PovClipse->PovClipse Project.
- Set default setting for other settings.
- General settings
- Select the menu Window->Preferences.
- Select PovClipse in the list shown at left hand side.
- Set Povray executable: /usr/local/bin/povray
- Set Povray library: /usr/local/share/povray-3.6/include
- NOTE: the above settings assumes that your povray installation follows default settings.
- Write scene file and render it.
Rendered image is shown in a window at left hand side:
Contrast to POV-Ray on Windows, POV-Ray on Linux does not contain GUI*. Just for editing, any editor is fine, however, we’d also like render images while editing. In such sense, we prefer editor with rendering function. There exist several such editors:
- Geany: cross platform (source code) editor. pros contains window split, terminal available, multiple lines editing. cons contains no official plug-in for POV-Ray, meaning that no syntax highlight and no command auto-complete, no rendering window.
- PovClipse: eclipse plug-in. almost of cons are due to my poor knowledge on eclipse. pros contains rendering windows, syntax highlight. cons contains no command auto-complete, a little bit complicated directory structure plus additional files for project management.
- XPE( neXtgen Pov-ray Editor): independent povray editor for both windows/linux. no update for these 3 years. pros contains window for command options, for +W800 +H600, syntax highlight. cons contains no rendering windows, no command auto-complete.
- Pyvon: independent povray editor. seems to be old, requires python 2.2! I couldn’t run the software due to compatibility with python version.
- QTPov Editor: old project of XPE.
- SciTE: cross platform (source code) editor. pros contains syntax highlight, command auto-complete, embedded terminal. cons contains terminal window does not look like terminal.
- Kate: text editor by KDE. pros contains syntax highlight, command auto-complete, embedded terminal, cd to a directory, in which active file is located. cons syntax has less variety on color .
* Here, GUI means editor with rendering function not modeler.