in blender I made a model with several textures to give the depth effect (version of blender 2.69) and then export (exporter of ogre version 0.6.0), but when I load it in ogre it is very badly loaded, I do not know It combines the materials well, so I have the floor completely dark.
material grass
{
receive_shadows on
technique
{
pass grass
{
ambient 0.800000011920929 0.800000011920929 0.800000011920929 1.0
diffuse 0.6400000190734865 0.6400000190734865 0.6400000190734865 1.0
specular 0.5 0.5 0.5 1.0 12.5
emissive 0.0 0.0 0.0 1.0
alpha_to_coverage off
colour_write on
cull_hardware clockwise
depth_check on
depth_func less_equal
depth_write on
illumination_stage
light_clip_planes off
light_scissor off
lighting on
normalise_normals off
polygon_mode solid
scene_blend one zero
scene_blend_op add
shading gouraud
transparent_sorting on
texture_unit
{
texture Grass-Short.jpg
tex_address_mode wrap
scale 0.025 0.025
colour_op modulate
}
texture_unit
{
texture Grass-Short_n.jpg
tex_address_mode wrap
scale 0.025 0.025
colour_op modulate
}
texture_unit
{
texture Grass-Short_s.jpg
tex_address_mode wrap
scale 0.025 0.025
colour_op modulate
}
I think the key is in the lines:
1- colour_op
2- tex_address_mode wrap
I have tried with other colour_op, "alpha_blend", "modulate", "replace", "add", also combining many of them and nothing, the most acceptable thing I have achieved is to leave the main texture, but it takes away a lot of realism .
I would appreciate the help of any humble soul in this forum: D: D
Here the result: trees without alpha, the soil is super bad, it should be green. Ignore the weapon because it is a beta model