You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im doing a game with wgpu while learning from the learn-wgpu tutorials and im getting a problem when moving an object far from the 0,0,0 origin point, i dont know if it might be because i missed something or i did something wrong.
The problem is that the far i am from the origin, the more distorted or jittery the vertexes look (it might be another reason on why thos elements looks like that but i think it might be the vertexes moving randomly), i tested some things like making the calculations as a f64 and then turning the values to f32 for the shader or changing the zfar and znear values of the camera.
The only thing that changed something was the znear, but the problem is that if there is something too close to the camera it disappears and is something i dont want it to happen.
If someone had the same problem or haves it i would like to know.
Im doing a game with wgpu while learning from the learn-wgpu tutorials and im getting a problem when moving an object far from the 0,0,0 origin point, i dont know if it might be because i missed something or i did something wrong.
The problem is that the far i am from the origin, the more distorted or jittery the vertexes look (it might be another reason on why thos elements looks like that but i think it might be the vertexes moving randomly), i tested some things like making the calculations as a f64 and then turning the values to f32 for the shader or changing the zfar and znear values of the camera.
The only thing that changed something was the znear, but the problem is that if there is something too close to the camera it disappears and is something i dont want it to happen.
If someone had the same problem or haves it i would like to know.
WGPU: v0.18.0
SDL2: v0.36
Source code with the error: https://github.com/Khalzz/Project-Skies
2024-06-08.19-52-39.mp4
The text was updated successfully, but these errors were encountered: