<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <HTML ><HEAD ><TITLE >Renderable Objects</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ "><LINK REL="HOME" TITLE="Blender Documentation Volume I - User Guide" HREF="book1.html"><LINK REL="UP" TITLE="YafRay" HREF="c11488.html"><LINK REL="PREVIOUS" TITLE="Shaders" HREF="x11571.html"><LINK REL="NEXT" TITLE="Lights" HREF="x11820.html"></HEAD ><BODY CLASS="section" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Blender Documentation Volume I - User Guide: Last modified April 29 2004 S68</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="x11571.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >YafRay</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="x11820.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="yafray_objects" ></A >Renderable Objects</H1 ><P > yafray currently supports only Mesh Objects. An example of a simple tringular planar plate is: </P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE CLASS="programlisting" > <transform m00 = "0.997525" m01 = "0.070303" m02 = "0.001329" m03 = "0.115816" m10 = "-0.018745" m11 = "0.284097" m12 = "-0.958612" m13 = "1.522439" m20 = "-0.067771" m21 = "0.956215" m22 = "0.284711" m23 = "3.272361" m30 = "0.000000" m31 = "0.000000" m32 = "0.000000" m33 = "1.000000" > <object name = "Plane.002" shader_name = "Plane.002.mat" caus_IOR = "1.500000" recv_rad = "on" emit_rad "on" shadow = "on"> <attributes> <caus_tcolor r = "1.000000" g = "1.000000" b = "1.000000"/> <caus_rcolor r = "1.000000" g = "1.000000" b = "1.000000" /> </attributes> <mesh autosmooth = "30.0" > <points> <p x"4.403727" y="-4.403728" z="0.000000" /> <p x="-4.403727" y="-4.403727" z="0.000000" /> <p x="-4.403725" y="4.403728" z="0.000000" /> </points> <faces> <f a="0" b="2" c="1" /> </faces> </mesh> </object> </transform> </PRE ></TD ></TR ></TABLE ><DIV CLASS="section" ><H2 CLASS="section" ><A NAME="yafray_objects_transform" ></A >Transform tag</H2 ><P > The Transform tag defines the transform matrix for the enclosed object (position, scale and rotation from the world origin point) </P ></DIV ><DIV CLASS="section" ><H2 CLASS="section" ><A NAME="yafray_objects_object" ></A >Object tag</H2 ><P > The object tag defines the object geometry, it has a series of parameters: </P ><P ></P ><UL ><LI ><P > <TT CLASS="literal" >caus_IOR</TT >: Index of Refraction for Caustic Photons </P ></LI ><LI ><P > <TT CLASS="literal" >recv_rad</TT >: whether to receive radiosity (bounced light generated from Photon Lights)(on or off) </P ></LI ><LI ><P > <TT CLASS="literal" >emit_rad</TT >: whether to emit radiosity (on or off) </P ></LI ><LI ><P > <TT CLASS="literal" >shadow</TT >: whether or not to cast a shadow (on or off) </P ></LI ><LI ><P > <TT CLASS="literal" >caus_tcolor</TT >: the colour to tint transmitted photons (colours the refractive caustics) </P ></LI ><LI ><P > <TT CLASS="literal" >caus_rcolor</TT >: the colour to tint reflected photons (colours the reflective caustics) </P ></LI ></UL ></DIV ><DIV CLASS="section" ><H2 CLASS="section" ><A NAME="yafray_objects_mesh" ></A >The Mesh tag:</H2 ><P > The key tag within an object definition is the Mesh tag, which define its geometry: </P ><P ></P ><UL ><LI ><P > <TT CLASS="literal" >autosmooth</TT >: threshhold angle for the smoothing algorhythm (omit to get 'faceted' objects) </P ></LI ></UL ><P > Within the mesh tag a <points> block defines the vertices of the mesh, while a <faces> block defines triangular faces by the indices of their three vertices. </P ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="x11571.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="book1.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="x11820.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Shaders</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="c11488.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Lights</TD ></TR ></TABLE ></DIV ></BODY ></HTML >