Hello, I have a large object. building actually.
but at certain angles, it is not rendered
any settings i can set so that this is prevented? i have other big objects too behaving this way =)
thanks
big object not rendered
It'll be to do with frustrum culling. What format is the model? Some formats don't create good bounding boxes for the models and so they get culled a bit eagerly.
An easy test would be to render the bounding boxes and also to turn off the frustrum culling using node->setAutomaticCulling(EAC_OFF); (though this is something you shouldn't use as a solution, just as a test to see if this is indeed the problem, because otherwise your performance will suffer as the model will be always rendered, even if it's directly behind you and not visible at all)
An easy test would be to render the bounding boxes and also to turn off the frustrum culling using node->setAutomaticCulling(EAC_OFF); (though this is something you shouldn't use as a solution, just as a test to see if this is indeed the problem, because otherwise your performance will suffer as the model will be always rendered, even if it's directly behind you and not visible at all)
Yeah looks like frustrum box is the sensible option;
"box", // camera box against node box
"frustum_box", // camera frustum against node box
"frustum_sphere", // camera frustum against node sphere
but box seems to be the default... possibly it's more efficient but not quite as accurate as the frustrum.
but anyway, did you check that your model's bounding box looks sensible? i think in irredit you can make it display things like that.
"box", // camera box against node box
"frustum_box", // camera frustum against node box
"frustum_sphere", // camera frustum against node sphere
but box seems to be the default... possibly it's more efficient but not quite as accurate as the frustrum.
but anyway, did you check that your model's bounding box looks sensible? i think in irredit you can make it display things like that.
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
Frustating, isn't it?
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way