What happens if you replace the call to “loadPrcFile” with the following?
from panda3d.core import loadPrcFileData
loadPrcFileData("", "model-cache-dir")
I’ll also note, by the way, that the claim that so setting the model-cache directory helps with pixel-textures seems dubious to me. That, I would imagine, would be more a matter of the texure-filtering being used.
@enricfur
In the material settings, check the Backface Culling
box
it actually turned off texture blur
Do you mean that the PRC file did that, or the new code that I posted did that?
If the former, then I’d guess that it’s not because of the line itself.
Then what happens if you try the code-substitution that I suggested?
same result (btw my cube texture is now plain gray for some reason, not because of this, i changed principled bsdf to diffuse bsdf in cube material in blender some time ago)
Just to check: You removed the call to “loadPrcFile”, right?
If so, then that’s very odd: just setting the model-cache directory to nothing shouldn’t affect texture-filtering, unless something odd is happening…
@enricfur
I think you need to clear the cache.
Yeah, this suggestion of just setting the model-cache directory to be empty seems less wise to me than just… clearing the cache after installing panda3d-gltf.
ok so i cleared cache and turned on backface culling but i still dont have shadows (i think because of my models, idk how to fix them)
and cube dont have texture if i use diffuse bsdf
I think there are still problems with the materials. For example, inadequate color base color or emission settings.
Let’s start with the recommended node Principled BSDF