[Bf-cycles] rendering instances in Cycles

Mohamed Sakr 3dsakr at gmail.com
Thu Jun 18 02:28:09 CEST 2015


I'm creating an exporter to Cycles Standalone, I wanna know how Cycles
renders instances?
so if I have a Mesh* which is shared across 2 Object* , is this all what I
need to do? or am I missing something?

Mesh* any_mesh;
//fill mesh data

Object* main_object;
main_object->mesh = any_mesh;
main_object->tfm = any_tfm;

Object* instance_object;
instance_object->mesh = any_mesh;
instance_object->tfm = instance_tfm;

//what about mesh->used_shaders??

so in short, what I do to mark an object as an instance., which data to
fill, how to determine its shader.

Mohamed Sakr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-cycles/attachments/20150618/3d87056e/attachment.htm 

More information about the Bf-cycles mailing list