Except the torso of the robot, all the bodies do no rendering properly. Apparently it is working for the torso because map_Kd is provided.
newmtl black-delrin.002
Ns 81.000006
Ka 1.000000 1.000000 1.000000
Kd 0.100000 0.100000 0.100000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd skin.png
I think otherwise the material appears grey when there is no facing light, which makes sense based on how lighting works in Panda3d. Yet, I don’t know how to get the expected result
Well, a quick-and-dirty solution might be to disable shaders for those elements. I’m not sure, but I think that doing so should cause them to be rendered without simplepbr.
Or, of course, you could give them the relevant textures–even if those are just stand-in textures with nothing but a single solid colour each.
You are right, disabling the shader makes it render properly, but then the shadow of the robot does not project on the ground anymore. So I think it is not a valid option.
I tried to set set_shader_auto to the ground and background (without material) as suggested, and this time, it is projecting the shadow but there is a weird pattern also appearing. Moreover, I have several windows (one for onscreen display, and others for offscreen rendering for different camera angles) and don’t get the same visual. I guess it is expected based on how simplepbr since to work.
Offscreen:
Onscreen:
I would say the offscreen one is almost fine, just the light that is way to dark and the strange pattern on the ground. But the onscreen one is not good, like the colors are faded.
EDIT: Apparently the weird pattern is because of two-sided rendering of the ground. Playing with the color of the lights is also helping but I’m not really satisfied (the floor is too bright while the ground is too dark), and most importantly onscreen and offscreen rendering do not match.
I tried many things regarding framebuffer properties but nothing works. I’m a little bit disappointed because the offscreen rendering looks neat ! Apart from the lighting that makes the robot appears a bit dark it is just perfect
EDIT: I fixed It ! Apparently it was because one of the object on the scene was not properly render because of missing material, messing up with the whole scene shadow casting…
Now everything works as expected ! Thank you guys !