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.
For rendering lens distorted images, I installed POV-Ray 3.6.1 and then apply the patch provided by Clemens Rabe.
- building environment
sudo apt-get install build-essentials
- supporting libraries
The following supporting libraries are needed. In case missing or older version, the configure script link the libraries provided in POV-Ray.
- source code
For my case, official file, povlinux-3.6.1.tar.bz2, didn’t work. Search povray-3.6.1.tar.bz2 and uncompress it.
tar xfj povray-3.6.1.tar.bz2
Download from Clemens Rabe’s website and apply patch. The following command is called from a directory that contains a directory /povray-3.6.1/ and the patch file.
patch -p0 < ./povray-3.6.1_LenseDistortion.patch
/configure COMPILED_BY=”your name <email@address>”
sudo make install
phew… installation seems to be completed. For quick check, I rendered a sphere with black background. Tomorrow, I will check the lens distortion effect!!