Change material diffuse intensity
19 July 2016 16:00
Hi, thanks again for this powerfull SKD
I have an object with several faces and 2 materials. I assign first material to a specific face, and other material to another face
Now i try to change diffuse intensity, or emit factor for one material, but it seems to apply on both
example
But emit is applied on both material (latest SDK version patched)
I have an object with several faces and 2 materials. I assign first material to a specific face, and other material to another face
Now i try to change diffuse intensity, or emit factor for one material, but it seems to apply on both
example
var monObjet=m_scenes.get_object_by_name("coffre");
m_mat.set_emit_factor(monObjet,'couleurcoffresombre',0.4);
But emit is applied on both material (latest SDK version patched)
19 July 2016 16:39
21 July 2016 18:01
Hi,
Indeed there is an issue - your materials are identical (except names) and the engine automatically batches them into a single mesh. As a workaround, try to change the color a bit so that they become different. Of course this is not good and we have to think how to resolve this problem. Thanks for the feedback!
Indeed there is an issue - your materials are identical (except names) and the engine automatically batches them into a single mesh. As a workaround, try to change the color a bit so that they become different. Of course this is not good and we have to think how to resolve this problem. Thanks for the feedback!
![smiling](/static/pybb/emoticons/smiling.png)