Author Topic: Flat lighting  (Read 2039 times)


  • Jr. Member
  • **
  • Posts: 32
Flat lighting
« on: June 26, 2012, 03:54:57 PM »
I am trying to get flat lighting. The ModelReaderSettings that I use to load my models is created by this function:

I followed this article, and used LightingMode.PerFace to get flat lighting. However, what I get is this: Is there something else I should configure to get flat lighting?
« Last Edit: June 26, 2012, 03:56:08 PM by Angelo »


  • Administrator
  • *****
  • Posts: 116
    • Bonzai Engine
Re: Flat lighting
« Reply #1 on: June 26, 2012, 05:04:41 PM »
If you're input model is a jmf, this will be ignored. You should specify the lighting you want during the original model reading (ie before conversion).
It is usually better to use default lighting associated with ModelReaderSettings.lightingSmoothAngle (use 30 or any other value which fit best).

One thing to note, dynamic lighting is very intensive on android devices. If you have full control of your data workflow (model creation), it would be better to have a lightmap (pre-computed lighting) and no dynamic lights.
« Last Edit: June 26, 2012, 05:08:33 PM by jerome_j »