diff --git a/common/lc_profile.cpp b/common/lc_profile.cpp index 4fcab594..37fa2bb3 100644 --- a/common/lc_profile.cpp +++ b/common/lc_profile.cpp @@ -109,8 +109,8 @@ lcProfileEntry gProfileEntries[LC_NUM_PROFILE_KEYS] = lcProfileEntry("HTML", "PartsWidth", 128), // LC_PROFILE_HTML_PARTS_WIDTH lcProfileEntry("HTML", "PartsHeight", 128), // LC_PROFILE_HTML_PARTS_HEIGHT - lcProfileEntry("POVRay", "Path", ""), // LC_PROFILE_POVRAY_PATH - lcProfileEntry("POVRay", "LGEOPath", "/usr/bin/povray"), // LC_PROFILE_POVRAY_LGEO_PATH + lcProfileEntry("POVRay", "Path", "/usr/bin/povray"), // LC_PROFILE_POVRAY_PATH + lcProfileEntry("POVRay", "LGEOPath", ""), // LC_PROFILE_POVRAY_LGEO_PATH lcProfileEntry("POVRay", "Width", 1280), // LC_PROFILE_POVRAY_WIDTH lcProfileEntry("POVRay", "Height", 720) // LC_PROFILE_POVRAY_HEIGHT }; diff --git a/qt/lc_renderdialog.cpp b/qt/lc_renderdialog.cpp index b9e33932..7c2ba2e2 100644 --- a/qt/lc_renderdialog.cpp +++ b/qt/lc_renderdialog.cpp @@ -137,6 +137,7 @@ void lcRenderDialog::on_RenderButton_clicked() #ifdef Q_OS_WIN POVRayPath = QDir::cleanPath(QCoreApplication::applicationDirPath() + QLatin1String("/povray/povconsole32-sse2.exe")); + Arguments.append("+SMleocad-povray"); #endif #ifdef Q_OS_LINUX @@ -147,6 +148,7 @@ void lcRenderDialog::on_RenderButton_clicked() #ifdef Q_OS_MACOS POVRayPath = QDir::cleanPath(QCoreApplication::applicationDirPath() + QLatin1String("/povray/povconsole")); + Arguments.append("+SMleocad-povray"); #endif mProcess = new QProcess(this); diff --git a/tools/povray/README.txt b/tools/povray/README.txt new file mode 100644 index 00000000..2fd7f6ab --- /dev/null +++ b/tools/povray/README.txt @@ -0,0 +1,4 @@ +This is a fork from POV-Ray 3.7 with small changes to make it use shared memory for rendering, so that LeoCAD can display the image while it's being rendered. + +You can find the forked source code at https://github.com/leozide/povray, and the original version at http://www.povray.org + diff --git a/tools/povray/povconsole32-sse2.exe b/tools/povray/povconsole32-sse2.exe new file mode 100644 index 00000000..3856c72b Binary files /dev/null and b/tools/povray/povconsole32-sse2.exe differ