sorry for bumping this old topic.
Can anybody able to import normal map directly from blender to ogre to jme ?
when i load .scene i just get diffuse map and there is no normal map.
here is my material from blender to ogre:
// kachujin_MAT genrated by blender2ogre 0.6.0
material kachujin_MAT
{
receive_shadows on
technique
{
pass kachujin_MAT
{
ambient 1.0 1.0 1.0 1.0
diffuse 0.8145161271095276 0.8145161271095276 0.8145161271095276 1.0
specular 0.4479879140853882 0.4479879140853882 0.4479879140853882 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 Kachujin_diffuse.png
tex_address_mode wrap
scale 1.0 1.0
colour_op modulate
}
texture_unit
{
texture Kachujin_normal.png
tex_address_mode wrap
scale 1.0 1.0
tex_coord_set 0
colour_op modulate
}
}
}
}
and here is the material after converting to j3o and extracting .j3m material:
Material MyMaterial : Common/MatDefs/Light/Lighting.j3md {
MaterialParameters {
Diffuse : 0.8145161 0.8145161 0.8145161 1.0
UseMaterialColors : true
ParallaxHeight : 0.05
Ambient : 1.0 1.0 1.0 1.0
GlowColor : 0.0 0.0 0.0 1.0
BackfaceShadows : false
DiffuseMap : WrapRepeat_S WrapRepeat_T "Models/Models/Players/Doha/ogre/Kachujin_diffuse.png"
Specular : 0.4479879 0.4479879 0.4479879 1.0
Shininess : 12.5
NumberOfBones : 70
}
AdditionalRenderState {
PointSprite On
FaceCull Back
AlphaTestFalloff 0.0
DepthWrite On
ColorWrite On
PolyOffset 0.0 0.0
DepthTest On
Blend Off
Wireframe Off
}
}
as you see it just kept diffuse map.
I am setting normal map like this in wiki tutorial :
https://wiki.jmonkeyengine.org/lib/exe/fetch.php/jme3:external:blender-material-3.png?cache=