Author Topic: Screwy Object3D.  (Read 3157 times)

Offline kiffa

  • long
  • ***
  • Posts: 199
    • View Profile
Screwy Object3D.
« 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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Screwy Object3D.
« Reply #1 on: October 22, 2013, 05:23:38 pm »
Do you have a screen shot of that?

Offline kiffa

  • long
  • ***
  • Posts: 199
    • View Profile
Re: Screwy Object3D.
« Reply #2 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.


2, The incorrect scene(far):


3, The incorrect scene(close), the road、left wall、right wall seems mixed together, and this position is 5\6 of the road(ring):


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.


5, Going to fly a while, the start position of the road appear.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Screwy Object3D.
« Reply #3 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)

Offline kiffa

  • long
  • ***
  • Posts: 199
    • View Profile
Re: Screwy Object3D.
« Reply #4 on: October 23, 2013, 11:42:10 am »
That works, thanks!

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Screwy Object3D.
« Reply #5 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.
« Last Edit: October 23, 2013, 08:34:18 pm by EgonOlsen »

Offline kiffa

  • long
  • ***
  • Posts: 199
    • View Profile
Re: Screwy Object3D.
« Reply #6 on: October 24, 2013, 05:11:35 am »
Cool! ;D