www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: huhu on April 09, 2015, 09:37:36 pm

Title: Simplest rendering
Post by: huhu 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
Title: Re: Simplest rendering
Post by: huhu 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?
Title: Re: Simplest rendering
Post by: EgonOlsen 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()?
Title: Re: Simplest rendering
Post by: EgonOlsen 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 (http://www.jpct.net/forum2/index.php/topic,4333.msg30172.html#msg30172)