Canvas Renderer

Canvas Renderer

202k Downloads

Lighting in complex models is acting funky

Azzyypaaras opened this issue ยท 9 comments

commented

image
image
image
They really do be in on that funk

commented

Nope, it is disabled. I should note that I have only seen this issue with Canvas installed.

commented

The images are very dark and it isn't clear where/what the problem is. Could you please elaborate?

commented

The lighting in more complex models occasionally breaks on various faces. The issue is inconsistent and seems to fall into the lovely category of "only arises when you are not trying to screenshot it". I did manage to get a clearer shot here.
image
As you can see, the bottom face here is far darker than it should be. Notably, this only ever seems to happen in one direction at once.

commented

Hmmm, is AmbientOcclusion shading disabled on the model or on the material for that quad?

commented

I am not particularly experienced with the sort of stuff. But given that this is just a plain json model and given that that this does not have any shaders applied to it. Probably no.

commented

If you don't have "ambientocclusion": false in the model JSON it will be enabled. Try adding that or confirming it is there.

My guess is that it is getting shaded by the block below it, because it is "close" to that face. The Vanilla lighting model isn't great at shading fine detail like that, especially internal faces.

commented

Interesting. Can I get a copy of the JSON model?

commented
commented

Tried it and unable to reproduce with the model alone. Will need full code for block.