www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: kiffa on October 22, 2013, 02:46:26 pm

Title: Screwy Object3D.
Post by: kiffa on October 22, 2013, 02:46:26 pm
In my racing game, the scene is correct first, but after a minute(driving on the road, arriving the position of about 3/4 length of the road), the scene become screwy(hard to describe the look, seems some objects mix together).

The model are exported as .objs and converted to .sers. All looks fine if importing the .objs into MAYA.

What may be the reason?
Title: Re: Screwy Object3D.
Post by: EgonOlsen on October 22, 2013, 05:23:38 pm
Do you have a screen shot of that?
Title: Re: Screwy Object3D.
Post by: kiffa on October 23, 2013, 11:23:04 am
First, I clear ZBuffer only per frame. Second, I test with 4 devices with differents GPU, all of them are incorrect.

1, The correct scene, a road with left wall and right wall.
(http://v2.freep.cn/3tb_131023170915mbwr512293.jpg)

2, The incorrect scene(far):
(http://v2.freep.cn/3tb_131023171829f65b512293.jpg)

3, The incorrect scene(close), the road、left wall、right wall seems mixed together, and this position is 5\6 of the road(ring):
(http://v1.freep.cn/3tb_131023171951nhsw512293.jpg)

4, The incorrect scene(through the mixed-wall-road, the white cubes are waypoints which should upon the road,  but there is none of road\wall.
(http://v2.freep.cn/3tb_131023172034764p512293.jpg)

5, Going to fly a while, the start position of the road appear.
(http://v2.freep.cn/3tb_131023172126fx8t512293.jpg)
Title: Re: Screwy Object3D.
Post by: EgonOlsen on October 23, 2013, 11:34:49 am
Try to set this to false before building/compiling the object: http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Object3D.html#setFixedPointMode(boolean) (http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Object3D.html#setFixedPointMode(boolean))
Title: Re: Screwy Object3D.
Post by: kiffa on October 23, 2013, 11:42:10 am
That works, thanks!
Title: Re: Screwy Object3D.
Post by: EgonOlsen on October 23, 2013, 12:57:50 pm
Good to know. I should add a kind of automated detection for this case...

Edit: The next version will be able to handle this automatically.
Title: Re: Screwy Object3D.
Post by: kiffa on October 24, 2013, 05:11:35 am
Cool! ;D