Backface culling question

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
Murloc992
Posts: 272
Joined: Mon Apr 13, 2009 2:45 pm
Location: Utena,Lithuania

Backface culling question

Post by Murloc992 »

Will disabling backface culling on a mesh have a big impact to performance? Or backface culling is just some fancy-schmancy thingy?

Thanks in advance!
Adler1337
Posts: 471
Joined: Sat Aug 09, 2008 6:10 pm
Location: In your base.

Post by Adler1337 »

The impact to performance really depends on how many polys your mesh is and how many meshes you are using. Disabling backface culling on low poly meshes should impact performance that much. The best way to find out is to disable backface culling on the meshes you want it disabled and see the impact to performance yourself.
multum in parvo
Murloc992
Posts: 272
Joined: Mon Apr 13, 2009 2:45 pm
Location: Utena,Lithuania

Post by Murloc992 »

I want to disable BF culling for one mesh only, main character mesh ~4k polys. Because it's some kind of headless wizard, so other side of hat should be not culled.

Image

Well I'll need to see it for myself :D
Adler1337
Posts: 471
Joined: Sat Aug 09, 2008 6:10 pm
Location: In your base.

Post by Adler1337 »

I don't think that will affect performance that much. If it does try making the hat a separate mesh than the body.
multum in parvo
Murloc992
Posts: 272
Joined: Mon Apr 13, 2009 2:45 pm
Location: Utena,Lithuania

Post by Murloc992 »

Or I just could not to display the front of the wiz, so it's solution number 2. But I'd like to see those bright red eyes and hats' shadow down his shoulders/upper chest :>

Will check the BFC later tomorrow :)
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Since you have the model you can also just add those back faces manually in the editor. That would avoid having too many faces in the test. But indeed, it's not more than twice the polys, i.e. less performance drop than it would be having two of the wizards :wink: Moreover, since fillrate won't be that much of a problem, the performance impact will be much less.
Murloc992
Posts: 272
Joined: Mon Apr 13, 2009 2:45 pm
Location: Utena,Lithuania

Post by Murloc992 »

Thanks for guiding and answer in one place :) So it seems that I'll need to kinda duplicate some inside faces, oh well :D

Still, thanks!
Post Reply