Frustum culling
Hello i try to setup a Frustum culling system but it always returns true even if the object is not in the frustum.
What i guess it is:
Before normalization, it functions correctly, albeit with an incorrect size. To achieve precision, I must closely inspect my object, making slight rotations. However, after normalization, it consistently returns true and never provides a false outcome.
Normalized:
https://media.discordapp.net/attachments/1036008388552839169/1173215015948521573/image.png?ex=656324a1&is=6550afa1&hm=7de8eef894c9cf4cb5be82363e2ee0c06aa89034da866294b7d0da3dbc8ce1d4&=
Wihout Normalizing:
if i look exactly on it i can see it:
https://cdn.discordapp.com/attachments/1036008388552839169/1173215314331320440/image.png?ex=656324e8&is=6550afe8&hm=8bf65ae87f380c572e57db16235cfa9e02d8cc827433beea3cf2dc81af6f577b&
But if i move more away it is gone:
https://cdn.discordapp.com/attachments/1036008388552839169/1173215337727139890/image.png?ex=656324ed&is=6550afed&hm=64e388f63e55102dda61e83af167daf05b5d8bb4fa258eb9dfea8c73362c0193&
My class:
3 Replies
Has anyone a idea?
did you debug it do look if numbers are what you expect?
to me the -radius in
if (distance < -radius) {
seems oddi got it already thx: