
- 1 - Script particule
- 2 - MaterialName
i have found an old code in C++ using ogre.
in the script material there is :
in the code i can read thismaterial Chess/White
{
technique
{
pass
{
ambient 0.1 0.1 0.1
diffuse 0.9 0.85 0.55
specular 0.7 0.7 0.7 64
shading phong
}
}
}
material Chess/Black
{
technique
{
pass
{
ambient 0.05 0.05 0.05
diffuse 0.0 0.0 0.0
specular 1 1 1 20
shading phong
}
}
}
Code: Select all
if (mColour == Player::SIDE_WHITE)
mEntity->setMaterialName("Chess/White");
else
mEntity->setMaterialName("Chess/Black");
- 3 - Lib Math 3D
http://www.ogre3d.org/docs/api/html/cla ... 1Math.html
here are many interesting things, a lot of intersect funtions.
- 4 - GetOrientation() , GetDirection().
Would be nice if we have more informations about camera, entity, node, etc.
like GetOrientation() , GetDirection().
- 5 - Node
Ok we can attach an entity to a node, is it possible to add particule ? camera ? Sound ?