eugene.litvinov Posted February 17, 2011 Posted February 17, 2011 Inherited material not created by function getMaterialInherit(), it created only when we do changes in it, see topic Object::setMaterialTexture with Image instance
serega Posted February 21, 2011 Posted February 21, 2011 Eugene , Are you mean this? When I set "default" reflection map for create inherited material, I set material.setImageTextureName(idTexture, "core/textures/mesh_reflection_cube.dds"); - this is created only one inherited material for all objects, and I have no desired effect, because when I update one object's material - I update all objects, and I have Direct3D9 error. Then, I use next: material.setImageTextureName(idTexture, "source/textures/environment/mesh_" + object.getName() + ".dds"); - I set non existing texture file - this has effect - for all objects created inherited material, and when I update texture for one object - remainder objects stay without changes. Direct3D9 error not appears. So I need set unique (maybe non existent texture) for all unique object, and only when for it created inherited materials.
eugene.litvinov Posted February 21, 2011 Author Posted February 21, 2011 This looks like crouch - cause I not have this files - I set non existent texture files - and when I do real reflection map for object (engine.render.renderImageCube()) - it reflects red-colored objects, cause they has non-existent textures in moment of doing cube map, and in console I have much of errors like this: Image::info_dds(): can't open "source/textures/environment/mesh_cube_9.dds" file This errors are making me confused.
eugene.litvinov Posted February 21, 2011 Author Posted February 21, 2011 It would be great to have function that create inherit material without fail.
serega Posted February 22, 2011 Posted February 22, 2011 Eugene, thank you. The problem is assigned to devs.
eugene.litvinov Posted March 17, 2011 Author Posted March 17, 2011 Could you say please, will this problem be fixed? Thanks.
Recommended Posts