realXtend/naali — Issue #254: normal maps exported from blender2ogre fails in Tundra2.1.2
Author: hartsantler
Created: 2011-10-18 01:29:15+00:00
State: open

The bad line seems to be:
Warning: DeserializeFromData: Failed to create an Ogre material from material asset: local://MatCraneo.material

Could this be a Wine problems?
Can somebody else try this on Windows?
http://blender2ogre.googlecode.com/files/BUG-tundra2-supershader_exported-by-b2ogre-0.5.5.zip

The full error:
http://pastebin.com/vF4XdUCL

MatCraneo.material generated by b2ogre:

//user material: rex/DiffNormal
vertex_program rex/DiffNormalVP cg
{
source SuperShader.cg
entry_point mainVS
profiles vs_3_0 arbvp1
compile_arguments -DDIFFUSE_MAPPING -DNORMAL_MAPPING
default_params
{
param_named_auto worldViewProjMatrix worldviewproj_matrix
param_named_auto worldMatrix world_matrix
param_named_auto inverseWorldMatrix inverse_world_matrix
param_named_auto sunLightDir light_position 0
param_named_auto lightPos0 light_position 1
param_named_auto lightPos1 light_position 2
param_named_auto lightAtt0 light_attenuation 1
param_named_auto lightAtt1 light_attenuation 2
param_named_auto fogParams fog_params
param_named_auto fogColor fog_colour
}
}
fragment_program rex/DiffNormalFP cg
{
source SuperShader.cg
entry_point mainPS
profiles ps_3_0 arbfp1
compile_arguments -DDIFFUSE_MAPPING -DNORMAL_MAPPING
default_params
{
param_named_auto sunLightCol light_diffuse_colour 0
param_named_auto lightCol0 light_diffuse_colour 1
param_named_auto lightCol1 light_diffuse_colour 2
param_named_auto ambientLight ambient_light_colour
}
}
// abstract passes //
abstract pass rex/DiffNormal/PASS0
{
iteration once
vertex_program_ref rex/DiffNormalVP
{
}
fragment_program_ref rex/DiffNormalFP
{
}
texture_unit baseMap
{
texture TextureMissing.png
}
texture_unit normalMap
{
texture TextureMissing.png
}
}
}
}
// blender material: MatCraneo
material MatCraneo
{
receive_shadows on
technique b2ogre_1318900242.984463
{
pass b2ogre_1318900242.991866
{
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 b2ogre_1318900242.992195
{
texture nrmls_craneo.png
tex_address_mode border
tex_border_colour 1.0 0.0 1.0
scale 1.0 1.0
colour_op replace
}
texture_unit b2ogre_1318900242.992396
{
texture ambocc_craneo.png
tex_address_mode border
tex_border_colour 1.0 0.0 1.0
scale 1.0 1.0
colour_op_ex blend_diffuse_colour src_texture src_current
}
}

pass b2ogre_1318900242.992762 : rex/DiffNormal/PASS0
{
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 normalMap
{
texture nrmls_craneo.png
tex_address_mode border
tex_coord_set 0
}
texture_unit baseMap
{
texture ambocc_craneo.png
tex_address_mode border
tex_coord_set 0
}
}
}
}