Simplest rendering

Started by huhu, April 09, 2015, 09:37:36 PM

Previous topic - Next topic

huhu

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

huhu

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?

EgonOlsen

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()?

EgonOlsen

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