www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: tao on March 14, 2014, 02:52:13 am

Title: Fog effect
Post by: tao on March 14, 2014, 02:52:13 am
Hi,

Does JPCT support Fog effect? Like in U3D, I can specify the the distance and the color of the fog? If not, any clue on how to implement fog effect?

Many thanks!
Title: Re: Fog effect
Post by: EgonOlsen on March 14, 2014, 07:38:28 am
You can use this: http://www.jpct.net/jpct-ae/doc/com/threed/jpct/World.html#setFogging(int) (http://www.jpct.net/jpct-ae/doc/com/threed/jpct/World.html#setFogging(int)) and this: http://www.jpct.net/jpct-ae/doc/com/threed/jpct/World.html#setFogParameters(float, float, float, float, float) (http://www.jpct.net/jpct-ae/doc/com/threed/jpct/World.html#setFogParameters(float, float, float, float, float))
Title: Re: Fog effect
Post by: tao on March 14, 2014, 01:00:49 pm
It works, many thanks!