3D rendering "clips" outside a very small depth range
Posted: Mon Jul 15, 2024 6:26 pm
Hello! I've been trying to do simple 3D rendering with LOVE, and have gotten pretty close, but got stuck on a certain issue.
For some reason, the mesh seems to very weirdly clip on depths too high or too low; additionally, perspective projection seems to not behave correctly with the camera's Z value (not scaling the mesh at all, just clipping it as described earlier).
With how peculiar and strange these issues are, I can only assume it's some simple mistake, like something I have to toggle or something I forgot to disable, but I haven't been able to figure it out at all. I'd really appreciate some help from someone who knows anything about how to do 3D in LOVE.
I've attached what I have so far - it's very minimal, but shows the issue. It slowly rotates the model on the X axis, but clips it at the edges. It does not have a Z buffer, but this is intentional as I don't plan to render anything more than a single plane, and adding it does not do anything.
For some reason, the mesh seems to very weirdly clip on depths too high or too low; additionally, perspective projection seems to not behave correctly with the camera's Z value (not scaling the mesh at all, just clipping it as described earlier).
With how peculiar and strange these issues are, I can only assume it's some simple mistake, like something I have to toggle or something I forgot to disable, but I haven't been able to figure it out at all. I'd really appreciate some help from someone who knows anything about how to do 3D in LOVE.
I've attached what I have so far - it's very minimal, but shows the issue. It slowly rotates the model on the X axis, but clips it at the edges. It does not have a Z buffer, but this is intentional as I don't plan to render anything more than a single plane, and adding it does not do anything.