Author Topic: Simplest rendering  (Read 529 times)

Offline huhu

  • byte
  • *
  • Posts: 5
    • View Profile
Simplest rendering
« on: April 09, 2015, 09:37:36 pm »
I have some objects of triangles with a plain grey color texture, one ambient and one point light. I would expect to see the triangles in one static color, but it seems there is a lot of smoothing or whatever going on. Can I switch this off an how?
thanks

Offline huhu

  • byte
  • *
  • Posts: 5
    • View Profile
Re: Simplest rendering
« Reply #1 on: April 10, 2015, 03:19:14 am »
object3D.setShadingMode(Object3D.SHADING_FAKED_FLAT) doesn't change anything, shouldn't it?

How do I get shadows of my single light on other triangles?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Simplest rendering
« Reply #2 on: April 10, 2015, 01:46:04 pm »
Yes, it should actually change something. I'm not 100% sure that i support this mode in OpenGL ES 2.0...have you tried to set the mode before calling build()?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Simplest rendering
« Reply #3 on: April 10, 2015, 02:09:01 pm »
About the shadows: Shadow mapping can be done but isn't build-in ATM. Have a look at this thread for an example of how to do it in the engine's current state: http://www.jpct.net/forum2/index.php/topic,4333.msg30172.html#msg30172