Rendering back faces.

Started by xDonny, October 21, 2012, 03:48:55 PM

Previous topic - Next topic

xDonny

Hello forum,

This is my first post so hello and I hope to be a contributing member.

Unfortunately my first post has to be in the Support forum because, well I need support.
I'm using the software renderer. I'm only interested in including jpct.jar. It all appears to be working fine,
however; when I load a model, you can see through some of the faces. The same behavior is apparent when
using the plane primitive.  When rotated you can only see one face.

Just wondering if this is a problem with the way I have it configured, or if it's just simply the way it is. If it does have to be
one way, what are some tips for blender to make sure everything looks solid?

Thanks,
Donny.


EgonOlsen

That's caused by the backface culling, which is enabled by default. You can disable it by calling setCulling(false) on the objects in question. However, they are still the backside, i.e. normals are pointing to the other side, which affects lighting.

xDonny

Thanks brother, I was trying to make my own software only engine, then I stumbled on this and it's excellent.