Culling Issue

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Kamerik
Posts: 10
Joined: Tue Oct 18, 2022 5:44 pm

Culling Issue

Post 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
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Culling Issue

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Kamerik
Posts: 10
Joined: Tue Oct 18, 2022 5:44 pm

Re: Culling Issue

Post by Kamerik »

I knew it would be something simple I'd missed!

That worked, thanks so much for the help! :)
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Culling Issue

Post by CuteAlien »

Np, nice gif made it easier :-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply