[Bf-cycles] Cycles standalone questions

haggi krey haggi at haggi.de
Tue Nov 3 21:39:11 CET 2015

Well, I've done a smapp step forward. My cycles test still crashes at 
the end.
But I wanted to build a complete scene, one triangle, one light, one camera.
Unfortunatly I have no idea how to create and assing a new shader. My 
code looks like this:

     Shader *shader = new Shader();
     shader->name = "diffuse_bsdf";

The standalone code is not really helpful with this. Shadingsystem is 
default what means SHADINGSYSTEM_SVM.
So how do I correctly create a svm shader (or osl shader) and assign it 
to my triangle?
Any hints would be nice.


More information about the Bf-cycles mailing list