27.5. Renderable Objects

Relevant to Blender v2.31

YafRay currently supports only Mesh Objects. An example of a simple triangular planar plate is:


<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>
                         
                         

27.5.1. Transform tag

The Transform tag defines the transform matrix for the enclosed object (position, scale and rotation from the world origin point).

27.5.2. Object tag

The object tag defines the object geometry, it has a series of parameters:

27.5.3. The Mesh tag:

The key tag within an object definition is the Mesh tag, which defines its geometry:

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.