SkytilsMod icon indicating copy to clipboard operation
SkytilsMod copied to clipboard

fix: fov drifting (waypoint blocks)

Open P3nguinMinecraft opened this issue 5 months ago • 3 comments

fixed waypoint block offsetting because of fov not normalized (70) it would affect and prob fix (or break) other renders that use setupCameraTransformations() but those do not work currently lol

couldnt figure out how to fix the nametags im just throwing rocks at a wall atp only solution i have is just brute force calculating offset but that isnt great

P3nguinMinecraft avatar Jul 10 '25 07:07 P3nguinMinecraft

If the FOV is the cause for the rendering position issues, that would indicate that the projection matrix is incorrect? I feel like then we should aim to copy the MC projection matrix over but I'm not sure.

My-Name-Is-Jeff avatar Jul 13 '25 18:07 My-Name-Is-Jeff

this should at least fix for all box renders like in dungeons, text will need a diff fix

P3nguinMinecraft avatar Aug 12 '25 15:08 P3nguinMinecraft

~~Yeah on Fabric you don't need to cancel out the camera rotation, the built-in matrix stack for world rendering already has the camera rotation removed before your render callback runs. So when you also cancel it manually, you’re canceling it twice → things spin in the opposite direction. I just removed cameraRotation(matrices) from setupCameraTransformations and that stops the outlined bounding box from moving when looking around. Still moves when shifting~~

Yeah I don't know anymore

The-Deerman avatar Sep 19 '25 14:09 The-Deerman