This patch provides Freestyle with basic support for the Cycles rendering engine.
Freestyle option panels in the Render Layers tab are now available when the current rendering engine is set to Cycles.
The patch is still work in progress and not finished. Testing from both users' and developers' view point is much appreciated.
User-visible limitations:
Material color/alpha/thickness modifiers won't work properly, except for the default diffuse color when Cycles shader nodes are not used.Textures are not available (actually they are, but through the texture option panels accessible only when the rendering engine is set back to the Blender Internal).- Preview rendering in the 3D view port is not supported yet.
Notes for developers:
The Blender Internal is used for stroke rendering by default. Cycles can be used for that purpose by defining USE_CYCLES_FOR_STROKE_RENDERING in source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp at compile time.- For testing purposes, the material used for stroke rendering with Cycles can be created manually by the "Create Freestyle Stroke Material" operator. Just invoke it through the spacebar search menu in the 3D view port, and you will be able to choose the stroke material in the pull-down material selector. This way you can browse the shader node setup used for stroke rendering. Updates of the stroke material must be done in BlenderStrokeRenderer::GetStrokeMaterial().
Major to-do items:
Devise a way to make Cycles materials and textures accessible from within Freestyle line rendering options.
