Jump to content

Material::getMaterialInherit() not create material


photo

Recommended Posts

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.

Link to comment

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.

Link to comment
  • 4 weeks later...
×
×
  • Create New...