I’m updating a modification of Cycles to make curves renderable as hair and it works fine. The only thing missing is for Cycles to use the correctly evaluated curve objects, not the base curve data, eg. in a simulation with wind where curves are moved around.
Would somebody know where to tell Cycles to evaluate the curve object with its modifiers (in this case softbody sim), not just the base mesh? I’ve been looking at blender_object.cpp, blender_mesh.cpp, blender_util.h and mesh_convert.c but I have difficulties in grasping where is the actual copy of the curve data made.
Btw, I’m accessing later in blender_curves.cpp the curve splines data in a custom function similar to ObtainCacheParticleData like this : BL::Curve b_curve(b_ob->data());
I would like data() to be the deformed data here.