Author Topic: Rendering back faces.  (Read 1912 times)

Offline xDonny

  • byte
  • *
  • Posts: 16
    • View Profile
Rendering back faces.
« on: October 21, 2012, 03:48:55 pm »
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.


Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Rendering back faces.
« Reply #1 on: October 21, 2012, 06:14:13 pm »
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.

Offline xDonny

  • byte
  • *
  • Posts: 16
    • View Profile
Re: Rendering back faces.
« Reply #2 on: October 21, 2012, 06:40:15 pm »
Thanks brother, I was trying to make my own software only engine, then I stumbled on this and it's excellent.