Page 1 of 1

Culling Issue

Posted: Tue Oct 18, 2022 5:53 pm
by Kamerik
Hi,

I'm working on project for university and I have decided to use Irrlicht for the graphics. I've set up a basic scene easily enough, but I tried to add a big plane model to my scene to act as a floor and for some reason it was invisible.

I did some trial and error, reduced the size a bit and figured out that the plane is being culled. Unless every vertex is visible on the screen, the entire plane is culled. I've looked around to try to figure out a solution to this but haven't found anything that worked. I've even turned off culling for the object entirely with node->setAutomaticCulling(EAC_OFF); but it hasn't made a difference.

Below is a gif showing the plane being culled. Any help would be appreciated. :)

Image

Re: Culling Issue

Posted: Tue Oct 18, 2022 6:06 pm
by CuteAlien
Are you using the software renderer? Check first parameter in createDevice.
If so - please use any other driver. If you need software rendering, then I'd recommend irr::video::EDT_BURNINGSVIDEO which is also software (and pretty good, especially if you use Irrlicht from svn trunk). But mostly you'd probably want opengl or direct3d.

That software renderer is mostly useful for minimal UI (for example for a setup dialog before the app starts). It can do a bit 3d - but just enough to show maybe some 3d model preview and stuff like that.

Re: Culling Issue

Posted: Tue Oct 18, 2022 6:21 pm
by Kamerik
I knew it would be something simple I'd missed!

That worked, thanks so much for the help! :)

Re: Culling Issue

Posted: Tue Oct 18, 2022 6:39 pm
by CuteAlien
Np, nice gif made it easier :-)