eeshlo released a python compiled texture plugin for sunsky. He did not release the source code, however, and the new version of python will not work with it, etc, etc. I am trying to write a new texture plugin.
I have stolen sunsky.cc from yafaray and as of today, I have managed to compile it independently of yafaray so I can convert it to a texture plugin for blender internal.
I need some help at this point. It would help me greatly if someone familiar with yafaray could help me with the interface for the background. I have a mostly complete class that used to inherit background_t, but I need to make some functions to get skycolor at specified x,y,z coordinates for the texture. Basically, I need a function like this:
sunsky_get_rgb(*rgb_struct, sun_x_dir, sun_y_dir, sun_z_dir, turb, x_coord, y_coord, z_coord, sun_intensity);
I of course want to eventually add lat/lon and day/time to the plugin for ease of use. Then a python script to do the sky and add a light in the correct position.
If anyone is interested, I have also managed to get sunsky compiled from Andrew’s Code (http://www.cs.cmu.edu/~ajw/software/) for Ubuntu. I had to change some includes, change some cmath functions and change some C++ methods to inline but it compiles cleanly and renders sky in tiff format.
Thanks for any help.