Hi,
Can anybody please confirm the material settings required for loading texture on to a .md2 model mesh?
I am using the following properties but the texture does not appear on the mesh. Used some properties described in example 7.
material.setTexture(0, finalTexture);
material.Lighting = true;
material.NormalizeNormals = true;
node->getMaterial(0) = material;
node->setMaterialType(EMT_NORMAL_MAP_TRANSPARENT_ADD_COLOR);
node->setMaterialFlag(EMF_TEXTURE_WRAP, true);
Any help would be great.
Regards,
Gaurav Jha
Loading texture on .md2 model mesh
Re: Loading texture on .md2 model mesh
hi,
i guess you forgot to add a light. if so just add a light source or disable the lighting flag of the material.
regards
zerochen
i guess you forgot to add a light. if so just add a light source or disable the lighting flag of the material.
regards
zerochen
-
- Posts: 15
- Joined: Sat Jul 06, 2013 2:18 pm
Re: Loading texture on .md2 model mesh
When I am testing out loading things and don't have a light in my scene yet I always use ->setMaterialFlag(EMF_LIGHTING, false);