Update 30. November 2007
The sunsky panel is now added to the python GUI script in svn (thanks again, Lynx), so you can just do a checkout of Yaf(a)Ray and Blender and compile both according to
Lynx's documentation, or use recent binaries.
-------------------------------------------------------------------
2nd Update 21. November 2007
Here’s a small update to the Blender python exporter GUI (correction of tooltip for “From (update sun)” button):
Yaf(a)Ray GUI Python plugin for Blender:
yafaray_ui-193-sunsky-0.1.1.py.tar.gz
-------------------------------------------------------------------
Update 21. November 2007
As of svn revision 193, the sunsky exporter code for Blender is now included in the Yaf(a)Ray sources (thanks Lynx!), so you won't need my patch anymore. Just do a usual checkout of Yaf(a)Ray and Blender and compile both according to
Lynx's documentation.
You still need my modified python script to access the sunsky setting from inside the exporter GUI:
yafaray_ui-188-sunsky-0.1.py.tar.gz
-------------------------------------------------------------------
Update 04. November 2007
I updated the exporter and python GUI to support the sunsky “from” value. It now supports what I initially aimed for, so this is now version 0.1.
It is made with Yaf(a)ray svn revision 188 and Blender svn revision 12463. It may well work with other Blender versions also, including official 2.45 sources, but I didn’t test this.
The python GUI for Blender is the latest version as of revision 188, with additional sunsky functionality, and with one other function changed: I disabled quit by escape key and added a quit button instead.
Here’s a screenshot of the sunsky GUI part:
You can set the sun direction in the GUI with either the normal button (the sphere like button in the middle) or with the x, y, z value. You can also get the sun direction *or* position from a selected sun lamp in the 3d scene with the "From (get angle)" and "From (get position)" buttons. The last button, "From (update sun)" updates the selected sun lamp's position *and* direction according to the current GUI values.
Download
Patch for the Blender exporter code:
patch-188-blenderplugin-sunsky.txt
Modified Yaf(a)Ray GUI Python plugin for Blender:
yafaray_ui-188-sunsky-0.1.py.tar.gz
For Yaf(a)Ray svn revision 188
-------------------------------------------------------------------
05. October 2007
Hi all,
(I wasn't sure where to post this, here or in the developer forums, please move if wrong.)
I'm a long time Blender user and love to use Yaf(a)ray as a renderer. I tried to implement the Sunsky background in the Blender exporter, so it can be chosen from the Python GUI. I don't know C++ very well, but I managed to make it work for me.
What works: turbidity, parameters a to e
What doesn't yet: setting the sun direction
If anybody wants to have a look, here's a patch for the blender exporter code and a modified Python exporter script:
Patch
Python exporter GUI script
I made the patch against Yaf(a)Ray svn revision 183 and tested it with Blender svn revision 12210 (both today's checkouts). To apply the patch, copy the file to your yafaray blender exporter root and run:
- Code: Select all
patch -p0 < patch-183-blenderplugin-sunsky.txt
Then recompile Blender with the patched exporter code.
Sanne