Home | Tutorials | Wiki | Issues
Ask Your Question
0

How to write your own material file [closed]

asked 2018-12-20 00:58:48 -0500

li gravatar image

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.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by li
close date 2018-12-23 20:03:13.815402

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-12-20 11:31:24 -0500

chapulina gravatar image

These are Ogre material files, here's a tutorial: http://wiki.ogre3d.org/Materials

edit flag offensive delete link more

Comments

Thank you very much.

li gravatar imageli ( 2018-12-23 20:02:03 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-12-20 00:58:48 -0500

Seen: 86 times

Last updated: Dec 20 '18