View topic - YafaRay beta 0.1.2 standalone for render .xml files

YafaRay beta 0.1.2 standalone for render .xml files

Ask here your questions about development and about raytracing theory & implementation. Here you can post your patches for review.

YafaRay beta 0.1.2 standalone for render .xml files

Post Mon Oct 31, 2011 6:24 am

Working on the new beta of YafaRay for Softimage, I created a standalone version of YafaRay, which I use for rapid testing of code .xml and now I want to share with you.
It has been compiled with MSVC++ Express Edition 2008 SP1, and you need to install this package;
http://www.microsoft.com/download/en/de ... px?id=5582

You can download 'YafaRay 0.1.2 beta Standalone' in this link;
https://github.com/downloads/povmaniaco ... dalone.zip

To view the rendered image, I use the free XnView software (http://www.xnview.com).
P.D.:
For use, change "set YAFARAY_HOME=C:\YafaRay\bin" for "set YAFARAY_HOME=your_drive:\your_yafaray_standalone_folder\bin"
and..
h:\XnView\XnView.exe "%YAFARAY_HOME%\yafray.%IFOR%" for
your_drive:\your_xnview_folder\XnView.exe "%YAFARAY_HOME%\yafray.%IFOR%"
into include 'example.bat' file


Code: Select all
@echo off
rem Example .bat for 'drap and drop' YafaRay exported .XML files
rem Change params for you own config
rem Path to binaries
rem
set YAFARAY_HOME=C:\YafaRay\bin
rem
@if exist %YAFARAY_HOME% set YAFARAY_BIN=yafaray-xml.exe

rem Set path to plugins
set YAFARAY_PLUGINS=%YAFARAY_HOME%\plugins

rem Set image format; tga, png, jpg, tif, hdr or exr
set IFOR=jpg

rem If %IFOR% is not configured, default file format is 'tga'
rem
@if "%IFOR%"=="" set IFOR=tga

rem Call command line and added 'pause' for debuggin errors
rem Set -vl option (0, 1, 2, or 3) for verbose message levels in YafaRay console
rem
%YAFARAY_HOME%\%YAFARAY_BIN% -vl 3 -pp "%YAFARAY_PLUGINS%" -f %IFOR% -op "%YAFARAY_HOME%" %1

rem
@if %errorlevel% neq 0 pause
@if %errorlevel% neq 0 exit

rem Use free XnView (http://www.xnview.com/)
rem This soft no support 'exr' files..
rem
h:\XnView\XnView.exe "%YAFARAY_HOME%\yafray.%IFOR%"

rem
@if %errorlevel% neq 1 pause
povmaniaco
 
Posts: 208
Joined: Sun May 10, 2009 10:40 pm

Re: YafaRay beta 0.1.2 standalone for render .xml files

Post Mon Oct 31, 2011 9:45 am

Nice one povmaniaco.

I can't test it as I'm not on Windows, but it is pretty cool nonetheless :)
User avatar
stoneage
 
Posts: 1241
Joined: Sun Dec 23, 2007 1:06 pm

Re: YafaRay beta 0.1.2 standalone for render .xml files

Post Mon Oct 31, 2011 6:05 pm

Love this one!
Thanks! :D
Manuel_Ramos
 
Posts: 166
Joined: Fri Sep 19, 2008 10:14 am

Re: YafaRay beta 0.1.2 standalone for render .xml files

Post Mon Oct 31, 2011 6:22 pm

Thanks guys....
povmaniaco
 
Posts: 208
Joined: Sun May 10, 2009 10:40 pm

Re: YafaRay beta 0.1.2 standalone for render .xml files

Post Tue Nov 01, 2011 10:20 am

screenshots anybody?
User avatar
Samo
 
Posts: 3105
Joined: Tue Dec 20, 2005 10:39 am
Location: Spain

Re: YafaRay beta 0.1.2 standalone for render .xml files

Post Tue Nov 01, 2011 6:49 pm

Message: Could not executed because libyafarycore.dll could not be found.

What to do?
HHS
 
Posts: 169
Joined: Sat Jan 10, 2009 11:26 pm

Re: YafaRay beta 0.1.2 standalone for render .xml files

Post Tue Nov 01, 2011 9:12 pm

HHS wrote:Message: Could not executed because libyafarycore.dll could not be found.

What to do?


The libs with the prefix "lib" are specific to GNU C + + Compiler.
povmaniaco wrote:........
It has been compiled with MSVC++ Express Edition 2008 SP1, and you need to install this package;
http://www.microsoft.com/download/en/de ... px?id=5582
....


You must set your own paths in the file .bat

povmaniaco wrote:P.D.:
For use, change "set YAFARAY_HOME=C:\YafaRay\bin" for "set YAFARAY_HOME=your_drive:\your_yafaray_standalone_folder\bin"
and..
h:\XnView\XnView.exe "%YAFARAY_HOME%\yafray.%IFOR%" for
your_drive:\your_xnview_folder\XnView.exe "%YAFARAY_HOME%\yafray.%IFOR%"
into include 'example.bat' file

povmaniaco
 
Posts: 208
Joined: Sun May 10, 2009 10:40 pm

Re: YafaRay beta 0.1.2 standalone for render .xml files

Post Sun Dec 04, 2011 12:29 pm

You can use the .bat file posted on this thread, to render exported XML files, with Megasoft78 compilations.
Should only change the path to your installation of Blender exporter.
Example..
Code: Select all
rem
set YAFARAY_HOME=H:\blender\2.60\scripts\addons\yafaray\bin
rem


The entire file...

Code: Select all
@echo off
rem Example .bat for 'drap and drop' YafaRay exported .XML files
rem Change params for you own config
rem Path to binaries
rem
set YAFARAY_HOME=H:\blender\2.60\scripts\addons\yafaray\bin
rem
@if exist %YAFARAY_HOME% set YAFARAY_BIN=yafaray-xml.exe

rem Set path to plugins
set YAFARAY_PLUGINS=%YAFARAY_HOME%\plugins

rem Set image format; tga, png, jpg, tif, hdr or exr
set IFOR=png

rem If %IFOR% is not configured, default file format is 'tga'
rem
@if "%IFOR%"=="" set IFOR=tga

rem Call command line and added 'pause' for debuggin errors
rem Set -vl option (0, 1, 2, or 3) for verbose message levels in YafaRay console
rem
%YAFARAY_HOME%\%YAFARAY_BIN% -vl 3 -pp "%YAFARAY_PLUGINS%" -f %IFOR% -op "%YAFARAY_HOME%" %1

rem
@if %errorlevel% neq 0 pause
@if %errorlevel% neq 0 exit

rem Use free XnView (http://www.xnview.com/)
rem This soft no support 'exr' files..
rem
h:\XnView\XnView.exe "%YAFARAY_HOME%\yafray.%IFOR%"

rem
@if %errorlevel% neq 1 pause

Greetings..
povmaniaco
 
Posts: 208
Joined: Sun May 10, 2009 10:40 pm


Return to Developers' Corner



Who is online

Users browsing this forum: No registered users and 2 guests

cron