Introduction to Yafray Materials

On April 10, 2009, in Tutorials, by Admin
In order to set up a material for use with Yafray rendering, you must first create a material
the normal way within Blender. If you need help creating a typical Blender material, please
refer back to my previous tutorial entitled Material Mysteries.
This covers the basics of setting up a material within Blender. Material Mysteries Part 2
covers the basics of using Textures with materials.

The first step is to select your object and create a new material for it. At this time, Yafray
does not take any color information from the Blender material, so don’t concern yourself
with setting colors or finish here. If you want to, the only thing you’ll want to set up is any
textures you wish to apply to your object. Take care of any texture mapping that needs to be
done and apply your textures as usual from within Blender’s Material / Texture settings.
I’ve tried several different file formats for textures used with Yafray. At this time, I’ve
only found two that work:

  • JPG
  • TGA
  • PNG

The formats that I tried that did not work with Yafray were:

  • BMP
  • GIF
  • TIF

The list above shows which texture slots Yafray will extract from Blender’s material settings.
This list is visible from the Yafray interface once an object is selected and the Materials
button has been selected as well.

The image above shows that I’ve created a new Material for my selected object within Blender.
I’ve given my new material the name “1ball”. My only concern now is with entering any texture
information. Under the Map To tab, I make sure the “Col” button is selected so that my
new texture will be applied to the objects color.

Next, I’ve already UV mapped my sphere, so I’ve selected UV to apply my texture. Under
the texture Tab, I previously clicked on the “Add New” button to create a new texture.
It created a new texture slot. I changed over to the Texture menu (F6) and loaded my
texture. I renamed the texture from the default name to “1ball”. You can see the new
name of my texture listed here under the Texture tab.

Pressing F6 takes you to the Texture section shown above. With out going into too much detail
here, I simply added a new texture, changed the Texture type to Image and loaded the image
file I wanted to use for my texture. Again, Material Mysteries Part 2
covers the basics of using Textures with materials.

Starting the Yafray Interface:

Before starting the Yafray interface, I usually create a new window for it to run in and
set it to a Scripts Window.

Starting Yafray from the menu bar will cause the script to start running and the Yafray
interface will show up in your Scripts Window.

With your object selected and the Yafray interface running, Press the Material button to
bring up the material options. Next you have two choices, you can press the From Active
Object button which will take the texture information from the selected object. Your
other option is a drop down menu which will allow you to select from any material already
created within Blender. Again, only texture information will be used at this time. Color
and finish will be set next from the Yafray interface. Once you select the Material to use,
you will need to press the Refresh Preview button to verify that Yafray is finding and
using the correct Texture information.

The lower section of the Material settings gives you the choice of setting color, reflection,
transparency and glossy values.

The drop down menu for Material Type will give you the options shown above. Depending on the
type that you choose, you’ll receive different options below to adjust.

If you have been working with Blender materials and are moving to use Yafray for rendering,
one thing I use frequently in this situation is the Eye Dropper from the color selection window.
With the selected object’s Blender Material in one window with the color samples visible, clicking
on the color I wish to change from the Yafray interface brings up the standard color selection
window shown above. Selecting the Eye Dropper from here, I can easily move down and sample
my pre-made Blender colors exactly, saving them to their new locations under my Yafray
Materials.

This was written as a brief introduction into using materials with Yafray. I hope you find it
useful.

Good Luck!
Scott

 

Comments are closed.



muzica noua
filme Online
filme online gratis
seriale online
filme noi
muzica noua
desene animate online
jocuri noi online
jocuri online
filme bune
filme online
filme online hd
filme online subtitrate
filme noi