Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to write your own material file

I want to config the material of my model, but I don't know how to write it.

material RoboCup/Carpet
{
technique
{
pass
{
ambient 1.0 1.0 1.0 1.0
diffuse 1.0 1.0 1.0 1.0
specular 0.2 0.2 0.2 1.0 12.5
texture_unit
{
scale 0.1 0.1
texture carpet.jpg
filtering trilinear
}
}
}
}

Like this material file. Where can I find the meaning of the parameters? And where can I find the whole parameters that can be set in this file?

Thanks a lot.