Fluxor
Member
|
if(frustum(mesh->box()))
In a lot of older code examples I often see a lot of
Code:
if(frustum(mesh->box())
or
Code:
if(frustum(someobject)
a) is this still necessary? Or do we have automatic frustum culling now?
b) if so, mesh->box() doesn't work anymore, what is the new syntax for this?
Thanks.
(This post was last modified: 09-06-2021 12:49 AM by Fluxor.)
|
|
09-06-2021 12:48 AM |
|
Esenthel
Administrator
|
RE: if(frustum(mesh->box()))
A) yes, necessary
B) Frustum(mesh->ext,
Or perhaps can just do Frustum(*mesh,
And yes as Zervox says, characters have it differently because they are animated by bones.
What tutorials have this problem? I can fix.
|
|
09-06-2021 02:27 AM |
|
Fluxor
Member
|
RE: if(frustum(mesh->box()))
Thanks guys, that's good to know.
Oh, I've seen that not in the tutorials, but mostly in older code that
is floating around here in the forums.
|
|
09-06-2021 01:09 PM |
|